public interface SatelliteData
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addCustomData(String key,
T data)
Adds custom data to this SatelliteData.
|
<T> Optional<T> |
getCustomData(String key)
Retrieves custom data stored in this SatelliteData.
|
double |
getMovementCost()
Returns the movement cost when moving over the Hexagon.
|
boolean |
isPassable()
Tells whether the Hexagon can be passed over when moving around the map or not.
|
void |
setMovementCost(double movementCost)
Sets the movement cost.
|
void |
setPassable(boolean passable)
Sets whether the Hexagon is passable or not.
|
boolean isPassable()
void setPassable(boolean passable)
passable - passable?double getMovementCost()
void setMovementCost(double movementCost)
movementCost - movement cost<T> void addCustomData(String key, T data)
T - type of the datakey - a key to be used for later retrievaldata - the data itselfCopyright © 2016. All rights reserved.