diff options
author | uruk | 2013-09-08 11:40:35 +0200 |
---|---|---|
committer | uruk | 2013-09-08 11:40:35 +0200 |
commit | 8f152c083394a877db1d2576e6654cdbdee5999e (patch) | |
tree | 8f2d4c3a89f0cb0ba90e0afe8fe862d6c89c5eb4 /engines/avalanche/animation.h | |
parent | f7de651560578e95db4c5fa4c67a50488d4658ef (diff) | |
download | scummvm-rg350-8f152c083394a877db1d2576e6654cdbdee5999e.tar.gz scummvm-rg350-8f152c083394a877db1d2576e6654cdbdee5999e.tar.bz2 scummvm-rg350-8f152c083394a877db1d2576e6654cdbdee5999e.zip |
AVALANCHE: Renaming/refactoring in Animation.
Diffstat (limited to 'engines/avalanche/animation.h')
-rw-r--r-- | engines/avalanche/animation.h | 42 |
1 files changed, 9 insertions, 33 deletions
diff --git a/engines/avalanche/animation.h b/engines/avalanche/animation.h index 00f11540f1..7cb8e12f0b 100644 --- a/engines/avalanche/animation.h +++ b/engines/avalanche/animation.h @@ -37,46 +37,23 @@ namespace Avalanche { class AvalancheEngine; +class Animation; -struct adxtype { // Second revision of ADX type - // CHECKME: Useless? - Common::String _name; // name of character - Common::String _comment; // comment +struct StatType { + Common::String _name; // Name of character. + Common::String _comment; // Comment. // - byte _frameNum; // number of pictures - byte seq; // how many in one stride - byte _fgBubbleCol, _bgBubbleCol; // foreground & background bubble colors - byte accinum; // the number according to Acci (1=Avvy, etc.) -}; - -struct AnimationSaver { - byte _id; - byte _facingDir; - byte _stepNum; - int16 _x; - int16 _y; - int8 _moveX; - int8 _moveY; - bool _visible; - bool _homing; - bool _doCheck; - byte _count; - byte _xWidth, _speedX, _speedY; - byte _animCount; - int16 _homingX; - int16 _homingY; - bool _callEachStepFl; - byte _eachStepProc; - bool _vanishIfStill; + byte _frameNum; // Number of pictures. + byte _seq; // How many in one stride. + byte _fgBubbleCol, _bgBubbleCol; // Foreground & background bubble colors. + byte _acciNum; // The number according to Acci. (1=Avvy, etc.) }; -class Animation; - class AnimationType { public: SpriteInfo _info; - adxtype _stat; // Vital statistics. + StatType _stat; // Vital statistics. byte _facingDir, _stepNum; int16 _x, _y; // Current xy coords. int16 _oldX[2], _oldY[2]; // Last xy coords. @@ -116,7 +93,6 @@ private: class Animation { public: friend class AnimationType; - friend class getsettype; static const byte kDirUp = 0; static const byte kDirRight = 1; |