public static class Roads.Road extends Roads
AbstractTile
class, represents a
simple straight road which keeps horizontal or diagonal directions.Roads.Bow, Roads.Cross, Roads.Priority, Roads.Road, Roads.Stop, Roads.TrafficLight, Roads.Zebra
Constructor and Description |
---|
Roads.Road(java.awt.Image sprite,
Coordinates position,
Direction[] way)
Constructor of
Roads.Road class, calls the constructor af the
super-class Roads and assigns the type of the tile to
ROAD of the TileType enum. |
getPosition, getPossibleWays, getSprite, getType, setPosition, setPosition, setSprite, toString
public Roads.Road(java.awt.Image sprite, Coordinates position, Direction[] way)
Roads.Road
class, calls the constructor af the
super-class Roads
and assigns the type of the tile to
ROAD
of the TileType
enum.sprite
- the image used to portray the tileposition
- position expressed in Coordinates
way
- the actual direction kept by the tile