|
|||||||||
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.MoverStatic cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStaticImpl
public class MoverStaticImpl
Implementation of the static part of the GameBots2004 message MOV.
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 | |
---|---|
static class |
MoverStaticImpl.MoverStaticUpdate
|
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 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 java.lang.String |
Type
String class of the mover. |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic |
---|
SimTime |
Constructor Summary | |
---|---|
MoverStaticImpl()
Parameter-less contructor for the message. |
|
MoverStaticImpl(Mover original)
Cloning constructor from the full message. |
|
MoverStaticImpl(MoverStatic original)
Cloning constructor from the message part. |
|
MoverStaticImpl(MoverStaticImpl original)
Cloning constructor from the full message. |
|
MoverStaticImpl(UnrealId Id,
boolean DamageTrig,
java.lang.String Type,
boolean IsMoving,
double MoveTime,
double OpenTime,
Location BasePos,
Location BaseRot,
double DelayTime,
UnrealId NavPointMarker)
Creates new instance of the message Mover. |
Method Summary | |
---|---|
MoverStaticImpl |
clone()
|
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. |
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. |
java.lang.String |
getType()
String class of the mover. |
boolean |
isDamageTrig()
True if the mover needs to be shot to be activated. |
boolean |
isIsMoving()
Does the mover move right now? |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected boolean DamageTrig
protected java.lang.String Type
protected boolean IsMoving
protected double MoveTime
protected double OpenTime
protected Location BasePos
protected Location BaseRot
protected double DelayTime
protected UnrealId NavPointMarker
Constructor Detail |
---|
public MoverStaticImpl()
public MoverStaticImpl(UnrealId Id, boolean DamageTrig, java.lang.String Type, boolean IsMoving, double MoveTime, double OpenTime, Location BasePos, Location BaseRot, double DelayTime, UnrealId NavPointMarker)
Id
- A unique Id of this mover assigned by the game.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?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).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 MoverStaticImpl(Mover original)
original
- public MoverStaticImpl(MoverStaticImpl original)
original
- public MoverStaticImpl(MoverStatic original)
original
- Method Detail |
---|
public void setSimTime(long SimTime)
MoverStatic
setSimTime
in class MoverStatic
public MoverStaticImpl clone()
clone
in class MoverStatic
public UnrealId getId()
getId
in interface IWorldObject
getId
in class MoverStatic
public boolean isDamageTrig()
isDamageTrig
in class MoverStatic
public java.lang.String getType()
getType
in class MoverStatic
public boolean isIsMoving()
isIsMoving
in class MoverStatic
public double getMoveTime()
getMoveTime
in class MoverStatic
public double getOpenTime()
getOpenTime
in class MoverStatic
public Location getBasePos()
getBasePos
in class MoverStatic
public Location getBaseRot()
getBaseRot
in class MoverStatic
public double getDelayTime()
getDelayTime
in class MoverStatic
public UnrealId getNavPointMarker()
getNavPointMarker
in class MoverStatic
public java.lang.String toString()
toString
in class MoverStatic
public java.lang.String toHtmlString()
toHtmlString
in class MoverStatic
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |