28 #ifndef GROOVIE_LOGIC_TRIANGLE_H 29 #define GROOVIE_LOGIC_TRIANGLE_H 31 #include "common/random.h" 32 #include "common/system.h" 39 void run(byte *scriptVariables);
44 int8 sub03(int8 player);
45 void sub05(int8 *triangleCells, int8 *a2, int8 *a3);
46 void sub07(int8 *tempMoves, int8 *triangleCells, int8 *tempTriangle3, int8 *tempTriangle2, int8 *tempTriangle1, int8 *tempMoves2);
47 int8 sub09(int8 key, int8 *a2, int8 *a3, int8 *a4, int8 *triangleCells);
48 int8 sub10(int8 key, int8 *a2, int8 *triangleCells);
49 int8 sub12(int8 a1, int8 *a2, int8 *triangleCells, int8 *a4);
50 int sub13(int8 row, int8 *triangleCells, int8 *moves);
51 void setCell(int8 cellnum, int8 val);
52 void copyLogicRow(
int row, int8 key, int8 *dest);
53 void replaceCells(int8 *tempTriangle,
int limit, int8 from, int8 to);
54 int copyLookup(
const int8 *lookup, int8 *start, int8 *dest);
55 void collapseLoops(int8 *route, int8 *singleRow);
58 void ensureSamanthaWin(uint32 seed);
59 void testPlayRandomly(uint32 seed);
63 int _triangleCellCount;
64 int8 _triangleCells[66];
71 #endif // GROOVIE_LOGIC_TRIANGLE_H
Definition: triangle.h:36