1 package se
.umu
.cs
.dit06ajnajs
;
4 * Interface Clickable is an interface for acting upon mouse clicks.
6 * @author Anton Johansson (dit06ajn@cs.umu.se)
9 public interface Clickable
{
12 * Reacts on mouse clicks
17 * Checks if the specified x and y position is inside of this Units bounds.
19 * @param x The x-value to check.
20 * @param y The y-value to check.
21 * @return If the specified x and y position is inside of this Units bounds.
23 public boolean contains(int x
, int y
);