class

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)
Source
new(waypoints : Array(RL::Vector2))
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

after_yaml_deserialize(ctx : YAML::ParseContext, npc : NPC)
Source
current_wait_timer
Source
current_wait_timer=(current_wait_timer : Float32)
Source
current_waypoint_index
Source
current_waypoint_index=(current_waypoint_index : Int32)
Source
patrol_speed
Source
patrol_speed=(patrol_speed : Float32)
Source
update(npc : NPC, dt : Float32)
Source
wait_time
Source
wait_time=(wait_time : Float32)
Source
waypoints
Source
waypoints=(waypoints : Array(RL::Vector2))
Source