Skip to content

Commit

Permalink
FULLPIPE: Implement StaticANIObject::preloadMovements()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 11, 2014
1 parent 2d3ac31 commit 4a0bfb7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion engines/fullpipe/statics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,16 @@ void StaticANIObject::initMovements() {
}

void StaticANIObject::preloadMovements(MovTable *mt) {
warning("STUB: StaticANIObject::preloadMovements()");
if ( mt ) {
for (uint i = 0; i < _movements.size(); i++) {
Movement *mov = (Movement *)_movements[i];

if (mt->movs[i] == 1)
mov->loadPixelData();
else if (mt->movs[i] == 2)
mov->freePixelData();
}
}
}

Common::Point *StaticANIObject::getCurrDimensions(Common::Point &p) {
Expand Down Expand Up @@ -1680,6 +1689,10 @@ void Movement::loadPixelData() {
mov->_staticsObj1->getPixelData();
}

void Movement::freePixelData() {
warning("STUB: Movement::freePixelData()");
}

void Movement::removeFirstPhase() {
if (_updateFlag1) {
if (!_currDynamicPhaseIndex)
Expand Down
1 change: 1 addition & 0 deletions engines/fullpipe/statics.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class Movement : public GameObject {
void gotoLastFrame();

void loadPixelData();
void freePixelData();

void draw(bool flipFlag, int angle);
};
Expand Down

0 comments on commit 4a0bfb7

Please sign in to comment.