public abstract class DefConObject extends Object implements cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
Constructor and Description |
---|
DefConObject(DefConObject original)
Creates a new DefConObject object.
|
DefConObject(int id,
UnitType type,
double time)
Creates new object with specified id and time
|
Modifier and Type | Method and Description |
---|---|
DefConObjectUpdate |
createDestroyedEvent()
Returns update-event for the current object.
|
DefConObjectUpdate |
createUpdateEvent()
Returns update-event for the current object.
|
boolean |
getDestroyed()
DOCUMENT ME!
|
cz.cuni.amis.pogamut.base.communication.worldview.object.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.
|
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!public cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId getId()
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
public UnitType getType()
public double getLastSeenTime()
protected void setLastSeenTime(double time)
time
- public long getSimTime()
getSimTime
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
public DefConObjectUpdate createUpdateEvent()
public DefConObjectUpdate createDestroyedEvent()
public boolean getDestroyed()
public String getStringizedFields()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.