mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-09-14 05:11:55 +02:00
completed tests
This commit is contained in:
@@ -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
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user