|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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<CarrierState> cz.cuni.amis.pogamut.defcon.communication.messages.infos.Carrier
public class Carrier
Carrier unit from the world.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConViewableObject |
---|
location, teamId, visible |
Constructor Summary | |
---|---|
Carrier(Carrier original)
Cloning constructor... |
|
Carrier(int id,
int teamId,
DefConLocation location,
boolean visible,
CarrierState state,
int stateCount,
int target,
int nukeSupply,
int fighterSupply,
int bomberSupply,
double time)
Creates new instance of object Carrier with specific id. |
Method Summary | |
---|---|
int |
getBomberSupply()
Number of bombers on airbase. |
int |
getFighterSupply()
Number of fighters on airbase. |
int |
getNukeSupply()
Number of nukes on airbase. |
String |
toHtmlString()
Returns message in html format. |
String |
toString()
Returns human readable serialization of the message. |
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConUnitObject |
---|
getState, getStateCount, getStringizedFields, getTarget, setState, setStateCount, setTarget |
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, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject |
---|
getId, getSimTime |
Constructor Detail |
---|
public Carrier(int id, int teamId, DefConLocation location, boolean visible, CarrierState state, int stateCount, int target, int nukeSupply, int fighterSupply, int bomberSupply, double time)
id
- Game id of this object.teamId
- Id of this object's team.location
- Location of this object.visible
- Visibility of this object.state
- DefCon state of this unit.stateCount
- Number of activations of current state on this unit.target
- Current target of this unit.nukeSupply
- Number of nukes on airbase.fighterSupply
- Number of fighters on airbase.bomberSupply
- Number of bombers on airbase.time
- Time of last update of this object (time of first spotting in this case).public Carrier(Carrier original)
original
- Method Detail |
---|
public int getNukeSupply()
public int getFighterSupply()
public int getBomberSupply()
public String toString()
toString
in class Object
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |