package playerWindow; import java.util.*; /** * PlayerWindowEvent - the event type generated by the PlayerWindow **/ public class PlayerWindowEvent extends EventObject { /** * getX - returns the x-coordinate of the clicked square. * * Should be used in the onBoardClicked-implementation, and makes * no sense in the onExitGame- and the onNewGame-implementations. * * @author I. Theiss **/ public int getX() { return x; } /** * getY - returns the y-coordinate of the clicked square. * * Should be used in the onBoardClicked-implementation, and makes * no sense in the onExitGame- and the onNewGame-implementations. * * @author I. Theiss **/ public int getY() { return y; } protected PlayerWindowEvent (Object source) { super(source); } protected PlayerWindowEvent (Object source, int x, int y) { super(source); this.x = x; this.y = y; } private int x, y; }