FULLPIPE: Implement StaticANIObject::preloadMovements()

This commit is contained in:
Eugene Sandulenko 2014-01-12 00:47:52 +02:00
parent 2d3ac3100c
commit 4a0bfb751c
2 changed files with 15 additions and 1 deletions

View File

@ -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) {
@ -1680,6 +1689,10 @@ void Movement::loadPixelData() {
mov->_staticsObj1->getPixelData();
}
void Movement::freePixelData() {
warning("STUB: Movement::freePixelData()");
}
void Movement::removeFirstPhase() {
if (_updateFlag1) {
if (!_currDynamicPhaseIndex)

View File

@ -164,6 +164,7 @@ class Movement : public GameObject {
void gotoLastFrame();
void loadPixelData();
void freePixelData();
void draw(bool flipFlag, int angle);
};