public class Tile extends GameObject
Modifier and Type | Field and Description |
---|---|
int |
blueium
The amount of blueium on this tile.
|
int |
blueiumOre
The amount of blueium ore on this tile.
|
int |
decoration
(Visualizer only) Different tile types, cracked, slightly dirty, etc.
|
java.lang.String |
direction
The direction of a conveyor belt ('blank', 'north', 'east', 'south', or 'west').
|
boolean |
isWall
Whether or not the tile is a wall.
|
Machine |
machine
The Machine on this Tile if present, otherwise null.
|
Player |
owner
The owner of this Tile, or null if owned by no-one.
|
int |
redium
The amount of redium on this tile.
|
int |
rediumOre
The amount of redium ore 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).
|
java.lang.String |
type
The type of Tile this is ('normal', 'generator', 'conveyor', or 'spawn').
|
Unit |
unit
The Unit on this Tile if present, otherwise null.
|
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 int blueium
public int blueiumOre
public int decoration
public java.lang.String direction
public boolean isWall
public Machine machine
public Player owner
public int redium
public int rediumOre
public Tile tileEast
public Tile tileNorth
public Tile tileSouth
public Tile tileWest
public java.lang.String type
public Unit unit
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