25 #include "gnap/debugger.h" 34 int _closerSequenceId;
35 int _passedSequenceId;
36 int _splashSequenceId;
37 int _collisionSequenceId;
54 void updateHotspots()
override;
56 void updateAnimations()
override;
57 void updateAnimationsCb()
override {};
69 void checkObstacles();
70 void updateObstacle(
int id);
71 void increaseScore(
int amount);
72 void decreaseScore(
int amount);
73 void refreshScoreBar();
74 void clearObstacle(
int index);
85 void updateHotspots()
override;
87 void updateAnimations()
override;
88 void updateAnimationsCb()
override {};
93 int _timesPlayedModifier;
97 int _leftTongueRoundsWon;
98 int _rightTongueRoundsWon;
99 int _leftTongueEnergyBarPos;
100 int _rightTongueEnergyBarPos;
101 int _leftTongueSequenceId;
103 int _leftTongueNextSequenceId;
104 int _leftTongueNextId;
105 int _leftTongueNextIdCtr;
106 int _rightTongueSequenceId;
108 int _rightTongueNextSequenceId;
109 int _rightTongueNextId;
110 int _rightTongueNextIdCtr;
111 int _leftTongueEnergy;
112 int _rightTongueEnergy;
114 bool tongueWinsRound(
int tongueNum);
115 void playWinAnim(
int tongueNum,
bool fightOver);
118 bool updateCountdown();
119 void drawCountdown(
int value);
120 void playTonguesIdle();
121 void playRoundAnim(
int roundNum);
122 bool updateEnergyBars(
int newLeftBarPos,
int newRightBarPos);
123 void waitForAnim(
int animationIndex);
125 int getRightTongueAction();
126 int getRightTongueActionTicks();
127 int getLeftTongueNextId();
128 int getRightTongueNextId();
129 void playWinBadgeAnim(
int tongueNum);
136 int _droppedSequenceId;
151 void updateHotspots()
override;
153 void updateAnimations()
override {};
154 void updateAnimationsCb()
override {};
161 int _digitSequenceIds[4];
163 int _guyNextSequenceId;
166 int _nextDropItemKind;
168 int _itemInsertDirection;
169 int _platypusSequenceId;
170 int _platypusNextSequenceId;
171 int _platypusJumpSequenceId;
180 void updateItemAnimations();
181 int checkCollision(
int sequenceId);
182 void updateItemAnimation(
Scene51Item *item,
int index);
183 void removeCollidedItems();
185 bool isJumpingRight(
int sequenceId);
186 bool isJumpingLeft(
int sequenceId);
187 bool isJumping(
int sequenceId);
188 void waitForAnim(
int animationIndex);
189 int getPosRight(
int sequenceId);
190 int getPosLeft(
int sequenceId);
191 void playIntroAnim();
192 void updateGuyAnimation();
193 int incCashAmount(
int sequenceId);
195 void playCashAppearAnim();
196 void updateCash(
int amount);
197 void drawDigit(
int digit,
int position);
198 void initCashDisplay();
209 void updateHotspots()
override;
211 void updateAnimations()
override {};
212 void updateAnimationsCb()
override {};
218 int _arcadeScreenBottom;
220 int _shieldSpriteIds[3];
223 int _shipCannonPosX, _shipCannonPosY;
224 bool _shipCannonFiring;
225 bool _shipCannonFired;
226 int _shipCannonWidth, _shipCannonHeight;
228 int _shipMidX, _shipMidY;
230 bool _aliensInitialized;
231 int _alienSpeed, _alienDirection;
232 int _alienWidth, _alienHeight;
233 int _alienLeftX, _alienTopY;
234 int _alienRowDownCtr;
235 int _alienRowKind[8];
236 int _alienRowAnims[8];
238 int _alienRowXOfs[8];
239 int _alienCannonFired[3];
240 int _alienCannonPosX[3];
241 int _alienCannonPosY[3];
242 int _alienCannonSequenceIds[3];
243 int _alienCannonIds[3];
244 bool _alienWave, _alienSingle;
246 bool _bottomAlienFlag;
249 int _nextUfoSequenceId, _ufoSequenceId;
252 void initShipCannon(
int bottomY);
253 void initAlienCannons();
254 void fireShipCannon(
int posX);
255 void fireAlienCannon();
256 int getFreeShipCannon();
257 int getFreeAlienCannon();
258 void updateShipCannon();
259 void updateAlienCannons();
261 void initAlienRowKind(
int rowNum,
int alienKind);
262 void insertAlienRow(
int rowNum);
263 void insertAlienRowAliens(
int rowNum);
264 void updateAlienRow(
int rowNum);
265 void moveDownAlienRow();
266 int updateHitAlien();
267 int getHitAlienNum(
int rowNum);
268 int alienCannonHitShip(
int cannonNum);
269 int alienCannonHitShield(
int cannonNum);
270 bool shipCannonHitShield(
int cannonNum);
271 bool shipCannonHitAlien();
273 bool checkAlienRow(
int rowNum);
274 void updateAlienRowXOfs();
275 void initAlienSize();
278 void updateAlien(
int rowNum);
282 void drawScore(
int score);
287 #endif // GNAP_ARCADE_H
Definition: character.h:25
Definition: scenecore.h:31