DM: Add F0145_DUNGEON_GetGroupCells

This commit is contained in:
Bendegúz Nagy 2016-06-30 14:54:54 +02:00
parent 5bb19fd261
commit 4f394fc301
2 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "group.h"
#include "dungeonman.h"
#include "champion.h"
@ -51,4 +52,11 @@ void GroupMan::initActiveGroups() {
_activeGroups[i]._groupThingIndex = -1;
}
uint16 GroupMan::getGroupCells(Group* group, int16 mapIndex) {
byte cells;
cells = group->_cells;
if (mapIndex == _vm->_dungeonMan->_currMap._currPartyMapIndex)
cells = _activeGroups[cells]._cells;
return cells;
}
}

View File

@ -85,6 +85,7 @@ public:
GroupMan(DMEngine *vm);
~GroupMan();
void initActiveGroups(); // @ F0196_GROUP_InitializeActiveGroups
uint16 getGroupCells(Group *group, int16 mapIndex); // @ F0145_DUNGEON_GetGroupCells
};