28 #ifndef GROOVIE_LOGIC_MOUSETRAP_H 29 #define GROOVIE_LOGIC_MOUSETRAP_H 31 #include "common/random.h" 32 #include "common/system.h" 57 void run(byte *scriptVariables);
61 void sub01(byte *scriptVariables);
62 void sub03(byte *scriptVariables);
63 void sub05(byte *scriptVariables);
64 void sub06(byte *scriptVariables);
65 void sub07(byte *scriptVariables);
66 void sub08(byte *scriptVariables);
67 void sub09(byte *scriptVariables);
68 void copyRoute(int8 x, int8 y);
69 int8 xyToPos(int8 x, int8 y);
70 void posToXY(int8 pos, int8 *x, int8 *y);
71 void copyStateToVars(byte *scriptVariables);
72 int8 findState(int8 val);
73 void flipField(int8 x, int8 y);
75 bool havePosInRoute(int8 y, int8 x);
76 void addToRoute(int8 y, int8 x, int8 num);
78 void popLastStep(int8 *x, int8 *y);
79 void goFarthest(int8 *x, int8 *y);
80 void findMinPointInRoute(int8 *y, int8 *x);
81 int8 calcDistanceToExit();
82 void getBestDirection(int8 *x, int8 *y);
83 void findMaxPointInRoute(int8 *x, int8 *y);
84 int8 findMaxInRoute();
89 int8 _mouseTrapX, _mouseTrapY;
90 int8 _mouseTrapCounter, _mouseTrapCounter1;
91 int8 _mouseTrapRoute[75];
92 int8 _mouseTrapRouteCopy[76];
93 int8 _mouseTrapCells[31];
94 int8 _mouseTrapPosX, _mouseTrapPosY;
95 int8 _mouseTrapNumSteps;
101 #endif // GROOVIE_LOGIC_MOUSETRAP_H Definition: mousetrap.h:54