public class Tile extends GameObject
Modifier and Type | Field and Description |
---|---|
java.util.List<Bomb> |
bombs
An array of Bombs on this Tile.
|
int |
dirt
The amount of dirt on this Tile.
|
boolean |
isBase
Whether or not the Tile is a base Tile.
|
boolean |
isFalling
Whether or not this Tile is about to fall after this turn.
|
boolean |
isHopper
Whether or not a hopper is on this Tile.
|
boolean |
isLadder
Whether or not a ladder is built on this Tile.
|
boolean |
isSupport
Whether or not a support is built on this Tile.
|
java.util.List<Miner> |
miners
An array of the Miners on this Tile.
|
int |
ore
The amount of ore on this Tile.
|
Player |
owner
The owner of this Tile, or undefined if owned by no-one.
|
int |
shielding
The amount of shielding on this Tile.
|
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.
|
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 java.util.List<Bomb> bombs
public int dirt
public boolean isBase
public boolean isFalling
public boolean isHopper
public boolean isLadder
public boolean isSupport
public java.util.List<Miner> miners
public int ore
public Player owner
public int shielding
public Tile tileEast
public Tile tileNorth
public Tile tileSouth
public Tile tileWest
public int x
public int y
public java.util.List<Tile> getNeighbors()
public boolean isPathable()
public boolean hasNeighbor(Tile tile)
tile
- Tile to check against© 2020 MST ACM SIG-GAME