mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-24 21:39:44 +01:00
fixed card bug
This commit is contained in:
parent
4a882bc4ac
commit
7d2c85f617
@ -11,8 +11,8 @@ public class Card {
|
||||
this.keyword = keyword;
|
||||
}
|
||||
|
||||
public void accept(DeckHelper visitor) {
|
||||
visitor.visit(this);
|
||||
public void accept(DeckHelper visitor, Player player) {
|
||||
visitor.visit(this, player);
|
||||
}
|
||||
|
||||
String getDescription() {
|
||||
|
@ -2,8 +2,6 @@ package pp.monopoly.model.fields;
|
||||
|
||||
|
||||
import pp.monopoly.game.server.Player;
|
||||
import pp.monopoly.model.card.Card;
|
||||
import pp.monopoly.model.card.DeckHelper;
|
||||
|
||||
public class EventField extends Field{
|
||||
|
||||
@ -15,9 +13,4 @@ public class EventField extends Field{
|
||||
public void accept(Player player) {
|
||||
player.visit(this);
|
||||
}
|
||||
|
||||
public Card drawCard() {
|
||||
return DeckHelper.drawCard();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user