public class Roads extends AbstractTile
AbstractTile
class, represents the
collection of road types, like it could be a simple straight road, or a bow,
or a traffic light etc...Modifier and Type | Class and Description |
---|---|
static class |
Roads.Bow
Second level specialization of
AbstractTile class, represents a
bow which only keeps East-North, East-South, West-North, West-South
directions. |
static class |
Roads.Cross
Second level specialization of
AbstractTile class, represents a
tile in the cross. |
static class |
Roads.Priority
Second level specialization of
AbstractTile class, represents a
priority. |
static class |
Roads.Road
Second level specialization of
AbstractTile class, represents a
simple straight road which keeps horizontal or diagonal directions. |
static class |
Roads.Stop
Second level specialization of
AbstractTile class, represents a
stop. |
static class |
Roads.TrafficLight
Second level specialization of
AbstractTile class, represents a
traffic light. |
static class |
Roads.Zebra
Second level specialization of
AbstractTile class, represents a
zebra crossing which could be present on the street. |
Constructor and Description |
---|
Roads(java.awt.Image sprite,
Coordinates position,
Direction[] way)
Constructor of
Roads class, call the constructor of the
super-class AbstractTile and assigns the actual direction kept by
the road. |
getPosition, getPossibleWays, getSprite, getType, setPosition, setPosition, setSprite, toString
public Roads(java.awt.Image sprite, Coordinates position, Direction[] way)
Roads
class, call the constructor of the
super-class AbstractTile
and assigns the actual direction kept by
the road.sprite
- the image used to portray the tileposition
- position expressed in Coordinates
way
- the actual direction kept by the tile