public class MoverMessage extends Mover implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
| Modifier and Type | Class and Description |
|---|---|
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.
|
Mover.MoverUpdate, Mover.ObjectDisappearedIWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
createDisappearEvent, getSimTime, setSimTime, toJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSimTimeprotected 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
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 - protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
MovergetId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class Moverpublic Location getLocation()
MovergetLocation in interface ILocatedgetLocation in class Moverpublic boolean isVisible()
Moverpublic boolean isDamageTrig()
MoverisDamageTrig in class Moverpublic boolean isIsMoving()
MoverisIsMoving in class Moverpublic Velocity getVelocity()
MovergetVelocity in interface ILocomotivegetVelocity in class Moverpublic double getMoveTime()
MovergetMoveTime in class Moverpublic double getOpenTime()
MovergetOpenTime in class Moverpublic Location getBasePos()
MovergetBasePos in class Moverpublic Location getBaseRot()
MovergetBaseRot in class Moverpublic double getDelayTime()
MovergetDelayTime in class Moverpublic String getState()
Moverpublic UnrealId getNavPointMarker()
MovergetNavPointMarker 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 toHtmlString()
toHtmlString in class MoverCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.