|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.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 - however only NavPoints marking item pickup locations are exported synchronously. Other NavPoints are not exported synchronously at all, even if the bot can actually see them (but note that ALL NavPoints are exported in the handshake between bot and the server). Exporting NavPoints synchronously took a lot of UT server resources with limited information gain (in Pogamut there is now available visibility matrix holding static information which points can be seen from other points). NavPoint carries information about UT navigation point - location, paths and some additional information are stored there (if it is an ambush point, or sniper point, etc.).
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 |
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)
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 |
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 cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected boolean Visible
Constructor Detail |
---|
public NavPointLocalImpl()
public NavPointLocalImpl(UnrealId Id, boolean Visible)
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.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 NavPointLocalImpl getLocal()
getLocal
in class NavPointLocal
public ISharedWorldObject getShared()
getShared
in class NavPointLocal
public IStaticWorldObject getStatic()
getStatic
in class NavPointLocal
public String toString()
toString
in class NavPointLocal
public String toHtmlString()
toHtmlString
in class NavPointLocal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |