|
|||||||||
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.NavPointShared cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointSharedImpl
public class NavPointSharedImpl
Implementation of the shared 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 |
NavPointSharedImpl.NavPointSharedUpdate
|
Field Summary | |
---|---|
protected UnrealId |
Id
A unique Id of this navigation point assigned by the game. |
protected BooleanProperty |
myDoorOpened
True if this NavPoint is a Door and door is opened. |
protected BooleanProperty |
myItemSpawned
True if the item is spawned at the point. |
protected LocationProperty |
myLocation
Location of navigation point. |
protected VelocityProperty |
myVelocity
Velocity of the navigation point (if the navigation point is currently moving). |
protected java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointShared |
---|
DoorOpenedPropertyToken, ItemSpawnedPropertyToken, LocationPropertyToken, SharedPropertyTokens, SimTime, VelocityPropertyToken |
Constructor Summary | |
---|---|
NavPointSharedImpl(NavPointSharedImpl source)
|
|
NavPointSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
|
Method Summary | |
---|---|
NavPointSharedImpl |
clone()
|
UnrealId |
getId()
A unique Id of this navigation point assigned by the game. |
Location |
getLocation()
Location of navigation point. |
java.util.Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
Velocity |
getVelocity()
Velocity of the navigation point (if the navigation point is currently moving). |
boolean |
isDoorOpened()
True if this NavPoint is a Door and door is opened. |
boolean |
isItemSpawned()
True if the item is spawned at the point. |
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.NavPointShared |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected BooleanProperty myItemSpawned
protected BooleanProperty myDoorOpened
Constructor Detail |
---|
public NavPointSharedImpl(NavPointSharedImpl source)
public NavPointSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
Method Detail |
---|
public void setSimTime(long SimTime)
NavPointShared
setSimTime
in class NavPointShared
public NavPointSharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class NavPointShared
public ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class NavPointShared
public Location getLocation()
getLocation
in interface ILocated
getLocation
in class NavPointShared
public Velocity getVelocity()
getVelocity
in interface ILocomotive
getVelocity
in class NavPointShared
public boolean isItemSpawned()
isItemSpawned
in class NavPointShared
public boolean isDoorOpened()
isDoorOpened
in class NavPointShared
public java.lang.String toString()
toString
in class NavPointShared
public java.lang.String toHtmlString()
toHtmlString
in class NavPointShared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |