public class DefaultSatelliteData extends Object implements SatelliteData
| Constructor and Description |
|---|
DefaultSatelliteData() |
| Modifier and Type | Method and Description |
|---|---|
double |
getMovementCost()
Returns the movement cost when moving over the Hexagon.
|
boolean |
isOpaque() |
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 |
setOpaque(boolean opaque)
Set whether the
Hexagon can be seen through. |
void |
setPassable(boolean passable)
Sets whether the Hexagon is passable or not.
|
public final boolean isPassable()
SatelliteDataisPassable in interface SatelliteDatapublic final void setPassable(boolean passable)
SatelliteDatasetPassable in interface SatelliteDatapassable - passable?public final boolean isOpaque()
isOpaque in interface SatelliteDataHexagon can bee seen through, false otherwise.public final void setOpaque(boolean opaque)
SatelliteDataHexagon can be seen through.setOpaque in interface SatelliteDataopaque - is opaque?public final double getMovementCost()
SatelliteDatagetMovementCost in interface SatelliteDatapublic final void setMovementCost(double movementCost)
SatelliteDatasetMovementCost in interface SatelliteDatamovementCost - movement costCopyright © 2016. All rights reserved.