|
Othello 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.drexel.cs.ai.othello.InvalidMoveException
public class InvalidMoveException
Thrown to indicate that a move is not valid for the
given GameState.
| Constructor Summary | |
|---|---|
InvalidMoveException(Square move,
GameState.Player player,
java.lang.String message)
Constructs an InvalidMoveException with the
offending move, the player that attempted the invalid move, and
a message explaining why the move was invalid. |
|
| Method Summary | |
|---|---|
Square |
getMove()
Returns the offending move. |
GameState.Player |
getPlayer()
Returns the offending player. |
java.lang.String |
toString()
Returns a string representation of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InvalidMoveException(Square move,
GameState.Player player,
java.lang.String message)
InvalidMoveException with the
offending move, the player that attempted the invalid move, and
a message explaining why the move was invalid.
| Method Detail |
|---|
public Square getMove()
public GameState.Player getPlayer()
public java.lang.String toString()
toString in class java.lang.Throwable
|
Othello 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||