|
|||||||||
| 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.Mover
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverCompositeImpl
public class MoverCompositeImpl

Composite implementation of the MOV abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Mover |
|---|
Mover.MoverUpdate, Mover.ObjectDisappeared |
| Field Summary | |
|---|---|
protected MoverLocalImpl |
partLocal
|
protected MoverStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Mover |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
MoverCompositeImpl()
Parameter-less contructor for the message. |
|
MoverCompositeImpl(MoverCompositeImpl original)
Cloning constructor. |
|
MoverCompositeImpl(MoverLocalImpl partLocal,
MoverSharedImpl partShared,
MoverStaticImpl partStatic)
Composite-impl constructor. |
|
| 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()
|
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. |
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.Mover |
|---|
createDisappearEvent, getSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MoverStaticImpl partStatic
protected MoverLocalImpl partLocal
| Constructor Detail |
|---|
public MoverCompositeImpl()
public MoverCompositeImpl(MoverLocalImpl partLocal,
MoverSharedImpl partShared,
MoverStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic MoverCompositeImpl(MoverCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
Mover
setSimTime in class Moverpublic MoverStatic getStatic()
public MoverLocal getLocal()
public MoverShared getShared()
public UnrealId getId()
Mover
getId in interface IWorldObjectgetId in class Moverpublic Location getLocation()
Mover
getLocation in interface ILocatedgetLocation in class Moverpublic boolean isVisible()
Mover
isVisible in interface IViewableisVisible in class Moverpublic boolean isReachable()
Mover
isReachable in class Moverpublic boolean isDamageTrig()
Mover
isDamageTrig in class Moverpublic java.lang.String getType()
Mover
getType in class Moverpublic boolean isIsMoving()
Mover
isIsMoving in class Moverpublic Velocity getVelocity()
Mover
getVelocity in interface ILocomotivegetVelocity in class Moverpublic double getMoveTime()
Mover
getMoveTime in class Moverpublic double getOpenTime()
Mover
getOpenTime in class Moverpublic Location getBasePos()
Mover
getBasePos in class Moverpublic Location getBaseRot()
Mover
getBaseRot in class Moverpublic double getDelayTime()
Mover
getDelayTime in class Moverpublic java.lang.String getState()
Mover
getState in class Moverpublic UnrealId getNavPointMarker()
Mover
getNavPointMarker in class Moverpublic java.lang.String toString()
toString in class Moverpublic java.lang.String toHtmlString()
toHtmlString in class Mover
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||