From 1c3fcf22a1b3665fc4bfb0343b6de315bbf9a324 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 17 Oct 2013 08:17:03 +0200 Subject: AVALANCHE: Some more refactoring --- engines/avalanche/animation.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'engines/avalanche/animation.h') diff --git a/engines/avalanche/animation.h b/engines/avalanche/animation.h index 703d35c832..33f6ab02a6 100644 --- a/engines/avalanche/animation.h +++ b/engines/avalanche/animation.h @@ -42,29 +42,25 @@ enum Direction { class AnimationType { public: - // Former SpriteInfo structure + byte _id; + byte _xLength, _yLength; ManiType *_mani[24]; SilType *_sil[24]; - - // Former Stat structure byte _frameNum; // Number of pictures. byte _seq; // How many in one stride. - Color _fgBubbleCol, _bgBubbleCol; // Foreground & background bubble colors. byte _characterId; // The number according to Acci. (1=Avvy, etc.) - // + byte _count; // Counts before changing step. Direction _facingDir; byte _stepNum; int16 _x, _y; // Current xy coords. int8 _moveX, _moveY; // Amount to move sprite by, each step. - byte _id; bool _quick, _visible, _homing, _doCheck; int16 _homingX, _homingY; // Homing x & y coords. - byte _count; // Counts before changing step. - byte _speedX, _speedY; // x & y speed. - bool _vanishIfStill; // Do we show this sprite if it's still? - bool _callEachStepFl; // Do we call the eachstep procedure? + byte _speedX, _speedY; + bool _vanishIfStill; + bool _callEachStepFl; byte _eachStepProc; AnimationType(Animation *anim); @@ -78,7 +74,6 @@ public: void walk(); void walkTo(byte pednum); void stopHoming(); - void homeStep(); void setSpeed(int8 xx, int8 yy); void stopWalk(); void chatter(); @@ -88,9 +83,11 @@ private: Animation *_anim; int16 _oldX[2], _oldY[2]; // Last xy coords. + Color _fgBubbleCol, _bgBubbleCol; // Foreground & background bubble colors. bool checkCollision(); int8 getSign(int16 val); + void homeStep(); }; class Animation { @@ -132,6 +129,9 @@ public: Direction getDirection(); Direction getOldDirection(); + void setAvvyClothes(int id); + int getAvvyClothes(); + void resetVariables(); void synchronize(Common::Serializer &sz); private: -- cgit v1.2.3