| Package | Description |
|---|---|
| fr.arakne.utils.maps | |
| fr.arakne.utils.maps.constant | |
| fr.arakne.utils.maps.path |
| Modifier and Type | Method and Description |
|---|---|
Direction |
CoordinateCell.directionTo(C target)
Compute the direction to the target cell
https://github.com/Emudofus/Dofus/blob/1.29/ank/battlefield/utils/Pathfinding.as#L204
|
Direction |
CoordinateCell.directionTo(CoordinateCell<C> target)
Compute the direction to the target cell
https://github.com/Emudofus/Dofus/blob/1.29/ank/battlefield/utils/Pathfinding.as#L204
|
| Modifier and Type | Method and Description |
|---|---|
static Direction |
Direction.byChar(@IntRange(from=97L,to=104L) char c)
Get the direction by its char value
|
Direction |
Direction.opposite()
Get the opposite direction
|
Direction |
Direction.orthogonal()
Get the orthogonal direction
|
static Direction[] |
Direction.restrictedDirections()
Get the restricted directions (i.e. can be used on fight)
Note: a new array is always returned
|
static Direction |
Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
PathStep.direction() |
| Modifier and Type | Method and Description |
|---|---|
Pathfinder<C> |
Pathfinder.directions(Direction[] directions)
Define the available movements directions
Note : Adding all directions will permit to move in diagonal,
But the pathfinder is not optimal, because the distance is not computed using pythagoras distance
By default, the direction are the restricted directions
|
Optional<C> |
Decoder.nextCellByDirection(C start,
Direction direction)
Get the immediately next cell if we move by the given direction
If the next cell is out of the map, an empty optional is returned
|
| Constructor and Description |
|---|
PathStep(C cell,
Direction direction) |
Copyright © 2022. All rights reserved.