HDB: Add _floats data

Addition includes struct and member variables
This commit is contained in:
Nipun Garg 2019-06-21 09:34:05 +05:30 committed by Eugene Sandulenko
parent 4d22df8037
commit aec87e7058
2 changed files with 11 additions and 0 deletions

View File

@ -668,12 +668,22 @@ AIEntTypeInfo aiEntList[] = {
AI::AI() {
_ents = new Common::Array<AIEntity *>;
_floats = new Common::Array<AIEntity *>;
for (int i = 0; i < kMaxLevel2Ents;i++) {
_entsLevel2[i] = new AIEntLevel2;
}
// REMOVE: Remove for final. Used here due to lack of a MENU
_numGems = _numGooCups = _numMonkeystones = _numInventory = 0;
}
AI::~AI() {
delete _ents;
delete _floats;
for (int i = 0; i < kMaxLevel2Ents;i++) {
delete _entsLevel2[i];
}
}
bool AI::init() {

View File

@ -747,6 +747,7 @@ public:
private:
Common::Array<AIEntity *> *_ents;
Common::Array<AIEntity *> *_floats;
AIEntity *_player;
// Cinematics Variables