Class: Pathfinding::Target::Border
- Defined in:
- docs/4_Systems_003_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.
4027 4028 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 4027 def initialize(*args) end |
Class Method Details
.load(data)
Create new target from the given data
4048 4049 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 4048 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
4040 4041 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 4040 def check_move(x, y) end |
#reached?(x, y, z) ⇒ Boolean
Test if the target is reached at the given coords
4034 4035 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 4034 def reached?(x, y, z) end |
#save ⇒ Array<Object>
Gather the savable data
4044 4045 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 4044 def save end |