summaryrefslogtreecommitdiff
path: root/src/bossThwompaDomp.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-03-15 02:54:33 +0100
committerTreeki <treeki@gmail.com>2012-03-15 02:54:33 +0100
commite88fd1dcef52d4375fef655918886fc14bb1f40c (patch)
treef081b14a420331258665a58ad31be54b13b1c655 /src/bossThwompaDomp.cpp
parent18a6c3dbe01f484b346923ebc53f674c1e4a5101 (diff)
downloadkamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.tar.gz
kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.zip
optimisations to reduce code size
Diffstat (limited to 'src/bossThwompaDomp.cpp')
-rw-r--r--src/bossThwompaDomp.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/bossThwompaDomp.cpp b/src/bossThwompaDomp.cpp
index 37d986a..48d0340 100644
--- a/src/bossThwompaDomp.cpp
+++ b/src/bossThwompaDomp.cpp
@@ -113,7 +113,6 @@ void daEnMegaDosun_c::setupBodyModel() {
}
int daEnMegaDosun_c::onCreate() {
- OSReport("daEnMegaDosun::onCreate()\n");
this->setupBodyModel();
@@ -144,7 +143,6 @@ int daEnMegaDosun_c::onCreate() {
//u8 s3[] = {0,0,0,1,0xff,0xfe,0x10,0,0,1,0xf0,0,0,5,0x50,0};
u8 s3[] = {0,0,0,1,0xff,0xfe,0x10,0,0,1,0xf0,0,0xff,0xfe,0x10,0};
- OSReport("this->collMgr.Init(this,(u8*)&this->collision_struct,(u8*)&s3,0);\n");
this->collMgr.Init(this,(u8*)&this->collision_struct,(u8*)&s3,0);
this->pos_delta2.x = 0.0;
@@ -153,7 +151,6 @@ int daEnMegaDosun_c::onCreate() {
this->_320 = 0.0;
this->_324 = 48.0;
- OSReport("this->aPhysics.addToList();\n");
this->aPhysics.addToList();
this->scale.x = 1.0;
@@ -198,7 +195,6 @@ int daEnMegaDosun_c::onExecute() {
float rect[] = {this->_320, this->_324, this->spriteSomeRectX, this->spriteSomeRectY};
int ret = this->outOfZone(this->pos, (float*)&rect, this->currentZoneID);
if(ret) {
- OSReport("daEnMegaDosun_c has left the building\n");
this->OutOfScreenPosition = this->pos;
this->isOutofScreen = true;
@@ -222,7 +218,6 @@ int daEnMegaDosun_c::onDraw() {
}
int daEnMegaDosun_c::onDelete() {
- OSReport("Deleting Thwompy\n");
return true;
}
@@ -336,22 +331,18 @@ int daEnMegaDosun_c::onDelete() {
// StateID_DownMove
void daEnMegaDosun_c::beginState_DownMove() {
- OSReport("beginState_DownMove()\n");
this->speed.y = 0.0;
}
void daEnMegaDosun_c::executeState_DownMove() {
- OSReport("executeState_DownMove()\n");
this->HandleYSpeed();
this->UpdateObjectPosBasedOnSpeedValuesReal();
//FIXME what do I do? - bottom detection
int ret = this->collMgr.execute();
- OSReport("collMgr Returns(): %08x\n", ret);
if(!ret)
return;
if(!(ret & 0x400000)) {
- OSReport("doStateChange(&StateID_DownWait)\n");
this->doStateChange(&StateID_DownWait);
this->countdownTimer = 0x40;
this->speed.y = 0.0;
@@ -360,7 +351,6 @@ int daEnMegaDosun_c::onDelete() {
else {
this->collision_struct[0] = 0x00000001;
this->speed.y = 0.0;
- OSReport("ShakeScreen(%x,%d,%d,%d,%d)\n", ScreenPositionClass,0,1,0,0);
ShakeScreen(ScreenPositionClass, 0, 1, 0, 0);
this->collMgr.Clear2();
}
@@ -371,7 +361,6 @@ int daEnMegaDosun_c::onDelete() {
//SoundRelatedClass.AnotherSoundRelatedFunction(SE_EMY_BIG_DOSSUN, p, 0);
}
void daEnMegaDosun_c::endState_DownMove() {
- OSReport("endState_DownMove()\n");
return;
}
@@ -430,7 +419,6 @@ int daEnMegaDosun_c::onDelete() {
this->pos.y = this->OutOfScreenPosition.y + 280.0;
if (this->timer == 0) {
- OSReport("Outro Play Sound\n");
PlaySound(this, SE_EMY_BIG_DOSSUN_DEAD);
@@ -439,19 +427,16 @@ int daEnMegaDosun_c::onDelete() {
}
if (this->timer == 60) {
- OSReport("Outro Play Fanfare\n");
PlaySound(this, STRM_BGM_SHIRO_BOSS_CLEAR);
MakeMarioEnterDemoMode();
}
if (this->timer == 120) {
- OSReport("Outro Play Victory Cry\n");
PlayerVictoryCries(this);
}
if (this->timer > 240) {
- OSReport("Outro Out\n");
ExitStage(WORLD_MAP, 0, BEAT_LEVEL, MARIO_WIPE);
}