completed tests

This commit is contained in:
Johannes Schmelz
2024-12-02 08:28:05 +01:00
parent a73384c436
commit e07db0129f
5 changed files with 282 additions and 265 deletions

View File

@@ -445,6 +445,11 @@ public class Player implements FieldVisitor<Void>{
handler.getLogic().send(this, new JailEvent(true));
}
void jail() {
state = new JailState();
fieldID = 10;
}
/**
* Return the number of Properties of the speciefied fild type
* @param field the type of field to search for
@@ -521,12 +526,13 @@ public class Player implements FieldVisitor<Void>{
for (PropertyField field : getPropertyFields()) {
field.setOwner(null);
}
properties.clear();
}
/**
* A interface representing the PlayerStates
*/
private interface PlayerState {
interface PlayerState {
/**
* Handles the logic for rolling Dice
* @return the {@link DiceResult} of this the DiceRoll

View File

@@ -206,7 +206,7 @@ public class DeckHelper{
private void namensschildTruppenkueche(Player player) {
player.setPosition(24);
player.pay(25);
player.pay(250);
}
private void spendierhosenUnibar(Player player) {