public static class Roads.Stop extends Roads
AbstractTile
class, represents a
stop.Roads.Bow, Roads.Cross, Roads.Priority, Roads.Road, Roads.Stop, Roads.TrafficLight, Roads.Zebra
Constructor and Description |
---|
Roads.Stop(java.awt.Image sprite,
Coordinates position,
Direction[] way)
Constructor of
Roads.Stop class, calls the constructor af the
super-class Roads and assigns the type of the tile to
STOP of the TileType enum. |
getPosition, getPossibleWays, getSprite, getType, setPosition, setPosition, setSprite, toString
public Roads.Stop(java.awt.Image sprite, Coordinates position, Direction[] way)
Roads.Stop
class, calls the constructor af the
super-class Roads
and assigns the type of the tile to
STOP
of the TileType
enum.sprite
- the image used to portray the tileposition
- position expressed in Coordinates
way
- array of the possible ways expressed in Boolean[]