diff options
Diffstat (limited to 'src/simulation/SimulationData.cpp')
| -rw-r--r-- | src/simulation/SimulationData.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/simulation/SimulationData.cpp b/src/simulation/SimulationData.cpp index 8dd21e0..da0cad6 100644 --- a/src/simulation/SimulationData.cpp +++ b/src/simulation/SimulationData.cpp @@ -80,6 +80,41 @@ int * LoadGOLRules(int & golRuleCount) return golRulesT; } +int * LoadGOLTypes(int & golTypeCount) +{ + int golTypes[NGOL] = + { + GT_GOL, + GT_HLIF, + GT_ASIM, + GT_2x2, + GT_DANI, + GT_AMOE, + GT_MOVE, + GT_PGOL, + GT_DMOE, + GT_34, + GT_LLIF, + GT_STAN, + GT_SEED, + GT_MAZE, + GT_COAG, + GT_WALL, + GT_GNAR, + GT_REPL, + GT_MYST, + GT_LOTE, + GT_FRG2, + GT_STAR, + GT_FROG, + GT_BRAN, + }; + golTypeCount = NGOL; + int * golTypesT = (int*)malloc((golTypeCount)*sizeof(int)); + memcpy(golTypesT, golTypes, (golTypeCount)*sizeof(int)); + return golTypesT; +} + wall_type * LoadWalls(int & wallCount) { wall_type wtypes[] = |
