public class EnvTile extends AbstractTile
AbstractTile
class, represents the
environment except the route, like it could be a tree, a sidewalk or a gas
station.
Notes: as a first implementation we've decided to use only grass as
specialization of this class, calling the specialization EnvTile.Base
.
Modifier and Type | Class and Description |
---|---|
static class |
EnvTile.Base
Second level specialization of
AbstractTile class, represents the
grass. |
Constructor and Description |
---|
EnvTile(java.awt.Image sprite,
Coordinates position)
Constructor of
EnvTile class, calls the constructor of the
super-class AbstractTile and assigns value 0 to the
field AbstractTile.possibleWays . |
getPosition, getPossibleWays, getSprite, getType, setPosition, setPosition, setSprite, toString
public EnvTile(java.awt.Image sprite, Coordinates position)
EnvTile
class, calls the constructor of the
super-class AbstractTile
and assigns value 0 to the
field AbstractTile.possibleWays
.sprite
- the image used to portray the tileposition
- position expressed in Coordinates