|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConObject
public abstract class DefConObject
World object message of arbitrary world that is run in the same JVM.
Constructor Summary | |
---|---|
DefConObject(DefConObject original)
Creates a new DefConObject object. |
|
DefConObject(int id,
UnitType type,
double time)
Creates new object with specified id and time |
Method Summary | |
---|---|
DefConObjectUpdate |
createDestroyedEvent()
Returns update-event for the current object. |
DefConObjectUpdate |
createUpdateEvent()
Returns update-event for the current object. |
boolean |
getDestroyed()
DOCUMENT ME! |
WorldObjectId |
getId()
Returns ID of the object. |
double |
getLastSeenTime()
Returns the time of the last update of the object. |
long |
getSimTime()
DOCUMENT ME! |
String |
getStringizedFields()
DOCUMENT ME! |
UnitType |
getType()
Returns type of this object. |
protected void |
setLastSeenTime(double time)
Sets the last-seen-time of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefConObject(int id, UnitType type, double time)
id
- id set to the objecttype
- type of the unittime
- time set to the objectpublic DefConObject(DefConObject original)
original
- DOCUMENT ME!Method Detail |
---|
public WorldObjectId getId()
getId
in interface IWorldObject
public UnitType getType()
public double getLastSeenTime()
protected void setLastSeenTime(double time)
time
- public long getSimTime()
getSimTime
in interface IWorldObject
public DefConObjectUpdate createUpdateEvent()
public DefConObjectUpdate createDestroyedEvent()
public boolean getDestroyed()
public String getStringizedFields()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |