fixed card bug

This commit is contained in:
Johannes Schmelz 2024-11-24 00:13:32 +01:00
parent 4a882bc4ac
commit 7d2c85f617
2 changed files with 2 additions and 9 deletions

View File

@ -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() {

View File

@ -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();
}
}