diff options
| author | Eugene Sandulenko | 2014-01-12 00:47:52 +0200 | 
|---|---|---|
| committer | Eugene Sandulenko | 2014-01-12 00:48:11 +0200 | 
| commit | 4a0bfb751c05d3f30eee4c6c1c4bcdb78f5058db (patch) | |
| tree | 2962d82008950e879e2db7139bbd981311883b27 | |
| parent | 2d3ac3100c2e9fde135f9defb07a632632341242 (diff) | |
| download | scummvm-rg350-4a0bfb751c05d3f30eee4c6c1c4bcdb78f5058db.tar.gz scummvm-rg350-4a0bfb751c05d3f30eee4c6c1c4bcdb78f5058db.tar.bz2 scummvm-rg350-4a0bfb751c05d3f30eee4c6c1c4bcdb78f5058db.zip | |
FULLPIPE: Implement StaticANIObject::preloadMovements()
| -rw-r--r-- | engines/fullpipe/statics.cpp | 15 | ||||
| -rw-r--r-- | engines/fullpipe/statics.h | 1 | 
2 files changed, 15 insertions, 1 deletions
| diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 5f62cd4f1f..9c025dcf29 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -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) diff --git a/engines/fullpipe/statics.h b/engines/fullpipe/statics.h index d38737fd54..a620daa528 100644 --- a/engines/fullpipe/statics.h +++ b/engines/fullpipe/statics.h @@ -164,6 +164,7 @@ class Movement : public GameObject {  	void gotoLastFrame();  	void loadPixelData(); +	void freePixelData();  	void draw(bool flipFlag, int angle);  }; | 
