cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class PlayerStaticImpl

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class PlayerStaticImpl
extends PlayerStatic

Implementation of the static part of the GameBots2004 message PLR.

Complete message documentation: Synchronous message. Contains information about other players in the game, like their current velocity, position, weapon and reachability. Only reports those players that are visible. (within field of view and not occluded).


Nested Class Summary
static class PlayerStaticImpl.PlayerStaticUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of the player.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerStatic
SimTime
 
Constructor Summary
PlayerStaticImpl()
          Parameter-less contructor for the message.
PlayerStaticImpl(Player original)
          Cloning constructor from the full message.
PlayerStaticImpl(PlayerStatic original)
          Cloning constructor from the message part.
PlayerStaticImpl(PlayerStaticImpl original)
          Cloning constructor from the full message.
PlayerStaticImpl(UnrealId Id)
          Creates new instance of the message Player.
 
Method Summary
 PlayerStaticImpl clone()
           
 UnrealId getId()
          Unique Id of the player.
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerStatic
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

protected UnrealId Id
Unique Id of the player.

Constructor Detail

PlayerStaticImpl

public PlayerStaticImpl()
Parameter-less contructor for the message.


PlayerStaticImpl

public PlayerStaticImpl(UnrealId Id)
Creates new instance of the message Player. Synchronous message. Contains information about other players in the game, like their current velocity, position, weapon and reachability. Only reports those players that are visible. (within field of view and not occluded). Corresponding GameBots message (static part) is PLR.

Parameters:
Id - Unique Id of the player.

PlayerStaticImpl

public PlayerStaticImpl(Player original)
Cloning constructor from the full message.

Parameters:
original -

PlayerStaticImpl

public PlayerStaticImpl(PlayerStaticImpl original)
Cloning constructor from the full message.

Parameters:
original -

PlayerStaticImpl

public PlayerStaticImpl(PlayerStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

public void setSimTime(long SimTime)
Description copied from class: PlayerStatic
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class PlayerStatic

clone

public PlayerStaticImpl clone()
Specified by:
clone in class PlayerStatic

getId

public UnrealId getId()
Unique Id of the player.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class PlayerStatic
Returns:

toString

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

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class PlayerStatic