diff options
author | jbion <joffrey.bion@amadeus.com> | 2016-12-21 22:12:06 +0100 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2016-12-21 22:12:06 +0100 |
commit | 5bbc7237b306da10c8d798cc9af22c8936b1b3c1 (patch) | |
tree | 0ad4d0fc6e9607cedbef68309c8e85071b405958 /src/main | |
parent | Remove PrincipalImpl usage, using spring security instead (diff) | |
download | seven-wonders-5bbc7237b306da10c8d798cc9af22c8936b1b3c1.tar.gz seven-wonders-5bbc7237b306da10c8d798cc9af22c8936b1b3c1.tar.bz2 seven-wonders-5bbc7237b306da10c8d798cc9af22c8936b1b3c1.zip |
Add playerIndex and validation method to the Move itself
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/game/Move.java | 16 |
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; + } } |