|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.game.boardgame.chess.event.CheckManager
public class CheckManager
Provides a manager of check listeners and convenience methods for creating check events.
| Constructor Summary | |
|---|---|
CheckManager()
|
|
| Method Summary | |
|---|---|
void |
addCheckListener(ICheckListener listener)
Add the given listener. |
void |
fireCheck()
Fire a check event. |
void |
fireCheck(CheckEvent event)
Fire the given state event to all registered listeners. |
void |
fireCheck(IAgent agent)
Fire a check event with the given parameter. |
boolean |
hasListeners()
Return true if this has registed listeners. |
boolean |
isFiringChecks()
Return true if this is set to fire check events. |
void |
removeCheckListener(ICheckListener listener)
Remove the given listener. |
void |
setFiringChecks(boolean fire)
Set the flag which indicates whether to fire check events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckManager()
| Method Detail |
|---|
public void addCheckListener(ICheckListener listener)
public void fireCheck()
public void fireCheck(IAgent agent)
agent - Agent who is in check.public void fireCheck(CheckEvent event)
public boolean hasListeners()
public boolean isFiringChecks()
public void removeCheckListener(ICheckListener listener)
public void setFiringChecks(boolean fire)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |