summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/IClickable.java
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-02 03:59:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-02 03:59:15 +0200
commite39dc98249e5b71892b4dca0fc0f5ca5e16740a6 (patch)
tree44dfbe86e89a3cc2d1fac061889b15beb669431f /src/jrummikub/view/IClickable.java
parent6d406adc6d04589e757a68d158d005e4bf949215 (diff)
downloadJRummikub-e39dc98249e5b71892b4dca0fc0f5ca5e16740a6.tar
JRummikub-e39dc98249e5b71892b4dca0fc0f5ca5e16740a6.zip
Add JavaDoc comments to view interfaces
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@62 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/IClickable.java')
-rw-r--r--src/jrummikub/view/IClickable.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/jrummikub/view/IClickable.java b/src/jrummikub/view/IClickable.java
index 9973d5b..818e4fa 100644
--- a/src/jrummikub/view/IClickable.java
+++ b/src/jrummikub/view/IClickable.java
@@ -4,9 +4,32 @@ import jrummikub.model.Position;
import jrummikub.util.IEvent2;
public interface IClickable {
+ /**
+ * the click event is emitted when the player clicks on the table/board/etc.
+ *
+ * @return the event; the first parameter is the position of the click in grid
+ * coordinates, the second is true when the player wants to add stones
+ * to his selection instead of replacing them
+ */
public IEvent2<Position, Boolean> getClickEvent();
+ /**
+ * the range click event is emitted when the player clicks on the table/board/
+ * etc. and wants to select a range instead of a single stone
+ *
+ * @return the event; the first parameter is the position of the click in grid
+ * coordinates, the second is true when the player wants to add stones
+ * to his selection instead of replacing them
+ */
public IEvent2<Position, Boolean> getRangeClickEvent();
+ /**
+ * the set click event is emitted when the player clicks on the table/board/
+ * etc. and wants to select a whole set instead of a single stone
+ *
+ * @return the event; the first parameter is the position of the click in grid
+ * coordinates, the second is true when the player wants to add stones
+ * to his selection instead of replacing them
+ */
public IEvent2<Position, Boolean> getSetClickEvent();
}