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

View File

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