PointClickEngine::Scenes::DynamicHotspot
Inherits PointClickEngine::Scenes::Hotspot < PointClickEngine::Core::GameObject < PointClickEngine::Core::Drawable < Reference < Object
Dynamic hotspot that can change based on game state
Constructors
new(name : String, position : RL::Vector2, size : RL::Vector2)
Sourcenew
SourceInstance methods
add_state_condition(state_name : String, condition : Condition)
Add state transition condition
current_state
Sourcecurrent_state=(current_state : String)
Sourcestate_conditions
Sourcestate_conditions=(state_conditions : Hash(String, Array(Condition)))
Sourcestates
Sourcestates=(states : Hash(String, HotspotState))
Sourcevisibility_conditions
Sourcevisibility_conditions=(visibility_conditions : Array(Condition))
Source