|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.NavPointLocalImpl
public class NavPointLocalImpl
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 UnrealId |
Id
A unique Id of this navigation point assigned by the game. |
protected boolean |
Reachable
If the bot can reach the point directly. |
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(UnrealId Id,
boolean Visible,
boolean Reachable)
Creates new instance of the message NavPoint. |
Method Summary | |
---|---|
NavPointLocalImpl |
clone()
|
UnrealId |
getId()
A unique Id of this navigation point assigned by the game. |
NavPointLocalImpl |
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. |
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.NavPointLocal |
---|
createDisappearEvent, getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected boolean Visible
protected boolean Reachable
Constructor Detail |
---|
public NavPointLocalImpl()
public NavPointLocalImpl(UnrealId Id, boolean Visible, boolean Reachable)
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.Reachable
- 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.public NavPointLocalImpl(NavPoint original)
original
- public NavPointLocalImpl(NavPointLocalImpl original)
original
- public NavPointLocalImpl(NavPointLocal original)
original
- Method Detail |
---|
public void setSimTime(long SimTime)
NavPointLocal
setSimTime
in class NavPointLocal
public NavPointLocalImpl clone()
clone
in interface ILocalWorldObject
clone
in class NavPointLocal
public UnrealId getId()
getId
in interface IWorldObject
getId
in class NavPointLocal
public boolean isVisible()
isVisible
in interface ILocalViewable
isVisible
in class NavPointLocal
public boolean isReachable()
isReachable
in class NavPointLocal
public NavPointLocalImpl getLocal()
getLocal
in class NavPointLocal
public ISharedWorldObject getShared()
getShared
in class NavPointLocal
public IStaticWorldObject getStatic()
getStatic
in class NavPointLocal
public java.lang.String toString()
toString
in class NavPointLocal
public java.lang.String toHtmlString()
toHtmlString
in class NavPointLocal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |