|
|||||||||
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 Location |
BasePos
Base position of the mover. |
protected 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 UnrealId |
Id
A unique Id of this mover assigned by the game. |
protected boolean |
IsMoving
Does the mover move right now? |
protected Location |
Location
Location of the mover. |
protected double |
MoveTime
How long the mover moves, when it becomes triggered, before it stops. |
protected UnrealId |
NavPointMarker
Navigation point marking this mover. |
protected double |
OpenTime
How long the mover stands still when it reaches its destination position. |
protected boolean |
Reachable
True if the bot can run here, false otherwise. |
protected java.lang.String |
State
Name of the state Mover is currently in. |
protected ITeamId |
TeamId
|
protected java.lang.String |
Type
String class of the mover. |
protected Velocity |
Velocity
Velocity vector. |
protected boolean |
Visible
If the mover is in the field of view of the bot. |
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 Reachable,
boolean DamageTrig,
java.lang.String Type,
boolean IsMoving,
Velocity Velocity,
double MoveTime,
double OpenTime,
Location BasePos,
Location BaseRot,
double DelayTime,
java.lang.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()
|
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()
|
java.lang.String |
getState()
Name of the state Mover is currently in. |
MoverStatic |
getStatic()
|
ITeamId |
getTeamId()
|
java.lang.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 |
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 |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(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 ITeamId TeamId
protected UnrealId Id
protected Location Location
protected boolean Visible
protected boolean Reachable
protected boolean DamageTrig
protected java.lang.String Type
protected boolean IsMoving
protected Velocity Velocity
protected double MoveTime
protected double OpenTime
protected Location BasePos
protected Location BaseRot
protected double DelayTime
protected java.lang.String State
protected UnrealId NavPointMarker
Constructor Detail |
---|
public MoverMessage()
public MoverMessage(UnrealId Id, Location Location, boolean Visible, boolean Reachable, boolean DamageTrig, java.lang.String Type, boolean IsMoving, Velocity Velocity, double MoveTime, double OpenTime, Location BasePos, Location BaseRot, double DelayTime, java.lang.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.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 MoverMessage(MoverMessage original)
original
- Method Detail |
---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
Mover
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in class Mover
public Location getLocation()
Mover
getLocation
in interface ILocated
getLocation
in class Mover
public boolean isVisible()
Mover
isVisible
in interface IViewable
isVisible
in class Mover
public boolean isReachable()
Mover
isReachable
in class Mover
public boolean isDamageTrig()
Mover
isDamageTrig
in class Mover
public java.lang.String getType()
Mover
getType
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 java.lang.String getState()
Mover
getState
in class 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 java.lang.String toString()
toString
in class Mover
public java.lang.String toHtmlString()
toHtmlString
in class Mover
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |