|
||||||||||
| 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
public abstract class DefConViewableObject
Viewable version of the DefConObject - implements IViewable providing a way
to tell whether the object is visible on the map.
| Field Summary | |
|---|---|
protected DefConLocation |
location
Contains location of this object. |
protected int |
teamId
Contains the id of this object's team. |
protected boolean |
visible
Holds the information whether the object is visible on the map. |
| Constructor Summary | |
|---|---|
DefConViewableObject(DefConViewableObject original)
Creates a new DefConViewableObject object. |
|
DefConViewableObject(int id,
UnitType type,
int teamId,
DefConLocation location,
boolean visible,
double time)
Creates new instance of message DefConViewAbleObject with specific id. |
|
| Method Summary | |
|---|---|
ILocalWorldObject |
getLocal()
DOCUMENT ME! |
DefConLocation |
getLocation()
Returns locations of this object. |
ISharedWorldObject |
getShared()
DOCUMENT ME! |
IStaticWorldObject |
getStatic()
DOCUMENT ME! |
String |
getStringizedFields()
DOCUMENT ME! |
int |
getTeamId()
Returns team id of this object. |
boolean |
isVisible()
Is the object visible on the DefCon map? |
protected boolean |
setVisibility(boolean visible)
Sets the visibility of this object. |
| 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 |
| Field Detail |
|---|
protected boolean visible
protected DefConLocation location
protected int teamId
| Constructor Detail |
|---|
public DefConViewableObject(int id,
UnitType type,
int teamId,
DefConLocation location,
boolean visible,
double time)
id - type - DOCUMENT ME!teamId - DOCUMENT ME!location - DOCUMENT ME!visible - visibility of this objecttime - public DefConViewableObject(DefConViewableObject original)
original - DOCUMENT ME!| Method Detail |
|---|
public boolean isVisible()
isVisible in interface IViewableprotected boolean setVisibility(boolean visible)
visible -
public int getTeamId()
public DefConLocation getLocation()
getLocation in interface ILocatedpublic String getStringizedFields()
getStringizedFields in class DefConObjectpublic ILocalWorldObject getLocal()
getLocal in interface ICompositeWorldObjectpublic ISharedWorldObject getShared()
getShared in interface ICompositeWorldObjectpublic IStaticWorldObject getStatic()
getStatic in interface ICompositeWorldObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||