cz.cuni.pogamut.MessageObjects
Class SeePlayer

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.MessageObject
      extended by cz.cuni.pogamut.MessageObjects.SeePlayer
All Implemented Interfaces:
Visible, java.io.Serializable, java.lang.Cloneable

public class SeePlayer
extends MessageObject
implements java.io.Serializable

See player.
A message generated by the engine periodically (on the order of 1 or 2 times a second) when another player is visible by you.
Possibly usefull if you have the delay between synchronous updates very long.
In that case, this can prevent someone from walking by unseen.
May be depricated.

See Also:
Serialized Form

Field Summary
 Triple location
          Location - an absolute location for the player
 java.lang.String name
          Name of the player
 boolean reachable
          Reachable - true if the bot can run to this other player directly, false otherwise.
 Triple rotation
          Rotation - which direction the player is facing in absolute terms
 int shooting
          Wether player is shooting
 java.lang.String team
          Team - what team the player is on.
 Triple velocity
          Velocity - absolute velocity in UT units
 java.lang.String weapon
          Weapon - what weapon the character is holding.
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
ID, type, types, UnrealID, visible
 
Constructor Summary
SeePlayer()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
clone, diff, equals, getID, getType, getUnrealID, getVisibility, hasID, isVisible, setID, setType, setUnrealID, setVisible, update
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rotation

public Triple rotation
Rotation - which direction the player is facing in absolute terms


location

public Triple location
Location - an absolute location for the player


velocity

public Triple velocity
Velocity - absolute velocity in UT units


team

public java.lang.String team
Team - what team the player is on.


reachable

public boolean reachable
Reachable - true if the bot can run to this other player directly, false otherwise. Possible reasons for false: pit or obstacle between the two characters


weapon

public java.lang.String weapon
Weapon - what weapon the character is holding.


shooting

public int shooting
Wether player is shooting


name

public java.lang.String name
Name of the player

Constructor Detail

SeePlayer

public SeePlayer()
Method Detail

toString

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