ctf.evaluation.simulator.data
Class Player

java.lang.Object
  extended by ctf.evaluation.simulator.data.Player
All Implemented Interfaces:
HasLocation, HasVisibility

public class Player
extends java.lang.Object
implements HasLocation, HasVisibility

Represents an individual player


Nested Class Summary
static class Player.State
           
 
Field Summary
static float RADIUS
           
static int TOKENS
           
 
Constructor Summary
Player(java.lang.String[] tokens)
           
 
Method Summary
 double heading()
           
 Point location()
           
 double speed()
           
 Player.State state()
           
 java.lang.String toString()
           
 boolean visible()
          Can this object be seen?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKENS

public static final int TOKENS
See Also:
Constant Field Values

RADIUS

public static final float RADIUS
See Also:
Constant Field Values
Constructor Detail

Player

public Player(java.lang.String[] tokens)
       throws ProtocolError
Throws:
ProtocolError
Method Detail

state

public Player.State state()

location

public Point location()
Specified by:
location in interface HasLocation

heading

public double heading()

speed

public double speed()

visible

public boolean visible()
Description copied from interface: HasVisibility
Can this object be seen?

Specified by:
visible in interface HasVisibility

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object