mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 00:06:16 +01:00
now allowed to roll dice after getting out of jail
This commit is contained in:
parent
bc31c61fb3
commit
8e3cf9c31e
@ -626,6 +626,7 @@ public class Player implements FieldVisitor<Void>{
|
|||||||
if (rollResult.isDoublets()) {
|
if (rollResult.isDoublets()) {
|
||||||
handler.getLogic().send(Player.this, new JailEvent(false));
|
handler.getLogic().send(Player.this, new JailEvent(false));
|
||||||
state = new ActiveState();
|
state = new ActiveState();
|
||||||
|
getHandler().getLogic().send(Player.this, new NextPlayerTurn());
|
||||||
} else {
|
} else {
|
||||||
remainingAttempts--;
|
remainingAttempts--;
|
||||||
}
|
}
|
||||||
@ -637,6 +638,7 @@ public class Player implements FieldVisitor<Void>{
|
|||||||
public void payBail() {
|
public void payBail() {
|
||||||
pay(500);
|
pay(500);
|
||||||
state = new ActiveState();
|
state = new ActiveState();
|
||||||
|
getHandler().getLogic().send(Player.this, new NextPlayerTurn());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user