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

Package class diagram package NavPointLocalImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocalImpl
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 NavPointLocalImpl
extends NavPointLocal

Implementation of the local part of the GameBots2004 message NAV.

Complete message documentation: Synchronous message. NavPoint carries information about UT navigation point - location, reachability... Also some item can be respawned at this point. Or some additional information can be stored here (if it is an ambush point, or sniper point..).


Nested Class Summary
static class NavPointLocalImpl.NavPointLocalUpdate
           
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
NavPointLocal.ObjectDisappeared
 
Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          A unique Id of this navigation point assigned by the game.
protected  boolean Visible
          If the point is in the field of view of the bot.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
SimTime
 
Constructor Summary
NavPointLocalImpl()
          Parameter-less contructor for the message.
NavPointLocalImpl(NavPoint original)
          Cloning constructor from the full message.
NavPointLocalImpl(NavPointLocal original)
          Cloning constructor from the message part.
NavPointLocalImpl(NavPointLocalImpl original)
          Cloning constructor from the full message.
NavPointLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, boolean Visible)
          Creates new instance of the message NavPoint.
 
Method Summary
 NavPointLocalImpl clone()
           
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          A unique Id of this navigation point assigned by the game.
 NavPointLocalImpl getLocal()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
           
 boolean isVisible()
          If the point is in the field of view of the bot.
 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.NavPointLocal
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
A unique Id of this navigation point assigned by the game.


Visible

protected boolean Visible
If the point is in the field of view of the bot.

Constructor Detail

NavPointLocalImpl

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


NavPointLocalImpl

public NavPointLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                         boolean Visible)
Creates new instance of the message NavPoint. Synchronous message. NavPoint carries information about UT navigation point - location, reachability... Also some item can be respawned at this point. Or some additional information can be stored here (if it is an ambush point, or sniper point..). Corresponding GameBots message (local part) is NAV.

Parameters:
Id - A unique Id of this navigation point assigned by the game.
Visible - If the point is in the field of view of the bot.

NavPointLocalImpl

public NavPointLocalImpl(NavPoint original)
Cloning constructor from the full message.

Parameters:
original -

NavPointLocalImpl

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

Parameters:
original -

NavPointLocalImpl

public NavPointLocalImpl(NavPointLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class NavPointLocal

clone

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

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
A unique Id of this navigation point assigned by the game.

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

isVisible

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

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

getLocal

public NavPointLocalImpl getLocal()
Overrides:
getLocal in class NavPointLocal

getShared

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

getStatic

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

toString

public String toString()
Overrides:
toString in class NavPointLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class NavPointLocal


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