diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-04-16 19:28:29 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-04-16 19:28:29 +0200 |
commit | 7a2bf4bb84b30ea09ce8937e7374e42879a72cde (patch) | |
tree | 2b9b71dd68d9f6cd00eab6de18e55f86e59dd692 /backend | |
parent | Add documentation regarding the addition of the live API doc (diff) | |
download | seven-wonders-7a2bf4bb84b30ea09ce8937e7374e42879a72cde.tar.gz seven-wonders-7a2bf4bb84b30ea09ce8937e7374e42879a72cde.tar.bz2 seven-wonders-7a2bf4bb84b30ea09ce8937e7374e42879a72cde.zip |
Add toString() methods for easier debugging
Diffstat (limited to 'backend')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java | 5 | ||||
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java | 5 |
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 + '}'; + } } |