Class: Pathfinding::Target::Coords
- Defined in:
- docs/4_Systems_003_Map_Engine.rb
Overview
Coords target type
Class Method Summary collapse
-
.load(data)
Create new target from the given data.
Instance Method Summary collapse
-
#check_move(x, y) ⇒ Boolean
Check if the character targetted has moved, considering the distance for optimisation and return true if the target is considered as moved.
-
#initialize(*args) ⇒ Coords
constructor
A new instance of Coords.
-
#reached?(x, y, z) ⇒ Boolean
Test if the target is reached at the fiveng coords.
-
#save ⇒ Array<Object>
Gather the savable data.
Constructor Details
#initialize(*args) ⇒ Coords
Returns a new instance of Coords.
3827 3828 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3827 def initialize(*args) end |
Class Method Details
.load(data)
Create new target from the given data
3848 3849 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3848 def self.load(data) end |
Instance Method Details
#check_move(x, y) ⇒ Boolean
Check if the character targetted has moved, considering the distance for optimisation and return true if the target is considered as moved
3840 3841 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3840 def check_move(x, y) end |
#reached?(x, y, z) ⇒ Boolean
Test if the target is reached at the fiveng coords
3834 3835 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3834 def reached?(x, y, z) end |
#save ⇒ Array<Object>
Gather the savable data
3844 3845 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3844 def save end |