◆ ABMHandler()
References ActiveABM::abm, ActiveABM::chance, ServerEnvironment::getGameDef(), NodeDefManager::getIds(), ActiveBlockModifier::getMaxY(), ActiveBlockModifier::getMinY(), ActiveBlockModifier::getRequiredNeighbors(), ActiveBlockModifier::getSimpleCatchUp(), ActiveBlockModifier::getTriggerChance(), ActiveBlockModifier::getTriggerContents(), ActiveBlockModifier::getTriggerInterval(), ActiveBlockModifier::getWithoutNeighbors(), m_aabms, ActiveABM::max_y, ActiveABM::min_y, IGameDef::ndef(), ActiveABM::required_neighbors, SORT_AND_UNIQUE, and ActiveABM::without_neighbors.
◆ ~ABMHandler()
ABMHandler::~ABMHandler |
( |
| ) |
|
|
inline |
◆ apply()
void ABMHandler::apply |
( |
MapBlock * | block, |
|
|
int & | blocks_scanned, |
|
|
int & | abms_run, |
|
|
int & | blocks_cached ) |
|
inline |
References CONTAINS, CONTENT_TYPE_CACHE_MAX, MapBlock::contents, countObjects(), MapBlock::do_not_cache_contents, MapNode::getContent(), Map::getNode(), MapBlock::getNodeNoCheck(), MapBlock::getPosRelative(), ServerEnvironment::getServerMap(), MapBlock::isOrphan(), 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: