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.ObjectDisappeared
IWorldObjectUpdatedEvent.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, toJsonLiteral
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSimTime
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
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()
Mover
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in interface ICompositeWorldObjectUpdatedEvent
getId
in class Mover
public Location getLocation()
Mover
getLocation
in interface ILocated
getLocation
in class Mover
public boolean isVisible()
Mover
public boolean isDamageTrig()
Mover
isDamageTrig
in class Mover
public boolean isIsMoving()
Mover
isIsMoving
in class Mover
public Velocity getVelocity()
Mover
getVelocity
in interface ILocomotive
getVelocity
in class Mover
public double getMoveTime()
Mover
getMoveTime
in class Mover
public double getOpenTime()
Mover
getOpenTime
in class Mover
public Location getBasePos()
Mover
getBasePos
in class Mover
public Location getBaseRot()
Mover
getBaseRot
in class Mover
public double getDelayTime()
Mover
getDelayTime
in class Mover
public String getState()
Mover
public UnrealId getNavPointMarker()
Mover
getNavPointMarker
in class Mover
public MoverLocal getLocal()
getLocal
in interface ICompositeWorldObject
public MoverShared getShared()
getShared
in interface ICompositeWorldObject
public MoverStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface ICompositeWorldObjectUpdatedEvent
public ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface ICompositeWorldObjectUpdatedEvent
public IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface ICompositeWorldObjectUpdatedEvent
public String toHtmlString()
toHtmlString
in class Mover
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.