summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-03 17:29:52 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-03 17:29:52 +0200
commitbcc3f95847eafa1b61bb32dac047101c7adc0e64 (patch)
tree992c9f7d3569f3598cf8e1a0f14fa647974bb5e7 /src/jrummikub/model
parent7edb66d4ff069a40471258a66ef56dac36598665 (diff)
downloadJRummikub-bcc3f95847eafa1b61bb32dac047101c7adc0e64.tar
JRummikub-bcc3f95847eafa1b61bb32dac047101c7adc0e64.zip
Make StonePanel emit Stone click events
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@80 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/Stone.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jrummikub/model/Stone.java b/src/jrummikub/model/Stone.java
index da8052b..800425e 100644
--- a/src/jrummikub/model/Stone.java
+++ b/src/jrummikub/model/Stone.java
@@ -71,4 +71,12 @@ public class Stone implements Sizeable {
return 1;
}
+ @Override
+ public String toString() {
+ if (joker) {
+ return "Stone[joker,color=" + color + "]";
+ } else {
+ return "Stone[value=" + value + ",color=" + color + "]";
+ }
+ }
}