|
||||||||||
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.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 |
Field Summary | |
---|---|
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
BasePos
Base position of the mover. |
protected boolean |
BasePos_Set
Whether property 'BasePos' was received from GB2004. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.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 cz.cuni.amis.pogamut.unreal.communication.messages.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 cz.cuni.amis.pogamut.base3d.worldview.object.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 cz.cuni.amis.pogamut.unreal.communication.messages.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 cz.cuni.amis.pogamut.multi.agent.ITeamId |
TeamId
|
protected String |
Type
String class of the mover. |
protected boolean |
Type_Set
Whether property 'Type' was received from GB2004. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
boolean Visible,
boolean DamageTrig,
String Type,
boolean IsMoving,
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity,
double MoveTime,
double OpenTime,
cz.cuni.amis.pogamut.base3d.worldview.object.Location BasePos,
cz.cuni.amis.pogamut.base3d.worldview.object.Location BaseRot,
double DelayTime,
String State,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId NavPointMarker)
Creates new instance of the message Mover. |
Method Summary | |
---|---|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getBasePos()
Base position of the mover. |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getBaseRot()
Base rotation of the mover. |
double |
getDelayTime()
Delay before starting to open (or before lift starts to move). |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
A unique Id of this mover assigned by the game. |
MoverLocal |
getLocal()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
Location of the mover. |
double |
getMoveTime()
How long the mover moves, when it becomes triggered, before it stops. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getNavPointMarker()
Navigation point marking this mover. |
double |
getOpenTime()
How long the mover stands still when it reaches its destination position. |
MoverShared |
getShared()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
String |
getState()
Name of the state Mover is currently in. |
MoverStatic |
getStatic()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
cz.cuni.amis.pogamut.multi.agent.ITeamId |
getTeamId()
|
String |
getType()
String class of the mover. |
cz.cuni.amis.pogamut.base3d.worldview.object.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(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Mover |
---|
createDisappearEvent, getSimTime, setSimTime |
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 cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected boolean Id_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.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 cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity
protected boolean Velocity_Set
protected double MoveTime
protected boolean MoveTime_Set
protected double OpenTime
protected boolean OpenTime_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location BasePos
protected boolean BasePos_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location BaseRot
protected boolean BaseRot_Set
protected double DelayTime
protected boolean DelayTime_Set
protected String State
protected boolean State_Set
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId NavPointMarker
protected boolean NavPointMarker_Set
Constructor Detail |
---|
public MoverMessage()
public MoverMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, cz.cuni.amis.pogamut.base3d.worldview.object.Location Location, boolean Visible, boolean DamageTrig, String Type, boolean IsMoving, cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity, double MoveTime, double OpenTime, cz.cuni.amis.pogamut.base3d.worldview.object.Location BasePos, cz.cuni.amis.pogamut.base3d.worldview.object.Location BaseRot, double DelayTime, String State, cz.cuni.amis.pogamut.unreal.communication.messages.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(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
public cz.cuni.amis.pogamut.multi.agent.ITeamId getTeamId()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Mover
getId
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
getId
in class Mover
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
Mover
getLocation
in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated
getLocation
in class Mover
public boolean isVisible()
Mover
isVisible
in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewable
isVisible
in class Mover
public boolean isDamageTrig()
Mover
isDamageTrig
in class Mover
public String getType()
Mover
getType
in class Mover
public boolean isIsMoving()
Mover
isIsMoving
in class Mover
public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
Mover
getVelocity
in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive
getVelocity
in class Mover
public double getMoveTime()
Mover
getMoveTime
in class Mover
public double getOpenTime()
Mover
getOpenTime
in class Mover
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getBasePos()
Mover
getBasePos
in class Mover
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getBaseRot()
Mover
getBaseRot
in class Mover
public double getDelayTime()
Mover
getDelayTime
in class Mover
public String getState()
Mover
getState
in class Mover
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getNavPointMarker()
Mover
getNavPointMarker
in class Mover
public MoverLocal getLocal()
getLocal
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public MoverShared getShared()
getShared
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public MoverStatic getStatic()
getStatic
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
update
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public String toString()
toString
in class Mover
public String toHtmlString()
toHtmlString
in class Mover
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |