summaryrefslogtreecommitdiff
path: root/backend/src/main/java/org/luxons
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-04-16 19:28:29 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-04-16 19:28:29 +0200
commit7a2bf4bb84b30ea09ce8937e7374e42879a72cde (patch)
tree2b9b71dd68d9f6cd00eab6de18e55f86e59dd692 /backend/src/main/java/org/luxons
parentAdd documentation regarding the addition of the live API doc (diff)
downloadseven-wonders-7a2bf4bb84b30ea09ce8937e7374e42879a72cde.tar.gz
seven-wonders-7a2bf4bb84b30ea09ce8937e7374e42879a72cde.tar.bz2
seven-wonders-7a2bf4bb84b30ea09ce8937e7374e42879a72cde.zip
Add toString() methods for easier debugging
Diffstat (limited to 'backend/src/main/java/org/luxons')
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java5
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java b/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java
index 54045607..dbaaad58 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java
@@ -41,4 +41,9 @@ public class HandCard {
return playable;
}
+ @Override
+ public String toString() {
+ return "HandCard{" + "card=" + card + ", chainable=" + chainable + ", free=" + free + ", playable=" + playable
+ + '}';
+ }
}
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java b/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
index 473a1bcf..f0ed278e 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
@@ -113,4 +113,9 @@ public class Card {
public int hashCode() {
return Objects.hash(name);
}
+
+ @Override
+ public String toString() {
+ return "Card{" + name + '}';
+ }
}
bgstack15