29 #ifndef AVALANCHE_ANIMATION_H 30 #define AVALANCHE_ANIMATION_H 33 class AvalancheEngine;
37 kDirUp = 0, kDirRight, kDirDown, kDirLeft,
38 kDirUpRight, kDirDownRight, kDirDownLeft, kDirUpLeft,
39 kDirStopped, kDirNone = 177
46 byte _xLength, _yLength;
58 bool _quick, _visible, _homing, _doCheck;
59 int16 _homingX, _homingY;
60 byte _speedX, _speedY;
67 void init(byte spritenum,
bool doCheck);
70 void turn(Direction whichway);
71 void appear(int16 wx, int16 wy, Direction wf);
74 void walkTo(byte pednum);
76 void setSpeed(int8 xx, int8 yy);
84 int16 _oldX[2], _oldY[2];
85 Color _fgBubbleCol, _bgBubbleCol;
87 bool checkCollision();
88 int8 getSign(int16 val);
96 static const byte kSpriteNumbMax = 5;
115 void callSpecial(uint16 which);
116 void catacombMove(byte ped);
118 void setMoveSpeed(byte t, Direction dir);
119 void appearPed(byte sprNum, byte pedNum);
120 bool inField(byte which);
124 void hideInCupboard();
127 void drawLightning(int16 x1, int16 y1, int16 x2, int16 y2);
132 void setDirection(Direction dir);
133 void setOldDirection(Direction dir);
134 Direction getDirection();
135 Direction getOldDirection();
137 void setAvvyClothes(
int id);
138 int getAvvyClothes();
140 void resetVariables();
143 Direction _direction;
144 Direction _oldDirection;
145 static const int32 kCatacombMap[8][8];
146 bool _arrowTriggered;
148 byte _geidaSpin, _geidaTime;
153 byte checkFeet(int16 x1, int16 x2, int16 oy, int16 y, byte yl);
154 byte geidaPed(byte ped);
157 void grabAvvy(byte tripnum);
158 void arrowProcs(byte tripnum);
161 void followAvalotY(byte tripnum);
162 void backAndForth(byte tripnum);
163 void faceAvvy(byte tripnum);
166 void spin(Direction dir, byte &tripnum);
167 void takeAStep(byte &tripnum);
168 void follow(byte tripnum);
175 #endif // AVALANCHE_ANIMATION_H Definition: animation.h:32
Definition: animation.h:42
Definition: avalanche.h:74
Definition: serializer.h:79
Definition: animation.h:92