Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
ActiveBlockModifier Class Referenceabstract

#include <serverenvironment.h>

+ Inheritance diagram for ActiveBlockModifier:

Public Member Functions

 ActiveBlockModifier ()=default
 
virtual ~ActiveBlockModifier ()=default
 
virtual const std::vector< std::string > & getTriggerContents () const =0
 
virtual const std::vector< std::string > & getRequiredNeighbors () const =0
 
virtual const std::vector< std::string > & getWithoutNeighbors () const =0
 
virtual float getTriggerInterval ()=0
 
virtual u32 getTriggerChance ()=0
 
virtual bool getSimpleCatchUp ()=0
 
virtual s16 getMinY ()=0
 
virtual s16 getMaxY ()=0
 
virtual void trigger (ServerEnvironment *env, v3s16 p, MapNode n)
 
virtual void trigger (ServerEnvironment *env, v3s16 p, MapNode n, u32 active_object_count, u32 active_object_count_wider)
 

Constructor & Destructor Documentation

◆ ActiveBlockModifier()

ActiveBlockModifier::ActiveBlockModifier ( )
default

◆ ~ActiveBlockModifier()

virtual ActiveBlockModifier::~ActiveBlockModifier ( )
virtualdefault

Member Function Documentation

◆ getMaxY()

virtual s16 ActiveBlockModifier::getMaxY ( )
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ getMinY()

virtual s16 ActiveBlockModifier::getMinY ( )
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ getRequiredNeighbors()

virtual const std::vector< std::string > & ActiveBlockModifier::getRequiredNeighbors ( ) const
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ getSimpleCatchUp()

virtual bool ActiveBlockModifier::getSimpleCatchUp ( )
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ getTriggerChance()

virtual u32 ActiveBlockModifier::getTriggerChance ( )
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ getTriggerContents()

virtual const std::vector< std::string > & ActiveBlockModifier::getTriggerContents ( ) const
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ getTriggerInterval()

virtual float ActiveBlockModifier::getTriggerInterval ( )
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler(), and ABMWithState::ABMWithState().

+ Here is the caller graph for this function:

◆ getWithoutNeighbors()

virtual const std::vector< std::string > & ActiveBlockModifier::getWithoutNeighbors ( ) const
pure virtual

Implemented in LuaABM.

Referenced by ABMHandler::ABMHandler().

+ Here is the caller graph for this function:

◆ trigger() [1/2]

virtual void ActiveBlockModifier::trigger ( ServerEnvironment * env,
v3s16 p,
MapNode n )
inlinevirtual

◆ trigger() [2/2]

virtual void ActiveBlockModifier::trigger ( ServerEnvironment * env,
v3s16 p,
MapNode n,
u32 active_object_count,
u32 active_object_count_wider )
inlinevirtual

Reimplemented in LuaABM.


The documentation for this class was generated from the following file: