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

Package class diagram package BombInfoLocalImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoLocalImpl
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject, cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalViewable, cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject, ILocalGBViewable, Cloneable

public class BombInfoLocalImpl
extends BombInfoLocal

Implementation of the local part of the GameBots2004 message BOM.

Complete message documentation: Synchronous message. BombInfo contains all info about the bomb in the BotBombingRun game mode. Is not sent in other game types.


Nested Class Summary
static class BombInfoLocalImpl.BombInfoLocalUpdate
           
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoLocal
BombInfoLocal.ObjectDisappeared
 
Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          An unique Id for this bomb, assigned by the game.
protected  boolean Visible
          True if the bot can see the bomb.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoLocal
SimTime
 
Constructor Summary
BombInfoLocalImpl()
          Parameter-less contructor for the message.
BombInfoLocalImpl(BombInfo original)
          Cloning constructor from the full message.
BombInfoLocalImpl(BombInfoLocal original)
          Cloning constructor from the message part.
BombInfoLocalImpl(BombInfoLocalImpl original)
          Cloning constructor from the full message.
BombInfoLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, boolean Visible)
          Creates new instance of the message BombInfo.
 
Method Summary
 BombInfoLocalImpl clone()
           
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          An unique Id for this bomb, assigned by the game.
 BombInfoLocalImpl getLocal()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
           
 boolean isVisible()
          True if the bot can see the bomb.
 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.BombInfoLocal
createDisappearEvent, getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
An unique Id for this bomb, assigned by the game.


Visible

protected boolean Visible
True if the bot can see the bomb.

Constructor Detail

BombInfoLocalImpl

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


BombInfoLocalImpl

public BombInfoLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                         boolean Visible)
Creates new instance of the message BombInfo. Synchronous message. BombInfo contains all info about the bomb in the BotBombingRun game mode. Is not sent in other game types. Corresponding GameBots message (local part) is BOM.

Parameters:
Id - An unique Id for this bomb, assigned by the game.
Visible - True if the bot can see the bomb.

BombInfoLocalImpl

public BombInfoLocalImpl(BombInfo original)
Cloning constructor from the full message.

Parameters:
original -

BombInfoLocalImpl

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

Parameters:
original -

BombInfoLocalImpl

public BombInfoLocalImpl(BombInfoLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class BombInfoLocal

clone

public BombInfoLocalImpl clone()
Specified by:
clone in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject
Specified by:
clone in class BombInfoLocal

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
An unique Id for this bomb, assigned by the game.

Specified by:
getId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
Specified by:
getId in class BombInfoLocal

isVisible

public boolean isVisible()
True if the bot can see the bomb.

Specified by:
isVisible in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalViewable
Specified by:
isVisible in class BombInfoLocal

getLocal

public BombInfoLocalImpl getLocal()
Overrides:
getLocal in class BombInfoLocal

getShared

public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
Overrides:
getShared in class BombInfoLocal

getStatic

public cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
Overrides:
getStatic in class BombInfoLocal

toString

public String toString()
Overrides:
toString in class BombInfoLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class BombInfoLocal


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