HDB: Add clearPersistent()

This commit is contained in:
Nipun Garg 2019-06-19 23:56:48 +05:30 committed by Eugene Sandulenko
parent 54b43f1aca
commit a937c669b9
2 changed files with 7 additions and 0 deletions

View file

@ -668,6 +668,8 @@ AIEntTypeInfo aiEntList[] = {
AI::AI() { AI::AI() {
_ents = new Common::Array<AIEntity *>; _ents = new Common::Array<AIEntity *>;
// REMOVE: Remove for final. Used here due to lack of a MENU
_numGems = _numGooCups = _numMonkeystones = 0;
} }
AI::~AI() { AI::~AI() {
@ -683,6 +685,10 @@ bool AI::init() {
return true; return true;
} }
void AI::clearPersistent() {
_numGems = _numGooCups = _numMonkeystones = 0;
}
void AI::restartSystem() { void AI::restartSystem() {
warning("STUB: AI::restartSystem incomplete"); warning("STUB: AI::restartSystem incomplete");

View file

@ -407,6 +407,7 @@ public:
~AI(); ~AI();
bool init(); bool init();
void clearPersistent();
void restartSystem(); void restartSystem();
// Entity Functions // Entity Functions