◆ ABMHandler()
References ActiveABM::abm, ActiveABM::chance, ActiveABM::check_required_neighbors, ServerEnvironment::getGameDef(), NodeDefManager::getIds(), ActiveBlockModifier::getRequiredNeighbors(), ActiveBlockModifier::getSimpleCatchUp(), ActiveBlockModifier::getTriggerChance(), ActiveBlockModifier::getTriggerContents(), ActiveBlockModifier::getTriggerInterval(), m_aabms, IGameDef::ndef(), and ActiveABM::required_neighbors.
◆ ~ABMHandler()
ABMHandler::~ABMHandler |
( |
| ) |
|
|
inline |
◆ apply()
void ABMHandler::apply |
( |
MapBlock * |
block, |
|
|
int & |
blocks_scanned, |
|
|
int & |
abms_run, |
|
|
int & |
blocks_cached |
|
) |
| |
|
inline |
References CONTAINS, MapBlock::contents, MapBlock::contents_cached, countObjects(), MapBlock::do_not_cache_contents, MapNode::getContent(), Map::getNode(), MapBlock::getNodeUnsafe(), MapBlock::getPosRelative(), ServerEnvironment::getServerMap(), MapBlock::isDummy(), MapBlock::isValidPosition(), m_aabms, Environment::m_added_objects, m_env, MAP_BLOCKSIZE, myrand(), and p().
Referenced by ServerEnvironment::step().
◆ countObjects()
◆ m_aabms
std::vector<std::vector<ActiveABM> *> ABMHandler::m_aabms |
|
private |
◆ m_env
The documentation for this class was generated from the following file: