|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Player
This is the central class of the client. Here, all visual information is evaluated and converted into decisions resp. actions
Field Summary | |
Actor |
actor
the actor module of the client |
AgentInfo |
agentInfo
database for all infos about one player |
private boolean |
DEBUG
class internal debug switch |
private boolean |
hasTurned
|
boolean |
isGoalie
the the goalie flag of the player |
private int |
PLAYING
constant defining the PLAYING status |
SkillManager |
skillManager
the skill manager of the player |
private int |
START
constant defining the START status |
private int |
status
current status the player is in; can be START or PLAYING |
StrategyManager |
strategyManager
the strategy manager of the player |
TacticsManager |
tacticsManager
the tactics manager of the player |
static java.lang.String |
teamName
the name of the team (for initialization) |
private int |
time
the actual timestamp of last visual event received |
private static boolean |
visualize
is visualisation enabled? |
(package private) static visWindow |
vW
visualization window |
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Constructor Summary | |
Player(java.lang.String servername,
int serverport,
java.lang.String teamName,
boolean isGoalie,
boolean visualize,
visWindow vW)
Creates a new Player instance. |
Method Summary | |
void |
bye()
removes the player from the field by calling actor.bye() |
(package private) void |
debug(java.lang.String dbgMsg)
|
private void |
play()
Processes the information gained and transforms it into a decision/action. |
void |
run()
This method overwrites run() from Thread . |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean isGoalie
public Actor actor
public AgentInfo agentInfo
public StrategyManager strategyManager
public TacticsManager tacticsManager
public SkillManager skillManager
public static java.lang.String teamName
private final int START
private final int PLAYING
private int status
START
or PLAYING
private int time
private boolean DEBUG
private boolean hasTurned
static visWindow vW
private static boolean visualize
Constructor Detail |
public Player(java.lang.String servername, int serverport, java.lang.String teamName, boolean isGoalie, boolean visualize, visWindow vW)
Player
instance.servername
- a String
value specifying the name of the serverserverport
- an int
value specifying the port on which the server
listens for incoming packetsteamName
- a String
value is the name of the team you want to join/createisGoalie
- switch for goalie (only one player)visualize
- switch to enable visualisationvW
- pointer to visualisation windowMethod Detail |
public void run()
run()
from Thread
. It is
executed when start()
is called for the Player
Threadrun
in class java.lang.Thread
private void play()
public void bye()
void debug(java.lang.String dbgMsg)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |