aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/animation.h
diff options
context:
space:
mode:
authorStrangerke2013-10-17 08:17:03 +0200
committerWillem Jan Palenstijn2013-10-17 22:17:10 +0200
commit1c3fcf22a1b3665fc4bfb0343b6de315bbf9a324 (patch)
tree2fb8a9e038efadbb7dcee11daaac451fa036d9dd /engines/avalanche/animation.h
parent5f0361c03a5cfd328872684d8bba51ae12f3d1c0 (diff)
downloadscummvm-rg350-1c3fcf22a1b3665fc4bfb0343b6de315bbf9a324.tar.gz
scummvm-rg350-1c3fcf22a1b3665fc4bfb0343b6de315bbf9a324.tar.bz2
scummvm-rg350-1c3fcf22a1b3665fc4bfb0343b6de315bbf9a324.zip
AVALANCHE: Some more refactoring
Diffstat (limited to 'engines/avalanche/animation.h')
-rw-r--r--engines/avalanche/animation.h22
1 files changed, 11 insertions, 11 deletions
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: