Task 2: Implement terrain bonuses for units
Implement terrain as a variable in the bonus calculations for the units.
- A battle is now to be fought in this terrain.
- The simulation must support three types of terrain; HILL, PLAINS and FOREST.
- Unit bonuses must now be calculated based on the terrain they are fighting in.
InfantryUnit
- Units have an advantage when fighting in a FOREST.
- Units have this advantage both as attack and defence.
RangedUnit
- Units have an advantage when fighting on a HILL.
- When these units attack in a FORREST the attack bonus is lower than normal as it cannot attack from a distance.
- The unit still get bonus for being agile and terrain does not affect the defence bonus of this unit.
CavalryUnit
- Units have an advantage when fighting on PLAINS.
- When the unit is attacked in a FOREST the total defence bonus is zero. No advantage.
Edited by Runar Halvorsen Indahl