ActionState ​
Inherits: Resource
Inherited by: AttackingState, ChasingState, DeadState, DisorientedState, FleeState, FollowingState, InactiveState, IncapacitatedState, PlayerCommandState, TargetSearchState
ActionState is the base class for all combat action states. It defines the interface and common functionality for action-related states.
Description ​
States are now owned by ModularCombatScript and reference it directly.
Variables ​
ModularCombatScript | combat_script | null |
ChronoManager | chrono_manager | |
Entity | entity | null |
Methods ​
void | set_combat_script( script: ModularCombatScript, state_entity: Entity ) |
void | enter() |
void | exit() |
void | update( _delta: float ) |
void | return_all_timer() |
Variable descriptions ​
ModularCombatScript combat_script = null ​
Reference to the combat script that owns this state
ChronoManager chrono_manager ​
ChronoManager ref
Entity entity = null ​
Reference to the entity (convenience, duplicates combat_script.entity)
Method descriptions ​
void set_combat_script( script: ModularCombatScript, state_entity: Entity ) ​
Sets the combat script reference
void enter() ​
Called when entering the state
void exit() ​
Called when exiting the state
void update( _delta: float ) ​
Called every frame to update the state
void return_all_timer() ​
Timer clean up method