Crewmates and impostors can both report dead bodies which will enter the voting state. Pressing the emergency button will also enter the voting state, but players will only have one button press each.
Task test:
Go to JUnits class in project
Run and pass the following JUnit tests: reportBodyCausesVote, emergencyButtonCauseVote, onlyOneEmergencyButton
reportBodyCausesVote - Tests if reporting a body causes the game to enter the vote state
emergencyButtonCauseVote - Tests if pressing the emergency button causes the game to enter the vote state
onlyOneEmergencyButton - Tests that a player only has one emergency button press and will not be able to use it for the rest of the game.
Crewmates and impostors can both report dead bodies which will enter the voting state. Pressing the emergency button will also enter the voting state, but players will only have one button press each.
Task test:
reportBodyCausesVote - Tests if reporting a body causes the game to enter the vote state
emergencyButtonCauseVote - Tests if pressing the emergency button causes the game to enter the vote state
onlyOneEmergencyButton - Tests that a player only has one emergency button press and will not be able to use it for the rest of the game.