summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/mrsun.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/mrsun.cpp b/src/mrsun.cpp
index 668a789..7b6dd8d 100755
--- a/src/mrsun.cpp
+++ b/src/mrsun.cpp
@@ -12,6 +12,13 @@ class daMrSun_c : public dEn_c {
m3d::mdl_c model;
static daMrSun_c *build();
+
+ USING_STATES(daMrSun_c);
+ DECLARE_STATE(Follow);
+ DECLARE_STATE(Swoop);
+ DECLARE_STATE(Spiral);
+ DECLARE_STATE(Spit);
+ DECLARE_STATE(Spin);
};
daMrSun_c *daMrSun_c::build() {
@@ -19,6 +26,12 @@ daMrSun_c *daMrSun_c::build() {
return new(buffer) daMrSun_c;
}
+CREATE_STATE(daMrSun_c, Follow);
+CREATE_STATE(daMrSun_c, Swoop);
+CREATE_STATE(daMrSun_c, Spiral);
+CREATE_STATE(daMrSun_c, Spit);
+CREATE_STATE(daMrSun_c, Spin);
+
#define ACTIVATE 1
#define DEACTIVATE 0
@@ -54,6 +67,8 @@ int daMrSun_c::onCreate() {
this->aPhysics.initWithStruct(this, &HitMeBaby);
this->aPhysics.addToList();
+ doStateChange(&StateID_Follow);
+
OSReport("Going to Execute Mr.Sun");
this->onExecute();
return true;
@@ -74,3 +89,25 @@ int daMrSun_c::onDraw() {
}
+
+void daMrSun_c::beginState_Follow() { }
+void daMrSun_c::executeState_Follow() { }
+void daMrSun_c::endState_Follow() { }
+
+void daMrSun_c::beginState_Swoop() { }
+void daMrSun_c::executeState_Swoop() { }
+void daMrSun_c::endState_Swoop() { }
+
+void daMrSun_c::beginState_Spiral() { }
+void daMrSun_c::executeState_Spiral() { }
+void daMrSun_c::endState_Spiral() { }
+
+void daMrSun_c::beginState_Spit() { }
+void daMrSun_c::executeState_Spit() { }
+void daMrSun_c::endState_Spit() { }
+
+void daMrSun_c::beginState_Spin() { }
+void daMrSun_c::executeState_Spin() { }
+void daMrSun_c::endState_Spin() { }
+
+