diff options
Diffstat (limited to '')
| -rw-r--r-- | src/bossTopman.cpp | 47 | 
1 files changed, 29 insertions, 18 deletions
diff --git a/src/bossTopman.cpp b/src/bossTopman.cpp index 4b864ec..0637f2d 100644 --- a/src/bossTopman.cpp +++ b/src/bossTopman.cpp @@ -43,16 +43,16 @@ public:  	void playerCollision(ActivePhysics *apThis, ActivePhysics *apOther);  	void yoshiCollision(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat3_StarPower(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat14_YoshiFire(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCatD_GroundPound(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat7_GroundPound(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat7_GroundPoundYoshi(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat9_RollingObject(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat1_Fireball_E_Explosion(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat3_StarPower(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat14_YoshiFire(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCatD_Drill(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat7_GroundPound(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat7_GroundPoundYoshi(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat9_RollingObject(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat1_Fireball_E_Explosion(ActivePhysics *apThis, ActivePhysics *apOther);  	bool collisionCat2_IceBall_15_YoshiIce(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCat13_Hammer(ActivePhysics *apThis, ActivePhysics *apOther); -	void collisionCatA_PenguinMario(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCat13_Hammer(ActivePhysics *apThis, ActivePhysics *apOther); +	bool collisionCatA_PenguinMario(ActivePhysics *apThis, ActivePhysics *apOther);  	void addScoreWhenHit(void *other); @@ -204,26 +204,37 @@ daDreidel *daDreidel::build() {  		this->playerCollision(apThis, apOther);  	} -	void daDreidel::collisionCatD_GroundPound(ActivePhysics *apThis, ActivePhysics *apOther) { DamagePlayer(this, apThis, apOther); } -	void daDreidel::collisionCat7_GroundPound(ActivePhysics *apThis, ActivePhysics *apOther) { DamagePlayer(this, apThis, apOther); } -	void daDreidel::collisionCat7_GroundPoundYoshi(ActivePhysics *apThis, ActivePhysics *apOther) { DamagePlayer(this, apThis, apOther); } +	bool daDreidel::collisionCatD_Drill(ActivePhysics *apThis, ActivePhysics *apOther) { +		DamagePlayer(this, apThis, apOther); +		return true; +	} +	bool daDreidel::collisionCat7_GroundPound(ActivePhysics *apThis, ActivePhysics *apOther) { +		DamagePlayer(this, apThis, apOther); +		return true; +	} +	bool daDreidel::collisionCat7_GroundPoundYoshi(ActivePhysics *apThis, ActivePhysics *apOther) { +		DamagePlayer(this, apThis, apOther); +		return true; +	} -	void daDreidel::collisionCat9_RollingObject(ActivePhysics *apThis, ActivePhysics *apOther) {  +	bool daDreidel::collisionCat9_RollingObject(ActivePhysics *apThis, ActivePhysics *apOther) {   		if (this->isInvulnerable == 0) {   			doStateChange(&StateID_KnockBack);  		} +		return true;  	} -	void daDreidel::collisionCatA_PenguinMario(ActivePhysics *apThis, ActivePhysics *apOther){  +	bool daDreidel::collisionCatA_PenguinMario(ActivePhysics *apThis, ActivePhysics *apOther){   		if (this->isInvulnerable == 0) {   			doStateChange(&StateID_KnockBack);  		} +		return true;  	} -	void daDreidel::collisionCat3_StarPower(ActivePhysics *apThis, ActivePhysics *apOther){	} -	void daDreidel::collisionCat13_Hammer(ActivePhysics *apThis, ActivePhysics *apOther) { } -	void daDreidel::collisionCat14_YoshiFire(ActivePhysics *apThis, ActivePhysics *apOther){ } -	void daDreidel::collisionCat1_Fireball_E_Explosion(ActivePhysics *apThis, ActivePhysics *apOther) { } +	bool daDreidel::collisionCat3_StarPower(ActivePhysics *apThis, ActivePhysics *apOther){ return true; } +	bool daDreidel::collisionCat13_Hammer(ActivePhysics *apThis, ActivePhysics *apOther) { return true; } +	bool daDreidel::collisionCat14_YoshiFire(ActivePhysics *apThis, ActivePhysics *apOther){ return true; } +	bool daDreidel::collisionCat1_Fireball_E_Explosion(ActivePhysics *apThis, ActivePhysics *apOther) { return true; }  	bool daDreidel::collisionCat2_IceBall_15_YoshiIce(ActivePhysics *apThis, ActivePhysics *apOther) { return true; }  | 
