summaryrefslogtreecommitdiff
path: root/src/simulation/SimulationData.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-09 10:46:42 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-09 10:46:42 (GMT)
commit798c78b04eda4bf8bf9b9dc4997692e0010eb93c (patch)
treeed3ce2fa2a3a29e09b0fe8d6dae955c5e9a66dad /src/simulation/SimulationData.cpp
parentc88079d084f2f3b7ec891da22f8c497cd2652853 (diff)
downloadpowder-798c78b04eda4bf8bf9b9dc4997692e0010eb93c.zip
powder-798c78b04eda4bf8bf9b9dc4997692e0010eb93c.tar.gz
Add missing GOL data
Diffstat (limited to 'src/simulation/SimulationData.cpp')
-rw-r--r--src/simulation/SimulationData.cpp35
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[] =