diff options
author | Treeki <treeki@gmail.com> | 2012-03-15 02:54:33 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-03-15 02:54:33 +0100 |
commit | e88fd1dcef52d4375fef655918886fc14bb1f40c (patch) | |
tree | f081b14a420331258665a58ad31be54b13b1c655 /src/bossFuzzyBear.cpp | |
parent | 18a6c3dbe01f484b346923ebc53f674c1e4a5101 (diff) | |
download | kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.tar.gz kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.zip |
optimisations to reduce code size
Diffstat (limited to '')
-rw-r--r-- | src/bossFuzzyBear.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/bossFuzzyBear.cpp b/src/bossFuzzyBear.cpp index b5b9124..af7699d 100644 --- a/src/bossFuzzyBear.cpp +++ b/src/bossFuzzyBear.cpp @@ -255,10 +255,8 @@ int daFuzzyBear_c::onCreate() { bindAnimChr_and_setUpdateRate("run", 1, 0.0, 1.0); - OSReport("Setting Fuzzy Bear's State"); doStateChange(&StateID_Grow); - OSReport("Going to Execute Fuzzy Bear"); this->onExecute(); return true; } @@ -268,7 +266,6 @@ int daFuzzyBear_c::onDelete() { } int daFuzzyBear_c::onExecute() { - // OSReport("Fuzzy Bear was Executed."); acState.execute(); updateModelMatrices(); @@ -331,7 +328,6 @@ void daFuzzyBear_c::endState_Grow() { void daFuzzyBear_c::beginState_Bounce() { - OSReport("Begin Bouncing"); if (this->direction = 0) { this->speed.x = 1.5; } else { this->speed.x = -1.5 ; } @@ -421,7 +417,6 @@ void daFuzzyBear_c::executeState_Bounce() { this->timer = 0; this->pos.y = this->Baseline + 1; - OSReport("Takeoff Initiated"); this->speed.x = this->storeSpeed; } @@ -437,7 +432,7 @@ void daFuzzyBear_c::executeState_Bounce() { } -void daFuzzyBear_c::endState_Bounce() { OSReport("No more bouncing."); } +void daFuzzyBear_c::endState_Bounce() { } @@ -516,20 +511,17 @@ void daFuzzyBear_c::endState_Bounce() { OSReport("No more bouncing."); } // } // void daFuzzyBear_c::endState_Needles() { OSReport("Fuzzy Needle State End"); } - // Spray State - jumps in the air and shakes out some small fuzzies void daFuzzyBear_c::beginState_Spray() { this->timer = 0; this->speed.y = 7.0; this->speed.x = 0.0; - OSReport("Fuzzy Spray State Begin"); } void daFuzzyBear_c::executeState_Spray() { this->speed.x = 0.0; - OSReport("Fuzzy Spray State Execute"); if (this->speed.y < 1.0) { this->speed.y = 0; @@ -572,7 +564,6 @@ void daFuzzyBear_c::endState_Spray() { this->rot.y = 0; this->timer = 20; this->falldown = 1; - OSReport("Fuzzy Spray State End"); } @@ -592,7 +583,6 @@ void daFuzzyBear_c::beginState_RolyPoly() { this->speed.y = 0; this->RolyBounces = 0; this->RolyPos = this->pos; - OSReport("Fuzzy Roly State Begin"); if (BigBossFuzzyBear == 0) { this->scale = (Vec){2.5, 2.5, 2.5}; @@ -604,7 +594,6 @@ void daFuzzyBear_c::beginState_RolyPoly() { this->timer = 0; } void daFuzzyBear_c::executeState_RolyPoly() { - OSReport("Fuzzy Roly State Execute"); float wallDistance, scaleDown, scaleUp; PlaySound(this, SE_OBJ_TEKKYU_G_CRASH); @@ -669,7 +658,6 @@ void daFuzzyBear_c::executeState_RolyPoly() { } void daFuzzyBear_c::endState_RolyPoly() { this->rot.z = 0; - OSReport("Fuzzy Roly State End"); this->isInvulnerable = 0; this->timer = 0; } |