author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Tue, 14 Sep 2010 09:46:43 +0200 | |
changeset 266 | 15fcdfc4cd4a |
parent 255 | 9ecd02d694cd |
permissions | -rw-r--r-- |
jaroslav@266 | 1 |
/** |
jaroslav@266 | 2 |
* Quoridor server and related libraries |
jaroslav@266 | 3 |
* Copyright (C) 2009-2010 Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
jaroslav@266 | 4 |
* |
jaroslav@266 | 5 |
* This program is free software: you can redistribute it and/or modify |
jaroslav@266 | 6 |
* it under the terms of the GNU General Public License as published by |
jaroslav@266 | 7 |
* the Free Software Foundation, either version 3 of the License. |
jaroslav@266 | 8 |
* |
jaroslav@266 | 9 |
* This program is distributed in the hope that it will be useful, |
jaroslav@266 | 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
jaroslav@266 | 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jaroslav@266 | 12 |
* GNU General Public License for more details. |
jaroslav@266 | 13 |
* |
jaroslav@266 | 14 |
* You should have received a copy of the GNU General Public License |
jaroslav@266 | 15 |
* along with this program. Look for COPYING file in the top folder. |
jaroslav@266 | 16 |
* If not, see http://www.gnu.org/licenses/. |
jaroslav@255 | 17 |
*/ |
jaroslav@255 | 18 |
|
jaroslav@255 | 19 |
package cz.xelfi.quoridor.visidor; |
jaroslav@255 | 20 |
|
jaroslav@255 | 21 |
import cz.xelfi.quoridor.Move; |
jaroslav@255 | 22 |
import java.util.EventObject; |
jaroslav@255 | 23 |
|
jaroslav@255 | 24 |
/** Event describing what happens in {@link BoardPane}. |
jaroslav@255 | 25 |
* |
jaroslav@255 | 26 |
* @author Jaroslav Tulach <jtulach@netbeans.org> |
jaroslav@255 | 27 |
*/ |
jaroslav@255 | 28 |
public final class BoardEvent extends EventObject { |
jaroslav@255 | 29 |
private final Move move; |
jaroslav@255 | 30 |
|
jaroslav@255 | 31 |
BoardEvent(BoardPane p, Move m) { |
jaroslav@255 | 32 |
super(p); |
jaroslav@255 | 33 |
this.move = m; |
jaroslav@255 | 34 |
} |
jaroslav@255 | 35 |
|
jaroslav@255 | 36 |
/** The move that describes recent user gesture on the {@link BoardPane}. |
jaroslav@255 | 37 |
* |
jaroslav@255 | 38 |
* @return the move or null, if this event does not describe a move |
jaroslav@255 | 39 |
*/ |
jaroslav@255 | 40 |
public Move getMove() { |
jaroslav@255 | 41 |
return move; |
jaroslav@255 | 42 |
} |
jaroslav@255 | 43 |
} |