public class Tower extends GameObject
Modifier and Type | Field and Description |
---|---|
boolean |
attacked
Whether this tower has attacked this turn or not.
|
int |
cooldown
How many turns are left before it can fire again.
|
int |
health
How much remaining health this tower has.
|
TowerJob |
job
What type of tower this is (it's job).
|
Player |
owner
The player that built / owns this tower.
|
Tile |
tile
The Tile this Tower is on.
|
logs
Modifier and Type | Method and Description |
---|---|
boolean |
attack(Tile tile)
Attacks an enemy unit on an tile within it's range.
|
log
public boolean attacked
public int cooldown
public int health
public TowerJob job
public Player owner
public Tile tile
public boolean attack(Tile tile)
tile
- The Tile to attack.© 2020 MST ACM SIG-GAME