Skip to content

Release 3

Latest

Choose a tag to compare

@DylanT612 DylanT612 released this 18 Aug 01:26
· 3 commits to main since this release
d738984

Release 3 gives a weapon to each survivor and prints what the zombie was killed with.

The Battlefield class was relatively unchanged except for the print statement.
The Character class was unchanged.
The Civilian/Soldier/Scientist classes were to include the weapon and damage it brings.
The CommonInfected/Tank classes were unchanged.
The Main classes generateSurvivors method was changed to include each survivor with a random weapon, and generate random weapon methods were included.
The Survivor class was modified to contain a weapon, overridding the getAttack method and the toString to shorten the print command.
Weapon class was added having a name, damage, and accuracy level for the weapons.
Zombie class was left unchanged.

Now displays the following when a Survivor kills a zombie:
Soldier 25 with Shotgun killed Tank 10