diff options
author | Treeki <treeki@gmail.com> | 2012-01-08 20:46:54 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-01-08 20:46:54 +0100 |
commit | ef5d3be97708ba98f242a25e4a63127a8138dbf9 (patch) | |
tree | 4257318283680b9cf31630db798acfe545051283 /include/game.h | |
parent | d97a92f2c80e5af70aebc63d68ce7a6108ede589 (diff) | |
download | kamek-ef5d3be97708ba98f242a25e4a63127a8138dbf9.tar.gz kamek-ef5d3be97708ba98f242a25e4a63127a8138dbf9.zip |
State system finally works
Diffstat (limited to 'include/game.h')
-rwxr-xr-x | include/game.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/game.h b/include/game.h index e5a4813..0fa72c9 100755 --- a/include/game.h +++ b/include/game.h @@ -1095,11 +1095,11 @@ class dActorMultiState_c; template <class TOwner>
class dStateWrapperBase_c {
public:
- dStateWrapperBase_c() :
- manager(&pointless, &executor, &dStateBase_c::mNoState) { }
+ dStateWrapperBase_c(TOwner *pOwner) :
+ manager(&pointless, &executor, &dStateBase_c::mNoState), executor(pOwner) { }
- dStateWrapperBase_c(dState_c<TOwner> *pInitState) :
- manager(&pointless, &executor, pInitState) { }
+ dStateWrapperBase_c(TOwner *pOwner, dState_c<TOwner> *pInitState) :
+ manager(&pointless, &executor, pInitState), executor(pOwner) { }
virtual ~dStateWrapperBase_c() { }
@@ -1123,11 +1123,11 @@ public: template <class TOwner>
class dStateWrapper_c : public dStateWrapperBase_c<TOwner> {
public:
- dStateWrapper_c() :
- dStateWrapperBase_c() { }
+ dStateWrapper_c(TOwner *pOwner) :
+ dStateWrapperBase_c(pOwner) { }
- dStateWrapper_c(dState_c<TOwner> *pInitState) :
- dStateWrapperBase_c(pInitState) { }
+ dStateWrapper_c(TOwner *pOwner, dState_c<TOwner> *pInitState) :
+ dStateWrapperBase_c(pOwner, pInitState) { }
~dStateWrapper_c() { }
};
|