|
||||||||||
| 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.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 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,
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. |
String |
getType()
String class of the mover. |
boolean |
isDamageTrig()
True if the mover needs to be shot to be activated. |
boolean |
isDifferentFrom(IStaticWorldObject other)
|
boolean |
isIsMoving()
Does the mover move right now? |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic |
|---|
getCompositeClass, getSimTime |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| 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 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,
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 MoverStaticpublic MoverStaticImpl clone()
clone in class MoverStaticpublic UnrealId getId()
getId in interface IWorldObjectgetId in class MoverStaticpublic boolean isDamageTrig()
isDamageTrig in class MoverStaticpublic String getType()
getType in class MoverStaticpublic boolean isIsMoving()
isIsMoving in class MoverStaticpublic double getMoveTime()
getMoveTime in class MoverStaticpublic double getOpenTime()
getOpenTime in class MoverStaticpublic Location getBasePos()
getBasePos in class MoverStaticpublic Location getBaseRot()
getBaseRot in class MoverStaticpublic double getDelayTime()
getDelayTime in class MoverStaticpublic UnrealId getNavPointMarker()
getNavPointMarker in class MoverStaticpublic boolean isDifferentFrom(IStaticWorldObject other)
isDifferentFrom in interface IStaticWorldObjectisDifferentFrom in class MoverStaticpublic String toString()
toString in class MoverStaticpublic String toHtmlString()
toHtmlString in class MoverStatic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||