|
||||||||||
| 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.udk.communication.messages.GBObjectUpdate
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.Mover
public class Mover
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. Corresponding GameBots message is MOV.
| Nested Class Summary | |
|---|---|
static class |
Mover.ObjectDisappeared
Used to drop Visible flag from the object. |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
BasePos
Base position of the mover. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
BaseRot
Base rotation of the mover. |
protected boolean |
DamageTrig
True if the mover needs to be shot to be activated. |
protected double |
DelayTime
Delay before starting to open (or before lift starts to move). |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
A unique Id of this mover assigned by the game. |
protected boolean |
IsMoving
Does the mover move right now? |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
Location
Location of the mover. |
protected double |
MoveTime
How long the mover moves, when it becomes triggered, before it stops. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
NavPointMarker
Navigation point marking this mover. |
protected double |
OpenTime
How long the mover stands still when it reaches its destination position. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
Reachable
True if the bot can run here, false otherwise. |
protected String |
State
Name of the state Mover is currently in. |
protected double |
Time
|
protected String |
Type
String class of the mover. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
Velocity
Velocity vector. |
protected boolean |
Visible
If the mover is in the field of view of the bot. |
| Constructor Summary | |
|---|---|
Mover()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
Mover(Mover original)
Cloning constructor. |
|
Mover(Mover Original,
boolean Visible)
Used to create event that drops the Visible flag of the item. |
|
Mover(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
boolean Visible,
boolean Reachable,
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 command Mover. |
|
| Method Summary | |
|---|---|
IGBWorldObjectDisappeared |
createDisappearEvent()
Creates an update event that has to update visibility to false. |
boolean |
equals(Object obj)
|
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. |
double |
getLastSeenTime()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject |
getLocal()
|
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. |
cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject |
getObject()
Returns original object (if method update() has already been called, for bot-programmer that is always true as the original object is updated and then the event is propagated). |
double |
getOpenTime()
How long the mover stands still when it reaches its destination position. |
cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject |
getShared()
|
long |
getSimTime()
|
String |
getState()
Name of the state Mover is currently in. |
cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject |
getStatic()
|
protected double |
getTime()
|
String |
getType()
String class of the mover. |
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
getVelocity()
Velocity vector. |
int |
hashCode()
|
boolean |
isDamageTrig()
True if the mover needs to be shot to be activated. |
boolean |
isIsMoving()
Does the mover move right now? |
boolean |
isReachable()
True if the bot can run here, false otherwise. |
boolean |
isVisible()
If the mover is in the field of view of the bot. |
protected void |
setTime(double time)
|
String |
toHtmlString()
|
String |
toString()
|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj)
|
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOTYPE
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
protected boolean Visible
protected boolean Reachable
protected boolean DamageTrig
protected String Type
protected boolean IsMoving
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity
protected double MoveTime
protected double OpenTime
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location BasePos
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location BaseRot
protected double DelayTime
protected String State
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId NavPointMarker
protected double Time
| Constructor Detail |
|---|
public Mover(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
boolean Visible,
boolean Reachable,
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.Reachable - True if the bot can run here, false otherwise.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 Mover(Mover original)
public Mover()
public Mover(Mover Original,
boolean Visible)
| Method Detail |
|---|
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
getId in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventgetId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectpublic cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocatedpublic boolean isVisible()
isVisible in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewablepublic boolean isReachable()
public boolean isDamageTrig()
public String getType()
public boolean isIsMoving()
public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
getVelocity in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotivepublic double getMoveTime()
public double getOpenTime()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getBasePos()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getBaseRot()
public double getDelayTime()
public String getState()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getNavPointMarker()
protected double getTime()
protected void setTime(double time)
public double getLastSeenTime()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject getLocal()
getLocal in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObjectpublic cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
getShared in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObjectpublic cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
getStatic in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObjectpublic long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic IGBWorldObjectDisappeared createDisappearEvent()
IGBViewable
createDisappearEvent in interface IGBViewablepublic cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj)
update in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventpublic cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject getObject()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||