mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 15:33:23 +00:00
HDB: Add animLuaEntity()
This commit is contained in:
parent
3fc0cb74b1
commit
11685a6ba1
@ -589,6 +589,16 @@ void AI::initAllEnts() {
|
||||
warning("STUB: initAllEnts: LaserScan required");
|
||||
}
|
||||
|
||||
void AI::animLuaEntity(const char *initName, AIState st) {
|
||||
for (Common::Array<AIEntity *>::iterator it = _ents->begin(); it != _ents->end(); it++) {
|
||||
if (Common::matchString((*it)->entityName, initName)) {
|
||||
(*it)->state = st;
|
||||
(*it)->animFrame = 0;
|
||||
(*it)->animDelay = (*it)->animCycle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check to see if we can get this entity
|
||||
bool AI::getTableEnt(AIType type) {
|
||||
switch (type) {
|
||||
|
@ -462,6 +462,9 @@ public:
|
||||
void removeEntity(AIEntity *e);
|
||||
void setEntityGoal(AIEntity *e, int x, int y);
|
||||
void initAllEnts();
|
||||
|
||||
void animLuaEntity(const char *initName, AIState st);
|
||||
|
||||
bool getTableEnt(AIType type);
|
||||
bool walkThroughEnt(AIType type);
|
||||
void getItemSound(AIType type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user