public class Tile extends GameObject
Modifier and Type | Field and Description |
---|---|
Bottle |
bottle
The beer Bottle currently flying over this Tile, null otherwise.
|
Cowboy |
cowboy
The Cowboy that is on this Tile, null otherwise.
|
Furnishing |
furnishing
The furnishing that is on this Tile, null otherwise.
|
boolean |
hasHazard
If this Tile is pathable, but has a hazard that damages Cowboys that path through it.
|
boolean |
isBalcony
If this Tile is a balcony of the Saloon that YoungGuns walk around on, and can never be pathed through by Cowboys.
|
Tile |
tileEast
The Tile to the 'East' of this one (x+1, y).
|
Tile |
tileNorth
The Tile to the 'North' of this one (x, y-1).
|
Tile |
tileSouth
The Tile to the 'South' of this one (x, y+1).
|
Tile |
tileWest
The Tile to the 'West' of this one (x-1, y).
|
int |
x
The x (horizontal) position of this Tile.
|
int |
y
The y (vertical) position of this Tile.
|
YoungGun |
youngGun
The YoungGun on this tile, null otherwise.
|
logs
Modifier and Type | Method and Description |
---|---|
java.util.List<Tile> |
getNeighbors()
Gets the neighbors of this Tile
|
boolean |
hasNeighbor(Tile tile)
Checks if this Tile has a specific neighboring Tile
|
boolean |
isPathable()
Checks if a Tile is pathable to units
|
log
public Bottle bottle
public Cowboy cowboy
public Furnishing furnishing
public boolean hasHazard
public boolean isBalcony
public Tile tileEast
public Tile tileNorth
public Tile tileSouth
public Tile tileWest
public int x
public int y
public YoungGun youngGun
public java.util.List<Tile> getNeighbors()
public boolean isPathable()
public boolean hasNeighbor(Tile tile)
tile
- Tile to check against© 2020 MST ACM SIG-GAME