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

Package class diagram package 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.
 boolean isDifferentFrom(IStaticWorldObject other)
           
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerStatic
getCompositeClass, getSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
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

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class PlayerStatic

toString

public String toString()
Overrides:
toString in class PlayerStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class PlayerStatic


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.