summaryrefslogtreecommitdiff
path: root/src/mrsun.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-09-17 03:25:03 +0200
committerTreeki <treeki@gmail.com>2011-09-17 03:25:03 +0200
commit61ee938f79bd4081f03e0d4323e42573f29628fb (patch)
treede43f4730a5f36ec27ab447144b68605018f71db /src/mrsun.cpp
parent5a9232c600b333b325eb14cc91ba1bba1e369283 (diff)
downloadkamek-61ee938f79bd4081f03e0d4323e42573f29628fb.tar.gz
kamek-61ee938f79bd4081f03e0d4323e42573f29628fb.zip
statified MrSun
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() { }
+
+