summaryrefslogtreecommitdiff
path: root/src/simulation/elements/LOVE.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-10-04 03:44:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-05 15:52:53 (GMT)
commit774bc08c2cad7919573543d711eee826e26f670d (patch)
tree795545ca3f1b933002984fe49b943f2598a1f1b1 /src/simulation/elements/LOVE.cpp
parentd159467b63b930958930f252b208ecb7e959ad97 (diff)
downloadpowder-774bc08c2cad7919573543d711eee826e26f670d.zip
powder-774bc08c2cad7919573543d711eee826e26f670d.tar.gz
Move LOLZ/LOVE Rule tables into more appropriate location (element file)
Diffstat (limited to 'src/simulation/elements/LOVE.cpp')
-rw-r--r--src/simulation/elements/LOVE.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/simulation/elements/LOVE.cpp b/src/simulation/elements/LOVE.cpp
index e15cea2..3e7b3d4 100644
--- a/src/simulation/elements/LOVE.cpp
+++ b/src/simulation/elements/LOVE.cpp
@@ -46,6 +46,20 @@ Element_LOVE::Element_LOVE()
}
+//#TPT-Directive ElementHeader Element_LOVE static int RuleTable[9][9]
+int Element_LOVE::RuleTable[9][9] =
+{
+ {0,0,1,1,0,0,0,0,0},
+ {0,1,0,0,1,1,0,0,0},
+ {1,0,0,0,0,0,1,0,0},
+ {1,0,0,0,0,0,0,1,0},
+ {0,1,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,1,0},
+ {1,0,0,0,0,0,1,0,0},
+ {0,1,0,0,1,1,0,0,0},
+ {0,0,1,1,0,0,0,0,0},
+};
+
//#TPT-Directive ElementHeader Element_LOVE static int update(UPDATE_FUNC_ARGS)
int Element_LOVE::update(UPDATE_FUNC_ARGS)
{