blob: 1e73583f0a96587ce8471ba141f8b35b941159f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package NET.worlds.scape;
public class MouseEvent extends UserEvent {
public int x;
public int y;
public MouseEvent(int time, WObject target, int x, int y) {
super(time, null, target);
this.x = x;
this.y = y;
}
@Override
public boolean deliver(Object o) {
return o instanceof MouseHandler && ((MouseHandler)o).handle(this) ? true : super.deliver(o);
}
}
|