|
|||||||||
| 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.MoverShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverSharedImpl
public class MoverSharedImpl

Implementation of the shared part of the GameBots2004 message MOV.
Complete message documentation: Synchronous message. Movers can be doors, elevators, or any other chunk of architecture that can move. They generally need to be either run into, or activated by shooting or pressing a button. We are working on ways to provide bots with more of the information they need to deal with movers appropriately.
| Nested Class Summary | |
|---|---|
static class |
MoverSharedImpl.MoverSharedUpdate
|
| Field Summary | |
|---|---|
protected UnrealId |
Id
A unique Id of this mover assigned by the game. |
protected LocationProperty |
myLocation
Location of the mover. |
protected StringProperty |
myState
Name of the state Mover is currently in. |
protected VelocityProperty |
myVelocity
Velocity vector. |
protected java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverShared |
|---|
LocationPropertyToken, SharedPropertyTokens, SimTime, StatePropertyToken, VelocityPropertyToken |
| Constructor Summary | |
|---|---|
MoverSharedImpl(MoverSharedImpl source)
|
|
MoverSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
|
|
| Method Summary | |
|---|---|
MoverSharedImpl |
clone()
|
UnrealId |
getId()
A unique Id of this mover assigned by the game. |
Location |
getLocation()
Location of the mover. |
java.util.Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
java.lang.String |
getState()
Name of the state Mover is currently in. |
Velocity |
getVelocity()
Velocity vector. |
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.MoverShared |
|---|
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 StringProperty myState
| Constructor Detail |
|---|
public MoverSharedImpl(MoverSharedImpl source)
public MoverSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
| Method Detail |
|---|
public void setSimTime(long SimTime)
MoverShared
setSimTime in class MoverSharedpublic MoverSharedImpl clone()
clone in interface ISharedWorldObjectclone in class MoverSharedpublic ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class MoverSharedpublic Location getLocation()
getLocation in interface ILocatedgetLocation in class MoverSharedpublic Velocity getVelocity()
getVelocity in interface ILocomotivegetVelocity in class MoverSharedpublic java.lang.String getState()
getState in class MoverSharedpublic java.lang.String toString()
toString in class MoverSharedpublic java.lang.String toHtmlString()
toHtmlString in class MoverShared
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||