HDB: Add checkForTouchplate()
This commit is contained in:
parent
1cd0a8d936
commit
ffe05e989b
2 changed files with 8 additions and 0 deletions
|
@ -661,6 +661,13 @@ void AI::setLuaAnimFrame(const char *initName, AIState st, int frame) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int AI::checkForTouchplate(int x, int y) {
|
||||||
|
int tileIndex = g_hdb->_map->getMapBGTileIndex(x, y);
|
||||||
|
if (tileIndex == _touchplateOff || tileIndex == _templeTouchpOff)
|
||||||
|
return tileIndex;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void AI::removeEntity(AIEntity *e) {
|
void AI::removeEntity(AIEntity *e) {
|
||||||
_ents->erase(&e);
|
_ents->erase(&e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -787,6 +787,7 @@ public:
|
||||||
void removeLuaEntity(const char *initName);
|
void removeLuaEntity(const char *initName);
|
||||||
void animLuaEntity(const char *initName, AIState st);
|
void animLuaEntity(const char *initName, AIState st);
|
||||||
void setLuaAnimFrame(const char *initName, AIState st, int frame);
|
void setLuaAnimFrame(const char *initName, AIState st, int frame);
|
||||||
|
int checkForTouchplate(int x, int y);
|
||||||
void removeEntity(AIEntity *e);
|
void removeEntity(AIEntity *e);
|
||||||
void setEntityGoal(AIEntity *e, int x, int y);
|
void setEntityGoal(AIEntity *e, int x, int y);
|
||||||
void initAllEnts();
|
void initAllEnts();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue