|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/bases/d_boss_life.hpp>
Standard boss life manager implementation, using 6-HP sections.
This class provides a section-based implementation of dBossLifeInf_c. Boss HP is divided into sections of 6 HP, with the current section determining the boss's damage state.
Definition at line 91 of file d_boss_life.hpp.
Public Member Functions | |
| dBossLife_Common_c (int num) | |
| Constructs a new boss life manager. | |
| virtual | ~dBossLife_Common_c () |
| Destroys the boss life manager. | |
| int | getSection () const |
| Gets the current section (zero-indexed). | |
| virtual bool | isNonDamage () const override |
| Checks whether the boss has not yet been damaged. | |
| virtual bool | isOneDamage () const override |
| Checks whether the boss has been damaged once. | |
| virtual bool | isTwoDamage () const override |
| Checks whether the boss has been damaged twice. | |
| virtual bool | isDmgSection () const override |
| Checks whether the current HP is at a damage section boundary. | |
| virtual void | damageRev (int dmg) override |
| Post-damage callback invoked when a boss survives an attack. | |
| virtual int | getDamage_Fire () const override |
| Gets the damage dealt by fireball attacks. | |
| virtual int | getDamage_Fumi () const override |
| Gets the damage dealt by stomp (Fumi) attacks. | |
| virtual int | getDamage_HipAtk () const override |
| Gets the damage dealt by ground pound (Hip) attacks. | |
| virtual int | getDamage_Star () const override |
| Gets the damage dealt by Star invincibility attacks. | |
| virtual int | getDamage_PenguinSlide () const override |
| Gets the damage dealt by Penguin slide attacks. | |
| virtual int | getDamage_BlockHit () const override |
| Gets the damage dealt by block hit attacks. | |
| virtual int | getDamage_Shell () const override |
| Gets the damage dealt by shell attacks. | |
| virtual int | getDamage_Quake () const override |
| Gets the damage dealt by multiplayer ground pound (Quake) attacks. | |
| Public Member Functions inherited from dBossLifeInf_c | |
| dBossLifeInf_c (int life) | |
| Constructs a new boss life manager. | |
| virtual | ~dBossLifeInf_c () |
| Destroys the boss life manager. | |
| int | updateCommon (int dmg) |
Common update logic for all the update methods. | |
| int | updateFire () |
| Applies fireball damage to the boss. | |
| int | updateFumi () |
| Applies stomp (Fumi) damage to the boss. | |
| int | updateHipAtk () |
| Applies ground pound (Hip) damage to the boss. | |
| int | updateStar () |
| Applies Star damage to the boss. | |
| int | updatePenguinSlide () |
| Applies Penguin slide damage to the boss. | |
| int | updateBlockHit () |
| Applies block hit damage to the boss. | |
| int | updateShell () |
| Applies shell damage to the boss. | |
| int | updateQuake () |
| Applies multiplayer ground pound (Quake) damage to the boss. | |
Additional Inherited Members | |
| Public Attributes inherited from dBossLifeInf_c | |
| int | mLife |
| The current hit point total. | |
|
inline |
Constructs a new boss life manager.
| life | Initial hit point total for the boss. |
Definition at line 93 of file d_boss_life.hpp.
|
inlinevirtual |
Destroys the boss life manager.
Definition at line 94 of file d_boss_life.hpp.
|
inline |
Gets the current section (zero-indexed).
Definition at line 97 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Checks whether the boss has not yet been damaged.
Implements dBossLifeInf_c.
Definition at line 99 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Checks whether the boss has been damaged once.
Implements dBossLifeInf_c.
Definition at line 103 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Checks whether the boss has been damaged twice.
Implements dBossLifeInf_c.
Definition at line 107 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Checks whether the current HP is at a damage section boundary.
Reimplemented from dBossLifeInf_c.
Definition at line 112 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Post-damage callback invoked when a boss survives an attack.
| dmg | The amount of damage applied. |
If the boss survives, the damage was at least 6 HP, and the resulting HP lies partway through a section, HP is rounded up to the next multiple of 6. This behavior is used to preserve complete 6-HP sections after heavy attacks.
Reimplemented from dBossLifeInf_c.
Definition at line 121 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by fireball attacks.
Implements dBossLifeInf_c.
Definition at line 128 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by stomp (Fumi) attacks.
Implements dBossLifeInf_c.
Definition at line 129 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by ground pound (Hip) attacks.
Implements dBossLifeInf_c.
Definition at line 130 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by Star invincibility attacks.
Implements dBossLifeInf_c.
Definition at line 131 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by Penguin slide attacks.
Implements dBossLifeInf_c.
Definition at line 132 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by block hit attacks.
Implements dBossLifeInf_c.
Definition at line 133 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by shell attacks.
Implements dBossLifeInf_c.
Definition at line 134 of file d_boss_life.hpp.
|
inlineoverridevirtual |
Gets the damage dealt by multiplayer ground pound (Quake) attacks.
Implements dBossLifeInf_c.
Definition at line 135 of file d_boss_life.hpp.