June 2018
Intermediate to advanced
310 pages
6h 32m
English
We're back to our squads and platoons in our CatsCraft 2: Revenge of the Dogs strategy game.
As you may remember from the previous chapter, Squad consists of InfantryUnits:
interface InfantryUnitclass Squad(val infantryUnits: MutableList<InfantryUnit> = mutableListOf()) { }
Each squad should also get a commander now.
The commander of a squad called Sergeant is also an InfantryUnit:
class Squad(...) { val commander = Sergeant()}class Sergeant: InfantryUnit
Please disregard the fact that our sergeant doesn't have a name and gets created on the fly. We're two days short of releasing this game and beating the competition. Names are not important now.
The platoon is a collection of squads, and it also has a commander, called ...
Read now
Unlock full access