Skip to content

IncapacitatedState ​

Inherits: ActionState < Resource

IncapacitatedState represents when an entity is completely stunned/incapacitated. The entity cannot move or take any actions while in this state.

Description ​

Key features:

  • Stops all movement and prevents actions
  • Tracks the entity that applied the incapacitation
  • Automatically exits when incapacitation effect expires (handled by EffectsComponent)

Methods ​

voidenter()
voidupdate( _delta: float )
voidexit()
voidset_state_data( data: Dictionary )

Method descriptions ​

void enter() ​

Called when entering the incapacitated state

void update( _delta: float ) ​

Called every frame - incapacitation duration handled by EffectsComponent

void exit() ​

Called when exiting the incapacitated state

void set_state_data( data: Dictionary ) ​

Set state data from external source