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)
Sourcenew(bounds : RL::Rectangle)
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)
Sourcebounds
Sourcebounds=(bounds : RL::Rectangle)
Sourceupdate(npc : NPC, dt : Float32)
Sourcewalk_distance
Sourcewalk_distance=(walk_distance : Float32)
Sourcewalk_interval
Sourcewalk_interval=(walk_interval : Float32)
Sourcewalk_timer
Sourcewalk_timer=(walk_timer : Float32)
Source