Encampment
class Encampment
Content copied to clipboard
Constructors
Encampment
Link copied to clipboard
Functions
chooseBarbarianUnit
Link copied to clipboard
clone
Link copied to clipboard
resetCountdown
Link copied to clipboard
private fun resetCountdown()
Content copied to clipboard
When a barbarian is spawned, seed the counter for next spawn
spawnBarbarian
Link copied to clipboard
Attempts to spawn a Barbarian from this encampment. Returns true if a unit was spawned.
spawnOnTile
Link copied to clipboard
Attempts to spawn a barbarian on tile, returns true if successful and false if unsuccessful.
wasAttacked
Link copied to clipboard
fun wasAttacked()
Content copied to clipboard
wasDestroyed
Link copied to clipboard
fun wasDestroyed()
Content copied to clipboard
Properties
Sources
jvm source
Link copied to clipboard