This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/src/jrummikub/view/IClickable.java
Matthias Schiffer 45d5b3ae10 Implement pause function
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@390 72836036-5685-4462-b002-a69064685172
2011-06-08 21:58:16 +02:00

18 lines
541 B
Java

package jrummikub.view;
import jrummikub.model.Position;
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/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 IEvent1<Position> getClickEvent();
}