Skip to content

BossPhase ​

Inherits: Resource

BossPhase represents a single phase in a boss encounter.

Properties ​

Stringphase_name"Phase 1"
AttackStateLogicphase_attack_logic
PhaseTransitionphase_transition
Array[CombatAction]on_enter_actions[]
Array[CombatAction]on_exit_actions[]

Variables ​

Entityentity
ModularCombatScriptcombat_script
boolhas_enteredfalse

Methods ​

voidsetup( system_hub: GameHost.SystemHub, entity_ref: Entity, script: ModularCombatScript )
voidon_enter()
voidon_exit()
boolshould_transition()
boolis_start_phase()
voidcleanup()

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