summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/Move.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/Move.java b/src/main/java/org/luxons/sevenwonders/game/Move.java
index 6bb857f6..ed9dfa07 100644
--- a/src/main/java/org/luxons/sevenwonders/game/Move.java
+++ b/src/main/java/org/luxons/sevenwonders/game/Move.java
@@ -3,16 +3,27 @@ package org.luxons.sevenwonders.game;
import java.util.HashMap;
import java.util.Map;
+import org.luxons.sevenwonders.game.api.Table;
import org.luxons.sevenwonders.game.resources.Resources;
public class Move {
+ private int playerIndex;
+
private String cardName;
private MoveType moveType;
private Map<Integer, Resources> boughtResources = new HashMap<>();
+ public int getPlayerIndex() {
+ return playerIndex;
+ }
+
+ public void setPlayerIndex(int playerIndex) {
+ this.playerIndex = playerIndex;
+ }
+
public String getCardName() {
return cardName;
}
@@ -36,4 +47,9 @@ public class Move {
public void setBoughtResources(Map<Integer, Resources> boughtResources) {
this.boughtResources = boughtResources;
}
+
+ public boolean isValid(Table table) {
+ // TODO
+ return false;
+ }
}
bgstack15