|
||||||||||
| 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.Mover
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverMessage
public class MoverMessage
Implementation of the GameBots2004 message MOV contains also its Local/Shared/Static subpart class definitions..
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 | |
|---|---|
class |
MoverMessage.MoverLocalMessage
Implementation of the local part of the GameBots2004 message MOV, used to facade MOVMessage. |
class |
MoverMessage.MoverSharedMessage
Implementation of the shared part of the GameBots2004 message MOV, used to facade MOVMessage. |
class |
MoverMessage.MoverStaticMessage
Implementation of the static part of the GameBots2004 message MOV, used to facade MOVMessage. |
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Mover |
|---|
Mover.MoverUpdate, Mover.ObjectDisappeared |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected Location |
BasePos
Base position of the mover. |
protected boolean |
BasePos_Set
Whether property 'BasePos' was received from GB2004. |
protected Location |
BaseRot
Base rotation of the mover. |
protected boolean |
BaseRot_Set
Whether property 'BaseRot' was received from GB2004. |
protected boolean |
DamageTrig
True if the mover needs to be shot to be activated. |
protected boolean |
DamageTrig_Set
Whether property 'DamageTrig' was received from GB2004. |
protected double |
DelayTime
Delay before starting to open (or before lift starts to move). |
protected boolean |
DelayTime_Set
Whether property 'DelayTime' was received from GB2004. |
protected UnrealId |
Id
A unique Id of this mover assigned by the game. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected boolean |
IsMoving
Does the mover move right now? |
protected boolean |
IsMoving_Set
Whether property 'IsMoving' was received from GB2004. |
protected Location |
Location
Location of the mover. |
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004. |
protected double |
MoveTime
How long the mover moves, when it becomes triggered, before it stops. |
protected boolean |
MoveTime_Set
Whether property 'MoveTime' was received from GB2004. |
protected UnrealId |
NavPointMarker
Navigation point marking this mover. |
protected boolean |
NavPointMarker_Set
Whether property 'NavPointMarker' was received from GB2004. |
protected double |
OpenTime
How long the mover stands still when it reaches its destination position. |
protected boolean |
OpenTime_Set
Whether property 'OpenTime' was received from GB2004. |
protected String |
State
Name of the state Mover is currently in. |
protected boolean |
State_Set
Whether property 'State' was received from GB2004. |
protected ITeamId |
TeamId
|
protected String |
Type
String class of the mover. |
protected boolean |
Type_Set
Whether property 'Type' was received from GB2004. |
protected Velocity |
Velocity
Velocity vector. |
protected boolean |
Velocity_Set
Whether property 'Velocity' was received from GB2004. |
protected boolean |
Visible
If the mover is in the field of view of the bot. |
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Mover |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
MoverMessage()
Parameter-less contructor for the message. |
|
MoverMessage(MoverMessage original)
Cloning constructor from the full message. |
|
MoverMessage(UnrealId Id,
Location Location,
boolean Visible,
boolean DamageTrig,
String Type,
boolean IsMoving,
Velocity Velocity,
double MoveTime,
double OpenTime,
Location BasePos,
Location BaseRot,
double DelayTime,
String State,
UnrealId NavPointMarker)
Creates new instance of the message Mover. |
|
| Method Summary | |
|---|---|
Location |
getBasePos()
Base position of the mover. |
Location |
getBaseRot()
Base rotation of the mover. |
double |
getDelayTime()
Delay before starting to open (or before lift starts to move). |
UnrealId |
getId()
A unique Id of this mover assigned by the game. |
MoverLocal |
getLocal()
|
ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
Location |
getLocation()
Location of the mover. |
double |
getMoveTime()
How long the mover moves, when it becomes triggered, before it stops. |
UnrealId |
getNavPointMarker()
Navigation point marking this mover. |
double |
getOpenTime()
How long the mover stands still when it reaches its destination position. |
MoverShared |
getShared()
|
ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
String |
getState()
Name of the state Mover is currently in. |
MoverStatic |
getStatic()
|
IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
ITeamId |
getTeamId()
|
String |
getType()
String class of the mover. |
Velocity |
getVelocity()
Velocity vector. |
boolean |
isDamageTrig()
True if the mover needs to be shot to be activated. |
boolean |
isIsMoving()
Does the mover move right now? |
boolean |
isVisible()
If the mover is in the field of view of the bot. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Mover |
|---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent |
|---|
getSimTime |
| Field Detail |
|---|
protected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected Location Location
protected boolean Location_Set
protected boolean Visible
protected boolean Visible_Set
protected boolean DamageTrig
protected boolean DamageTrig_Set
protected String Type
protected boolean Type_Set
protected boolean IsMoving
protected boolean IsMoving_Set
protected Velocity Velocity
protected boolean Velocity_Set
protected double MoveTime
protected boolean MoveTime_Set
protected double OpenTime
protected boolean OpenTime_Set
protected Location BasePos
protected boolean BasePos_Set
protected Location BaseRot
protected boolean BaseRot_Set
protected double DelayTime
protected boolean DelayTime_Set
protected String State
protected boolean State_Set
protected UnrealId NavPointMarker
protected boolean NavPointMarker_Set
| Constructor Detail |
|---|
public MoverMessage()
public MoverMessage(UnrealId Id,
Location Location,
boolean Visible,
boolean DamageTrig,
String Type,
boolean IsMoving,
Velocity Velocity,
double MoveTime,
double OpenTime,
Location BasePos,
Location BaseRot,
double DelayTime,
String State,
UnrealId NavPointMarker)
Id - A unique Id of this mover assigned by the game.Location - Location of the mover.Visible - If the mover is in the field of view of the bot.DamageTrig - True if the mover needs to be shot to be activated.Type - String class of the mover.IsMoving - Does the mover move right now?Velocity - Velocity vector.MoveTime - How long the mover moves, when it becomes triggered, before it stops.OpenTime - How long the mover stands still when it reaches its destination position. After
this time, the mover returns back to its initial position.BasePos - Base position of the mover.BaseRot - Base rotation of the mover.DelayTime - Delay before starting to open (or before lift starts to move).State - Name of the state Mover is currently in. Can be used to determine the type of the mover.NavPointMarker - Navigation point marking this mover. We can parse this Id to get information about type of the mover. Marker Id contains "lift" string if it is a lift, "door" string if it is a door, etc.public MoverMessage(MoverMessage original)
original - | Method Detail |
|---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
Mover
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class Moverpublic Location getLocation()
Mover
getLocation in interface ILocatedgetLocation in class Moverpublic boolean isVisible()
Mover
isVisible in interface IViewableisVisible in class Moverpublic boolean isDamageTrig()
Mover
isDamageTrig in class Moverpublic String getType()
Mover
getType in class Moverpublic boolean isIsMoving()
Mover
isIsMoving in class Moverpublic Velocity getVelocity()
Mover
getVelocity in interface ILocomotivegetVelocity in class Moverpublic double getMoveTime()
Mover
getMoveTime in class Moverpublic double getOpenTime()
Mover
getOpenTime in class Moverpublic Location getBasePos()
Mover
getBasePos in class Moverpublic Location getBaseRot()
Mover
getBaseRot in class Moverpublic double getDelayTime()
Mover
getDelayTime in class Moverpublic String getState()
Mover
getState in class Moverpublic UnrealId getNavPointMarker()
Mover
getNavPointMarker in class Moverpublic MoverLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic MoverShared getShared()
getShared in interface ICompositeWorldObjectpublic MoverStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class Moverpublic String toHtmlString()
toHtmlString in class Mover
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||