Module: Pathfinding::Target
- Defined in:
- docs/4_Systems_003_Map_Engine.rb
Overview
Module that describe the pathfinding targets. There is different type of targets :
-
Coords : reach a specific point in the map
find_path to:[x, y, [,z]] [, radius: Integer]
-
Character : reach a game character object in the map
find_path to:get_character(Integer)[, radius: Integer]
-
Charcater_Reject : flee the given charcater :
find_path to:get_character(Integer), type: :Character_Reject[, radius: Integer]
-
Border : reach the border of the map (:north, :south, :east, :west)
find_path to: Symbol, type: :Border[, radius: Integer]
Each target can be tested by the reached? method
Defined Under Namespace
Classes: Border, Character, Character_Reject, Coords
Class Method Summary collapse
-
.get(type, *data) ⇒ Object
Convert the raw data to a target object.
-
.load(data) ⇒ Object
Convert the saved data to a target object with.
Class Method Details
.get(type, *data) ⇒ Object
Convert the raw data to a target object
3818 3819 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3818 def self.get(type, *data) end |
.load(data) ⇒ Object
Convert the saved data to a target object with
3823 3824 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3823 def self.load(data) end |