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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalWorldObject, java.lang.Cloneable

public class GameInfoLocalImpl
extends GameInfoLocal

Implementation of the local part of the GameBots2004 message NFO.

Complete message documentation: Asynchronous message. Sent as response to READY command. Information about the game. What type of game is it going to be, number of teams, maximum size of teams etc.


Nested Class Summary
static class GameInfoLocalImpl.GameInfoLocalUpdate
           
 
Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoLocal
GameInfoId, SimTime
 
Constructor Summary
GameInfoLocalImpl()
          Parameter-less contructor for the message.
GameInfoLocalImpl(GameInfo original)
          Cloning constructor from the full message.
GameInfoLocalImpl(GameInfoLocal original)
          Cloning constructor from the message part.
GameInfoLocalImpl(GameInfoLocalImpl original)
          Cloning constructor from the full message.
 
Method Summary
 GameInfoLocalImpl clone()
           
 UnrealId getId()
          Returns an id of the object that is unique among all world objects.
 GameInfoLocalImpl getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 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.GameInfoLocal
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameInfoLocalImpl

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


GameInfoLocalImpl

public GameInfoLocalImpl(GameInfo original)
Cloning constructor from the full message.

Parameters:
original -

GameInfoLocalImpl

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

Parameters:
original -

GameInfoLocalImpl

public GameInfoLocalImpl(GameInfoLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Description copied from interface: IWorldObject
Returns an id of the object that is unique among all world objects.

Specified by:
getId in interface IWorldObject
Overrides:
getId in class GameInfoLocal
Returns:

setSimTime

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

Overrides:
setSimTime in class GameInfoLocal

clone

public GameInfoLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class GameInfoLocal

getLocal

public GameInfoLocalImpl getLocal()
Overrides:
getLocal in class GameInfoLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class GameInfoLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class GameInfoLocal

toString

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

toHtmlString

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