class

PointClickEngine::Characters::AI::RandomWalkBehavior

Inherits YAML::Serializable < PointClickEngine::Characters::AI::NPCBehavior < Reference < Object

Random walk behavior - walks randomly within bounds

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(bounds : RL::Rectangle)
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
bounds
Source
bounds=(bounds : RL::Rectangle)
Source
update(npc : NPC, dt : Float32)
Source
walk_distance
Source
walk_distance=(walk_distance : Float32)
Source
walk_interval
Source
walk_interval=(walk_interval : Float32)
Source
walk_timer
Source
walk_timer=(walk_timer : Float32)
Source