BossPhase ​
Inherits: Resource
BossPhase represents a single phase in a boss encounter.
Properties ​
String | phase_name | "Phase 1" |
AttackStateLogic | phase_attack_logic | |
PhaseTransition | phase_transition | |
Array[CombatAction] | on_enter_actions | [] |
Array[CombatAction] | on_exit_actions | [] |
Variables ​
Entity | entity | |
ModularCombatScript | combat_script | |
bool | has_entered | false |
Methods ​
void | setup( system_hub: GameHost.SystemHub, entity_ref: Entity, script: ModularCombatScript ) |
void | on_enter() |
void | on_exit() |
bool | should_transition() |
bool | is_start_phase() |
void | cleanup() |
Property descriptions ​
Phase Settings
String phase_name = "Phase 1" ​
Display name for this phase (for debugging)
AttackStateLogic phase_attack_logic ​
Attack logic to use during this phase
Transition Settings
PhaseTransition phase_transition ​
Transition conditions for this phase
Phase Actions
Array[CombatAction] on_enter_actions = [] ​
Actions to execute when entering this phase
Array[CombatAction] on_exit_actions = [] ​
Actions to execute when exiting this phase
Variable descriptions ​
Entity entity ​
Reference to the entity
ModularCombatScript combat_script ​
Reference to the combat script
bool has_entered = false ​
Whether this phase has been entered
Method descriptions ​
void setup( system_hub: GameHost.SystemHub, entity_ref: Entity, script: ModularCombatScript ) ​
Setup the phase
void on_enter() ​
Called when entering this phase
void on_exit() ​
Called when exiting this phase
bool should_transition() ​
Check if we should transition to next phase
bool is_start_phase() ​
Check if this is a start phase (no transition conditions)
void cleanup() ​
Cleanup