Skip to content

Commit

Permalink
FULLPIPE: Implement MGM::updateAnimStatics()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 11, 2013
1 parent 8caec76 commit e867326
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
28 changes: 27 additions & 1 deletion engines/fullpipe/motion.cpp
Expand Up @@ -1520,7 +1520,33 @@ MessageQueue *MGM::genMovement(MGMInfo *mgminfo) {
}

void MGM::updateAnimStatics(StaticANIObject *ani, int staticsId) {
warning("STUB: MGM::updateAnimStatics()");
if (getItemIndexById(ani->_id) == -1)
return;

if (ani->_movement) {
ani->queueMessageQueue(0);
ani->_movement->gotoLastFrame();
ani->_statics = ani->_movement->_staticsObj2;
ani->_movement = 0;

ani->setOXY(ani->_movement->_ox, ani->_movement->_oy);
}

if (ani->_statics) {
Common::Point point;

getPoint(&point, ani->_id, ani->_statics->_staticsId, staticsId);

ani->setOXY(ani->_ox + point.x, ani->_oy + point.y);

ani->_statics = ani->getStaticsById(staticsId);
}
}

Common::Point *MGM::getPoint(Common::Point *point, int aniId, int staticsId1, int staticsId2) {
warning("STUB: MGM::getPoint()");

return point;
}

MovGraphLink::MovGraphLink() {
Expand Down
1 change: 1 addition & 0 deletions engines/fullpipe/motion.h
Expand Up @@ -160,6 +160,7 @@ class MGM : public CObject {

MessageQueue *genMovement(MGMInfo *mgminfo);
void updateAnimStatics(StaticANIObject *ani, int staticsId);
Common::Point *getPoint(Common::Point *point, int aniId, int staticsId1, int staticsId2);
};

struct MctlLadderMovementVars {
Expand Down

0 comments on commit e867326

Please sign in to comment.