|
||||||||||
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.MoverShared cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverMessage.MoverSharedMessage
public class MoverMessage.MoverSharedMessage
Implementation of the shared part of the GameBots2004 message MOV, used to facade MOVMessage.
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.
Field Summary | |
---|---|
protected LocationProperty |
myLocation
Location of the mover. |
protected StringProperty |
myState
Name of the state Mover is currently in. |
protected VelocityProperty |
myVelocity
Velocity vector. |
protected HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverShared |
---|
LocationPropertyToken, SharedPropertyTokens, SimTime, StatePropertyToken, VelocityPropertyToken |
Constructor Summary | |
---|---|
MoverMessage.MoverSharedMessage()
|
Method Summary | |
---|---|
MoverMessage.MoverSharedMessage |
clone()
|
UnrealId |
getId()
A unique Id of this mover assigned by the game. |
Location |
getLocation()
Location of the mover. |
Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
String |
getState()
Name of the state Mover is currently in. |
Velocity |
getVelocity()
Velocity vector. |
String |
toHtmlString()
|
String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverShared |
---|
getCompositeClass, getSimTime, setSimTime |
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 HashMap<PropertyId,ISharedProperty> propertyMap
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected StringProperty myState
Constructor Detail |
---|
public MoverMessage.MoverSharedMessage()
Method Detail |
---|
public MoverMessage.MoverSharedMessage clone()
clone
in interface ISharedWorldObject
clone
in class MoverShared
public ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class MoverShared
public Location getLocation()
getLocation
in interface ILocated
getLocation
in class MoverShared
public Velocity getVelocity()
getVelocity
in interface ILocomotive
getVelocity
in class MoverShared
public String getState()
getState
in class MoverShared
public String toString()
toString
in class MoverShared
public String toHtmlString()
toHtmlString
in class MoverShared
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |