|
|||||||||
| 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.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 NavPointSharedpublic NavPointSharedImpl clone()
clone in interface ISharedWorldObjectclone in class NavPointSharedpublic ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class NavPointSharedpublic Location getLocation()
getLocation in interface ILocatedgetLocation in class NavPointSharedpublic Velocity getVelocity()
getVelocity in interface ILocomotivegetVelocity in class NavPointSharedpublic boolean isItemSpawned()
isItemSpawned in class NavPointSharedpublic boolean isDoorOpened()
isDoorOpened in class NavPointSharedpublic java.lang.String toString()
toString in class NavPointSharedpublic java.lang.String toHtmlString()
toHtmlString in class NavPointShared
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||