edu.isi.gamebots.examples
Class ExampleVizTool
java.lang.Object
|
+--edu.isi.gamebots.examples.ExampleVizTool
- All Implemented Interfaces:
- GamebotsConstants, VizTool
- public class ExampleVizTool
- extends Object
- implements VizTool
This example implementation the VizTool class which shows basic message
handling and uses UTMapUI
for a map in its user interface.
- Author:
- Andrew n marshall
Fields inherited from interface edu.isi.gamebots.client.GamebotsConstants |
ACTOR_CLASS, ACTOR_ID, ACTOR_REACHABLE, ARG_ALT, ARG_AMOUNT, ARG_GLOBAL, ARG_TARGET, ARG_TEXT, ARG_WALK, BEG, BUMP, CHANGEWEAPON, CHECKREACH, DAMAGE, DEATH_DAMAGE_TYPE, DEATH_KILLER, DEFAULT_BOT_PORT, DEFAULT_VIZ_PORT, DIE, DOM, DOMPOINTS, END, FALSE, FINISHED, GAMESTATE, GETPATH, INFO, INIT, INV, ITEM, ITEM_ID, JUMP, KILL, LOCATION, MESSAGE, MOV, NAV, NODE_DOMINATION, NODE_INVENTORY, NODE_MOVER, NODE_NAVIGATION, OWNER, PATH, PING, PLAYER, PLAYER_AMMO, PLAYER_ARMOR, PLAYER_HEALTH, PLAYER_NAME, PLAYER_RADIUS, PLAYER_TEAM, PLAYER_WEAPON, PONG, ROTATE, ROTATION, RUNTO, SEE, SELF, SETWALK, SHOOT, STOP, STOP_SHOOT, STRAFE, TEAM_ANY, TEAM_BLUE, TEAM_GOLD, TEAM_GREEN, TEAM_NONE, TEAM_RED, TRUE, TURNTO, VELOCITY, WALL, WEAPON_1, WEAPON_2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VISION_DIST
public static final double VISION_DIST
- See Also:
- Constant Field Values
log
protected us.ca.la.anm.util.io.DebugLog log
isConnected
protected boolean isConnected
classLock
protected final Object classLock
knownClasses
protected Map knownClasses
actorLock
protected final Object actorLock
knownObjs
protected Map knownObjs
navPoints
protected Set navPoints
players
protected Set players
pickups
protected Set pickups
vizMap
protected ExampleVizTool.VizMap vizMap
visionArc
protected static final Shape visionArc
listener
protected GamebotsClient.Listener listener
ExampleVizTool
public ExampleVizTool()
init
public void init(us.ca.la.anm.util.io.DebugLog log)
- Specified by:
init
in interface VizTool
getView
public JComponent getView()
- Specified by:
getView
in interface VizTool
getListener
public GamebotsClient.Listener getListener()
- Specified by:
getListener
in interface VizTool
destroy
public void destroy()
- Specified by:
destroy
in interface VizTool
getActor
protected edu.isi.gamebots.examples.UTActor getActor(Message message)