-
-
- public Troop createTroop(Trooper troopType, int quantity)
- public Troop TrainTroop(Trooper troopType, int quantity)
- public Troop viewTroopCamp(Trooper troopType, int quantity)
-
-
-
- Trooper(int trainingTime, int trainingCost)
- getters and setters
-
-
- private Trooper tropper
- private int quantity
-
- Smart Constructor
- validation of troop parameters
-
- private int capacity;
- private List troopsBeingTrained;
-
- Constrcutor
- public Barracks(int capacity)
- validations
- trainTheTroop(Troop troop) :
- Constrcutor
-
- private List trainedTroops;
-
- public void addTroop(Troop troop)
- public void viewTroopCamp()
- private int countTroops()
- functionality for the console based application