|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.Context us.asciiroth.client.core.Event
public class Event
A game event, with the information necessary for the callbacks on the various pieces to create a meaningful response to the event.
Constructor Summary | |
---|---|
Event(Player player,
Board board)
|
Method Summary | |
---|---|
void |
cancel()
Cancel this event. |
void |
cancel(Cell cell,
java.lang.String message)
Cancel this event and provide an explanation to the player, pointing to the indicated cell. |
void |
cancel(java.lang.String message)
Cancel this event and provide an explanation to the player, pointing to the current cell where the player is. |
boolean |
isCancelled()
Is the event canceled? |
void |
suppressCancel()
In the course of firing events it may be that one failure requires a further test. |
Methods inherited from class us.asciiroth.client.core.Context |
---|
getBoard, getPlayer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Event(Player player, Board board)
player
- board
- Method Detail |
---|
public void cancel()
public void cancel(Cell cell, java.lang.String message)
cell
- the cell that is the locus of the messagemessage
- a message to display to the playerpublic void cancel(java.lang.String message)
message
- a message to display to the playerpublic boolean isCancelled()
public void suppressCancel()
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark