cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class NavPointMessage.NavPointLocalMessage
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal
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..).
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointLocal |
SimTime |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NavPointMessage.NavPointLocalMessage
public NavPointMessage.NavPointLocalMessage()
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