diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-03 17:29:52 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-03 17:29:52 +0200 |
commit | bcc3f95847eafa1b61bb32dac047101c7adc0e64 (patch) | |
tree | 992c9f7d3569f3598cf8e1a0f14fa647974bb5e7 /src/jrummikub/view/IClickable.java | |
parent | 7edb66d4ff069a40471258a66ef56dac36598665 (diff) | |
download | JRummikub-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/view/IClickable.java')
-rw-r--r-- | src/jrummikub/view/IClickable.java | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/src/jrummikub/view/IClickable.java b/src/jrummikub/view/IClickable.java index c827042..4f44b5e 100644 --- a/src/jrummikub/view/IClickable.java +++ b/src/jrummikub/view/IClickable.java @@ -1,38 +1,18 @@ package jrummikub.view; import jrummikub.model.Position; -import jrummikub.util.IEvent2; +import jrummikub.util.IEvent1; /** * An interface for view elements that can emit click events */ public interface IClickable { /** - * the click event is emitted when the player clicks on the table/board/etc. + * the click event is emitted when the player clicks on the table/hand/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(); + public IEvent1<Position> getClickEvent(); } |