PointClickEngine::Characters::AI::PatrolBehavior
Inherits YAML::Serializable < PointClickEngine::Characters::AI::NPCBehavior < Reference < Object
Patrol behavior - moves between waypoints
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(waypoints : Array(RL::Vector2))
Sourcenew
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
after_yaml_deserialize(ctx : YAML::ParseContext, npc : NPC)
Sourcecurrent_wait_timer
Sourcecurrent_wait_timer=(current_wait_timer : Float32)
Sourcecurrent_waypoint_index
Sourcecurrent_waypoint_index=(current_waypoint_index : Int32)
Sourcepatrol_speed
Sourcepatrol_speed=(patrol_speed : Float32)
Sourceupdate(npc : NPC, dt : Float32)
Sourcewait_time
Sourcewait_time=(wait_time : Float32)
Sourcewaypoints
Sourcewaypoints=(waypoints : Array(RL::Vector2))
Source