|
|||||||||
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
public abstract class Mover
Abstract definition 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 |
Mover.MoverUpdate
|
static class |
Mover.ObjectDisappeared
|
Field Summary | |
---|---|
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected long |
SimTime
|
Constructor Summary | |
---|---|
Mover()
Parameter-less contructor for the message. |
Method Summary | |
---|---|
IWorldObjectUpdatedEvent |
createDisappearEvent()
Creates an update event that has to update visibility to false. |
abstract Location |
getBasePos()
Base position of the mover. |
abstract Location |
getBaseRot()
Base rotation of the mover. |
abstract double |
getDelayTime()
Delay before starting to open (or before lift starts to move). |
abstract UnrealId |
getId()
A unique Id of this mover assigned by the game. |
abstract Location |
getLocation()
Location of the mover. |
abstract double |
getMoveTime()
How long the mover moves, when it becomes triggered, before it stops. |
abstract UnrealId |
getNavPointMarker()
Navigation point marking this mover. |
abstract double |
getOpenTime()
How long the mover stands still when it reaches its destination position. |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
abstract java.lang.String |
getState()
Name of the state Mover is currently in. |
abstract java.lang.String |
getType()
String class of the mover. |
abstract Velocity |
getVelocity()
Velocity vector. |
abstract boolean |
isDamageTrig()
True if the mover needs to be shot to be activated. |
abstract boolean |
isIsMoving()
Does the mover move right now? |
abstract boolean |
isReachable()
True if the bot can run here, false otherwise. |
abstract boolean |
isVisible()
If the mover is in the field of view of the bot. |
protected 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject |
---|
getLocal, getShared, getStatic |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected long SimTime
Constructor Detail |
---|
public Mover()
Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in interface IWorldObject
protected void setSimTime(long SimTime)
public abstract UnrealId getId()
getId
in interface IWorldObject
public abstract Location getLocation()
getLocation
in interface ILocated
public abstract boolean isVisible()
isVisible
in interface IViewable
public abstract boolean isReachable()
public abstract boolean isDamageTrig()
public abstract java.lang.String getType()
public abstract boolean isIsMoving()
public abstract Velocity getVelocity()
getVelocity
in interface ILocomotive
public abstract double getMoveTime()
public abstract double getOpenTime()
public abstract Location getBasePos()
public abstract Location getBaseRot()
public abstract double getDelayTime()
public abstract java.lang.String getState()
public abstract UnrealId getNavPointMarker()
public IWorldObjectUpdatedEvent createDisappearEvent()
IGBViewable
createDisappearEvent
in interface IGBViewable
public java.lang.String toString()
toString
in class InfoMessage
public java.lang.String toHtmlString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |