diff options
author | Nipun Garg | 2019-06-19 23:57:17 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:50 +0200 |
commit | cd046ca2156169a60c663223342b1ccac80a179d (patch) | |
tree | 7757c0e846281f409635b8f965463ff8f84631fa /engines/hdb | |
parent | a937c669b9ef1a4dde7eb426e39a436699ceef86 (diff) | |
download | scummvm-rg350-cd046ca2156169a60c663223342b1ccac80a179d.tar.gz scummvm-rg350-cd046ca2156169a60c663223342b1ccac80a179d.tar.bz2 scummvm-rg350-cd046ca2156169a60c663223342b1ccac80a179d.zip |
HDB: Add removeEntity
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/ai.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index bf55c392b0..3a425beb76 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -33,6 +33,10 @@ AIEntity *AI::locateEntity(const char *luaName) { return NULL; } +void AI::removeEntity(AIEntity *e) { + _ents->erase(&e); +} + // Check to see if we can get this entity bool AI::getTableEnt(AIType type) { switch (type) { diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index a5f05bb9a5..aaa8385fd5 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -412,6 +412,7 @@ public: // Entity Functions AIEntity *locateEntity(const char *luaName); + void removeEntity(AIEntity *e); bool getTableEnt(AIType type); bool walkThroughEnt(AIType type); void getItemSound(AIType type); |