cz.cuni.pogamut.MessageObjects
Class Mover

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.MessageObject
      extended by cz.cuni.pogamut.MessageObjects.Mover
All Implemented Interfaces:
Visible, java.io.Serializable, java.lang.Cloneable

public class Mover
extends MessageObject
implements java.io.Serializable, java.lang.Cloneable

A "mover".
These 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.
Can be delta message

See Also:
Serialized Form

Field Summary
 java.lang.String cls
          Class - Class of the mover.
 boolean damageTrig
          DamageTrig - true if the mover needs to be shot to activated.
 boolean isMoving
          isMoving - does mover move right now?
 Triple location
          Location - an absolute location
 boolean reachable
          Reachable - true if the bot can run here mover, false otherwise
 Triple velocity
          velovity - velocity vector
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
ID, type, types, UnrealID, visible
 
Constructor Summary
Mover()
           
Mover(java.lang.String UnrealID, int ID, boolean visible, Triple location, boolean reachable, boolean damageTrig, java.lang.String cls)
           
 
Method Summary
 java.lang.Object clone()
          clone object - for hard copying
 boolean hasID()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
diff, equals, getID, getType, getUnrealID, getVisibility, isVisible, setID, setType, setUnrealID, setVisible, update
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

location

public Triple location
Location - an absolute location


reachable

public boolean reachable
Reachable - true if the bot can run here mover, false otherwise


damageTrig

public boolean damageTrig
DamageTrig - true if the mover needs to be shot to activated.


cls

public java.lang.String cls
Class - Class of the mover.


isMoving

public boolean isMoving
isMoving - does mover move right now?


velocity

public Triple velocity
velovity - velocity vector

Constructor Detail

Mover

public Mover()

Mover

public Mover(java.lang.String UnrealID,
             int ID,
             boolean visible,
             Triple location,
             boolean reachable,
             boolean damageTrig,
             java.lang.String cls)
Method Detail

clone

public java.lang.Object clone()
Description copied from class: MessageObject
clone object - for hard copying

Overrides:
clone in class MessageObject

toString

public java.lang.String toString()
Overrides:
toString in class MessageObject

hasID

public boolean hasID()
Overrides:
hasID in class MessageObject