Class: Pathfinding::Target::Border
- Defined in:
- docs/01450_Systems_00003_Map_Engine.rb
Overview
Border 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) ⇒ Border
constructor
A new instance of Border.
-
#reached?(x, y, z) ⇒ Boolean
Test if the target is reached at the given coords.
-
#save ⇒ Array<Object>
Gather the savable data.
Constructor Details
#initialize(*args) ⇒ Border
Returns a new instance of Border.
3183 3184 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3183 def initialize(*args) end |
Class Method Details
.load(data)
Create new target from the given data
3204 3205 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3204 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
3196 3197 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3196 def check_move(x, y) end |
#reached?(x, y, z) ⇒ Boolean
Test if the target is reached at the given coords
3190 3191 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3190 def reached?(x, y, z) end |
#save ⇒ Array<Object>
Gather the savable data
3200 3201 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3200 def save end |