edu.isi.gamebots.client
Class BotRunnerApp
java.lang.Object
|
+--edu.isi.gamebots.client.BotRunnerApp
- All Implemented Interfaces:
- GamebotsConstants
- public class BotRunnerApp
- extends Object
- implements GamebotsConstants
This application is a test platform for any Bot or VizTool implementation.
It provides a simple user interface for loading bot implementations, setting
the server address and port, and connecting and disconnecting the clients.
Future Goals:
- Finish the Bot menu. Allow for individual Bot connection,
reconnection, and disconnection, as well as the biligty to unload a
bot from the team.
- Add support for serializable Bots (load Bot from file, save Bot).
- 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 |
MAX_CONNECTION_ATTEMPTS
protected static final int MAX_CONNECTION_ATTEMPTS
- See Also:
- Constant Field Values
TIMEOUT
protected static final long TIMEOUT
- See Also:
- Constant Field Values
DATA_CARD
protected static final String DATA_CARD
- See Also:
- Constant Field Values
ERROR_CARD
protected static final String ERROR_CARD
- See Also:
- Constant Field Values
BOT
protected static final String BOT
- See Also:
- Constant Field Values
VIZ
protected static final String VIZ
- See Also:
- Constant Field Values
log
protected us.ca.la.anm.util.io.JTextAreaLog log
frame
protected JFrame frame
botMenu
protected JMenu botMenu
tabbedPane
protected JTabbedPane tabbedPane
serverPanel
protected JPanel serverPanel
text
protected JTextArea text
status
protected JLabel status
curLogForText
protected us.ca.la.anm.util.io.JTextAreaLog curLogForText
tabManagers
protected Hashtable tabManagers
botNameCount
protected int botNameCount
vizNameCount
protected int vizNameCount
tabCount
protected int tabCount
connectionCount
protected int connectionCount
serverField
protected JTextField serverField
serverAddress
protected InetAddress serverAddress
botPortField
protected JTextField botPortField
serverBotPort
protected int serverBotPort
vizPortField
protected JTextField vizPortField
serverVizPort
protected int serverVizPort
connectionEventThreads
protected Thread[] connectionEventThreads
connectionEventQueue
protected Vector connectionEventQueue
requestAddBot
protected Action requestAddBot
requestAddViz
protected Action requestAddViz
connectAll
protected Action connectAll
reconnectAll
protected Action reconnectAll
disconnectAll
protected Action disconnectAll
tabListener
protected ChangeListener tabListener
serverFocusListener
protected FocusListener serverFocusListener
botPortFocusListener
protected FocusListener botPortFocusListener
vizPortFocusListener
protected FocusListener vizPortFocusListener
requestExit
protected Action requestExit
handleExit
protected Action handleExit
BotRunnerApp
public BotRunnerApp(String[] args)
main
public static void main(String[] args)
buildGUI
protected void buildGUI()
setStatus
protected void setStatus(String status)