|
||||||||||
| 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.ui.game.boardgame.MovementMouseAgent
org.vizzini.ui.game.boardgame.chess.MouseAgent
public class MouseAgent
Provides a text agent for 3D chess.
| Field Summary |
|---|
| Fields inherited from class org.vizzini.ui.game.boardgame.MovementMouseAgent |
|---|
_desiredPositionCount, _positions, _statusManager |
| Fields inherited from interface org.vizzini.game.IAgent |
|---|
NAME_PROPERTY, TEAM_PROPERTY |
| Constructor Summary | |
|---|---|
MouseAgent()
|
|
| Method Summary | |
|---|---|
protected IAction |
createAction(IEnvironment environment)
Create the appropriate action. |
Class |
getPawnPromotionType()
Return the pawn promotion type. |
boolean |
isPawnPrompt()
Return true if this agent should prompt for the pawn promotion type. |
boolean |
isWhite()
Return true if this agent's team is white. |
void |
mouseClicked(MouseEvent event)
Implement the mouse listener interface. |
void |
reset()
Reset to the initial state. |
static void |
setFrame(Frame frame)
Set the frame. |
void |
setPawnPrompt(boolean isPawnPrompt)
Set the flag indicating whether to prompt for the pawn promotion type. |
| Methods inherited from class org.vizzini.ui.game.boardgame.MovementMouseAgent |
|---|
addStatusListener, getAction, getStatusManager, mouseEntered, mouseExited, mousePressed, mouseReleased, setDesiredPositionCount |
| 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, 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, getAction, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, setName, setScore, setTeam |
| Constructor Detail |
|---|
public MouseAgent()
| Method Detail |
|---|
public static void setFrame(Frame frame)
public Class getPawnPromotionType()
getPawnPromotionType in interface IChessAgentpublic boolean isPawnPrompt()
isPawnPrompt in interface IChessAgentpublic boolean isWhite()
isWhite in interface IChessAgentpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenermouseClicked in class MovementMouseAgentevent - A mouse event.public void reset()
reset in interface IAgentreset in class MovementMouseAgentpublic void setPawnPrompt(boolean isPawnPrompt)
setPawnPrompt in interface IChessAgentprotected IAction createAction(IEnvironment environment)
createAction in class MovementMouseAgent
|
||||||||||
| 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 |