cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages
Interface IPlayer

All Known Implementing Classes:
Player, PlayerCompositeImpl, PlayerMessage

public interface IPlayer


Method Summary
 java.lang.String getAction()
           
 int getFiring()
          0 means is not firing, 1 - firing in primary mode, 2 - firing in secondary mode (alt firing).
 UnrealId getId()
           
 Location getLocation()
          An absolute location of the player within the map.
 java.lang.String getName()
           
 Rotation getRotation()
          Which direction the player is facing in absolute terms.
 long getSimTime()
           
 int getTeam()
          What team the player is on.
 Velocity getVelocity()
          Absolute velocity of the player as a vector of movement per one game second.
 java.lang.String getWeapon()
          Class of the weapon the player is holding.
 boolean isReachable()
          True if the bot can run to this other player directly, false otherwise.
 boolean isVisible()
          If the player is in the field of view of the bot.
 java.lang.String toHtmlString()
           
 

Method Detail

getId

UnrealId getId()

getName

java.lang.String getName()

getAction

java.lang.String getAction()

isVisible

boolean isVisible()
If the player is in the field of view of the bot.


getRotation

Rotation getRotation()
Which direction the player is facing in absolute terms.


getLocation

Location getLocation()
An absolute location of the player within the map.


getVelocity

Velocity getVelocity()
Absolute velocity of the player as a vector of movement per one game second.


getTeam

int getTeam()
What team the player is on. 255 is no team. 0-3 are red, blue, green, gold in that order.


getWeapon

java.lang.String getWeapon()
Class of the weapon the player is holding. Weapon strings to look for include: "AssaultRifle", "ShieldGun", "FlakCannon", "BioRifle", "ShockRifle", "LinkGun", "SniperRifle", "RocketLauncher", "Minigun", "LightingGun", "Translocator". TODO: Look if this is all.


isReachable

boolean isReachable()
True if the bot can run to this other player directly, false otherwise. Possible reasons for false: pit or obstacle between the two characters.


getFiring

int getFiring()
0 means is not firing, 1 - firing in primary mode, 2 - firing in secondary mode (alt firing).


getSimTime

long getSimTime()

toHtmlString

java.lang.String toHtmlString()