cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class NavPointMessage.NavPointLocalMessage

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.NavPointMessage.NavPointLocalMessage
All Implemented Interfaces:
IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, java.lang.Cloneable
Enclosing class:
NavPointMessage

public class NavPointMessage.NavPointLocalMessage
extends NavPointLocal

Implementation of the local part of the GameBots2004 message NAV, used to facade NAVMessage.

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
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
NavPointLocal.ObjectDisappeared
 
Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
SimTime
 
Constructor Summary
NavPointMessage.NavPointLocalMessage()
           
 
Method Summary
 NavPointMessage.NavPointLocalMessage clone()
           
 UnrealId getId()
          A unique Id of this navigation point assigned by the game.
 NavPointMessage.NavPointLocalMessage getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 boolean isReachable()
          If the bot can reach the point directly.
 boolean isVisible()
          If the point is in the field of view of the bot.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
createDisappearEvent, getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavPointMessage.NavPointLocalMessage

public NavPointMessage.NavPointLocalMessage()
Method Detail

clone

public NavPointMessage.NavPointLocalMessage clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class NavPointLocal

getLocal

public NavPointMessage.NavPointLocalMessage getLocal()
Overrides:
getLocal in class NavPointLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class NavPointLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class NavPointLocal

getId

public UnrealId getId()
A unique Id of this navigation point assigned by the game.

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

isVisible

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

Specified by:
isVisible in interface ILocalViewable
Specified by:
isVisible in class NavPointLocal
Returns:

isReachable

public boolean isReachable()
If the bot can reach the point directly. This is a bit tricky. Only point in radius around 900 ut units are evaluated. More ditant points will always return false. Moreover, bot may be required to jump somewhere on the direct path toward this point, if reachable it true (only normal jump is required, if double jump would be required, reachable would be false). Also, bot may be required to fall down from a ramp if he is standing on some.

Specified by:
isReachable in class NavPointLocal

toString

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

toHtmlString

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