mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
FULLPIPE: Implement MovGraph::getItemIndexByStaticAni()
This commit is contained in:
parent
d356f17161
commit
eeec908123
@ -660,6 +660,14 @@ void MovGraph::calcNodeDistancesAndAngles() {
|
||||
}
|
||||
}
|
||||
|
||||
int MovGraph::getItemIndexByStaticAni(StaticANIObject *ani) {
|
||||
for (uint i = 0; i < _items.size(); i++)
|
||||
if (_items[i]->ani == ani)
|
||||
return i;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
int MovGraph2::getItemIndexByGameObjectId(int objectId) {
|
||||
for (uint i = 0; i < _items2.size(); i++)
|
||||
if (_items2[i]->_objectId == objectId)
|
||||
|
@ -347,6 +347,7 @@ public:
|
||||
double calcDistance(Common::Point *point, MovGraphLink *link, int fuzzyMatch);
|
||||
void calcNodeDistancesAndAngles();
|
||||
MovGraphNode *calcOffset(int ox, int oy);
|
||||
int getItemIndexByStaticAni(StaticANIObject *ani);
|
||||
};
|
||||
|
||||
class Movement;
|
||||
|
Loading…
Reference in New Issue
Block a user