summaryrefslogtreecommitdiff
path: root/include/statelib.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-08 20:46:54 +0100
committerTreeki <treeki@gmail.com>2012-01-08 20:46:54 +0100
commitef5d3be97708ba98f242a25e4a63127a8138dbf9 (patch)
tree4257318283680b9cf31630db798acfe545051283 /include/statelib.h
parentd97a92f2c80e5af70aebc63d68ce7a6108ede589 (diff)
downloadkamek-ef5d3be97708ba98f242a25e4a63127a8138dbf9.tar.gz
kamek-ef5d3be97708ba98f242a25e4a63127a8138dbf9.zip
State system finally works
Diffstat (limited to 'include/statelib.h')
-rw-r--r--include/statelib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/statelib.h b/include/statelib.h
index 092ef6a..e65f33a 100644
--- a/include/statelib.h
+++ b/include/statelib.h
@@ -120,6 +120,7 @@ class dStateExecutorBase_c {
template <class TOwner>
class dStateMethodExecutor_c : public dStateMethodExecutorBase_c {
public:
+ dStateMethodExecutor_c(TOwner *pOwner) : mOwningObject(pOwner) { }
~dStateMethodExecutor_c() { }
void callBegin();
@@ -133,6 +134,7 @@ class dStateMethodExecutor_c : public dStateMethodExecutorBase_c {
template <class TOwner>
class dStateExecutor_c : public dStateExecutorBase_c {
public:
+ dStateExecutor_c(TOwner *pOwner) : mStockExecutor(pOwner) { }
~dStateExecutor_c() { }
dStateMethodExecutorBase_c *getMethodExecutorForState(dStateBase_c *state);