class

PointClickEngine::Characters::AI::FollowBehavior

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

Follow behavior - follows a target character

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(target : Character | Nil, follow_distance : Float32 = 100.0)
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
follow_distance
Source
follow_distance=(follow_distance : Float32)
Source
follow_speed
Source
follow_speed=(follow_speed : Float32)
Source
target
Source
target=(target : Character | Nil)
Source
target_name
Source
target_name=(target_name : String | Nil)
Source
update(npc : NPC, dt : Float32)
Source