|
||||||||||
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
cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConViewableObject
cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConUnitObject<T>
T
- DOCUMENT ME!public class DefConUnitObject<T extends IState>
DOCUMENT ME!
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConViewableObject |
---|
location, teamId, visible |
Constructor Summary | |
---|---|
DefConUnitObject(DefConUnitObject<T> original)
Creates a new DefConUnitObject object. |
|
DefConUnitObject(int id,
UnitType type,
int teamId,
DefConLocation location,
boolean visible,
T state,
int stateCount,
int target,
double time)
Construtor of DefConUnitObject. |
Method Summary | |
---|---|
T |
getState()
Gets current state of the object. |
int |
getStateCount()
Gets number of activations of this object's state. |
String |
getStringizedFields()
DOCUMENT ME! |
int |
getTarget()
Gets current target of this object. |
protected void |
setState(T state)
Sets current state of the object. |
protected void |
setStateCount(int stateCount)
Sets number of activations of this object's state. |
protected void |
setTarget(int target)
Sets current target of this object. |
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConViewableObject |
---|
getLocal, getLocation, getShared, getStatic, getTeamId, isVisible, setVisibility |
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConObject |
---|
createDestroyedEvent, createUpdateEvent, getDestroyed, getId, getLastSeenTime, getSimTime, getType, setLastSeenTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject |
---|
getId, getSimTime |
Constructor Detail |
---|
public DefConUnitObject(int id, UnitType type, int teamId, DefConLocation location, boolean visible, T state, int stateCount, int target, double time)
id
- type
- DOCUMENT ME!teamId
- DOCUMENT ME!location
- DOCUMENT ME!visible
- visibility of this objectstate
- observed state of UnitObjectstateCount
- DOCUMENT ME!target
- DOCUMENT ME!time
- public DefConUnitObject(DefConUnitObject<T> original)
original
- DOCUMENT ME!Method Detail |
---|
public T getState()
protected void setState(T state)
state
- public int getStateCount()
protected void setStateCount(int stateCount)
stateCount
- activationpublic int getTarget()
protected void setTarget(int target)
target
- public String getStringizedFields()
getStringizedFields
in class DefConViewableObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |