|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrcssjava.comm.CoachCommandHandler
public class CoachCommandHandler
Handles contruction of outgoing commands to the server for online coaches and offline trainers. This class contains all of the commands that a coach can send, which is a subset of what a trainer can send.
TrainerCommandHandler
Field Summary | |
---|---|
protected Connection |
C
|
protected WorldState |
WS
|
Constructor Summary | |
---|---|
CoachCommandHandler(Connection c)
Constructs a command handler with a null world state |
|
CoachCommandHandler(Connection c,
WorldState ws)
Constructs a command handler with the given world state |
Method Summary | |
---|---|
void |
changePlayerType(int id,
int playerType)
Change the heterogenous player type of a given player. |
void |
done()
Tell server thinking time is over. |
void |
eye(boolean mode)
Turn "see" messages on or off |
void |
init(java.lang.String teamName,
double version)
Send init message to server |
void |
say(java.lang.String message)
Send say message to server |
void |
setWorldState(WorldState ws)
Connect the parser to the supplied world state |
void |
teamNames()
Request team names message from server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Connection C
protected WorldState WS
Constructor Detail |
---|
public CoachCommandHandler(Connection c)
c
- connectionsetWorldState(WorldState)
public CoachCommandHandler(Connection c, WorldState ws)
c
- connectionws
- world state to connect to this parserMethod Detail |
---|
public void setWorldState(WorldState ws)
ws
- world state to connect to this parserpublic void init(java.lang.String teamName, double version)
teamName
- name of team to coachversion
- protocol version number supportedpublic void say(java.lang.String message)
message
- public void changePlayerType(int id, int playerType)
id
- player ID of player to changeplayerType
- new heterogenous type for playerpublic void eye(boolean mode)
mode
- set to true
to turn "see" messages onpublic void teamNames()
public void done()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |