public class Building extends GameObject
| Modifier and Type | Field and Description |
|---|---|
boolean |
bribed
When true this building has already been bribed this turn and cannot be bribed again this turn.
|
Building |
buildingEast
The Building directly to the east of this building, or null if not present.
|
Building |
buildingNorth
The Building directly to the north of this building, or null if not present.
|
Building |
buildingSouth
The Building directly to the south of this building, or null if not present.
|
Building |
buildingWest
The Building directly to the west of this building, or null if not present.
|
int |
fire
How much fire is currently burning the building, and thus how much damage it will take at the end of its owner's turn.
|
int |
health
How much health this building currently has.
|
boolean |
isHeadquarters
True if this is the Headquarters of the owning player, false otherwise.
|
Player |
owner
The player that owns this building.
|
int |
x
The location of the Building along the x-axis.
|
int |
y
The location of the Building along the y-axis.
|
logslogpublic boolean bribed
public Building buildingEast
public Building buildingNorth
public Building buildingSouth
public Building buildingWest
public int fire
public int health
public boolean isHeadquarters
public Player owner
public int x
public int y
© 2020 MST ACM SIG-GAME