summaryrefslogtreecommitdiff
path: root/include/statelib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/statelib.h')
-rw-r--r--include/statelib.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/statelib.h b/include/statelib.h
index d387f02..092ef6a 100644
--- a/include/statelib.h
+++ b/include/statelib.h
@@ -90,8 +90,8 @@ void dState_c<TOwner>::doEnd(TOwner *owner) {
/******************************************************************************/
class dStatePointless_c {
public:
- virtual ~dStatePointless_c();
- virtual int returnsOne(); // Does exactly what it says on the tin.
+ virtual ~dStatePointless_c() { };
+ virtual int returnsOne() { return 1; }
};
/******************************************************************************/
@@ -99,7 +99,7 @@ class dStatePointless_c {
/******************************************************************************/
class dStateMethodExecutorBase_c {
public:
- virtual ~dStateMethodExecutorBase_c() = 0;
+ virtual ~dStateMethodExecutorBase_c() { }
virtual void callBegin() = 0;
virtual void callExecute() = 0;
@@ -108,7 +108,7 @@ class dStateMethodExecutorBase_c {
class dStateExecutorBase_c {
public:
- virtual ~dStateExecutorBase_c() = 0;
+ virtual ~dStateExecutorBase_c() { }
virtual dStateMethodExecutorBase_c *getMethodExecutorForState(dStateBase_c *state) = 0;
virtual void clearMethodExecutor(dStateMethodExecutorBase_c **ptrToPtrToExecutor) = 0;
@@ -120,7 +120,7 @@ class dStateExecutorBase_c {
template <class TOwner>
class dStateMethodExecutor_c : public dStateMethodExecutorBase_c {
public:
- ~dStateMethodExecutor_c();
+ ~dStateMethodExecutor_c() { }
void callBegin();
void callExecute();
@@ -133,7 +133,7 @@ class dStateMethodExecutor_c : public dStateMethodExecutorBase_c {
template <class TOwner>
class dStateExecutor_c : public dStateExecutorBase_c {
public:
- ~dStateExecutor_c();
+ ~dStateExecutor_c() { }
dStateMethodExecutorBase_c *getMethodExecutorForState(dStateBase_c *state);
void clearMethodExecutor(dStateMethodExecutorBase_c **ptrToPtrToExecutor);
@@ -225,7 +225,7 @@ protected:
class dStateMgr_c : public dStateMgrBase_c {
public:
dStateMgr_c(dStatePointless_c *pPointlessClass, dStateExecutorBase_c *pStateExecutor, dStateBase_c *pInitState);
- ~dStateMgr_c();
+ ~dStateMgr_c() { }
bool callBeginOnState();
void callExecuteOnState();