|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.game.AbstractAgent
org.vizzini.game.AbstractHumanAgent
org.vizzini.example.pong.ui.MouseHumanAgent
public class MouseHumanAgent
| Field Summary |
|---|
| Fields inherited from interface org.vizzini.game.IAgent |
|---|
NAME_PROPERTY, TEAM_PROPERTY |
| Constructor Summary | |
|---|---|
MouseHumanAgent()
|
|
| Method Summary | |
|---|---|
void |
addActionReceivedListener(IActionReceivedListener listener)
Add the given listener. |
IAction |
getAction(IEnvironment environment,
IAdjudicator adjudicator)
Return the action determined through consideration of the given environment using the given adjudicator. |
void |
mouseDragged(MouseEvent event)
Callback for the mouse dragged action. |
void |
mouseEntered(MouseEvent event)
Callback for the mouse entered action. |
void |
mouseExited(MouseEvent event)
Callback for the mouse exited action. |
void |
mouseMoved(MouseEvent event)
Callback for the mouse moved action. |
void |
removeActionReceivedListener(IActionReceivedListener listener)
Remove the given listener. |
void |
stateChange(StateEvent event)
Respond to state change events. |
| Methods inherited from class org.vizzini.game.AbstractHumanAgent |
|---|
beep |
| Methods inherited from class org.vizzini.game.AbstractAgent |
|---|
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, equals, getConcedeManager, getIndex, getName, getProperties, getPropertyChangeManager, getScore, getScoreManager, getTeam, getTokenCollection, getTokenCollectionClass, hashCode, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam, setTokenCollectionClass, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.vizzini.game.IAgent |
|---|
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam |
| Constructor Detail |
|---|
public MouseHumanAgent()
| Method Detail |
|---|
public void addActionReceivedListener(IActionReceivedListener listener)
addActionReceivedListener in interface IActionReceivedProducer
public IAction getAction(IEnvironment environment,
IAdjudicator adjudicator)
getAction in interface IAgentenvironment - The current environment.adjudicator - Adjudicator for determining legal actions.public void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenerpublic void mouseEntered(MouseEvent event)
public void mouseExited(MouseEvent event)
public void mouseMoved(MouseEvent event)
mouseMoved in interface MouseMotionListenerpublic void removeActionReceivedListener(IActionReceivedListener listener)
removeActionReceivedListener in interface IActionReceivedProducerpublic void stateChange(StateEvent event)
stateChange in interface IStateListener
|
||||||||||
| 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 |