public class Sub extends DefConUnitObject<SubState>
location, teamId, visible
Constructor and Description |
---|
Sub(int id,
int teamId,
DefConLocation location,
boolean visible,
SubState state,
int stateCount,
int target,
int nukeSupply,
double time)
Creates new instance of object Sub with specific id.
|
Sub(Sub original)
Cloning constructor...
|
Modifier and Type | Method and Description |
---|---|
int |
getNukeSupply()
Number of nukes inside the submarine.
|
String |
toHtmlString()
Returns message in html format.
|
String |
toString()
Returns human readable serialization of the message.
|
getState, getStateCount, getStringizedFields, getTarget, setState, setStateCount, setTarget
getLocal, getLocation, getShared, getStatic, getTeamId, isVisible, setVisibility
createDestroyedEvent, createUpdateEvent, getDestroyed, getId, getLastSeenTime, getSimTime, getType, setLastSeenTime
public Sub(int id, int teamId, DefConLocation location, boolean visible, SubState state, int stateCount, int target, int nukeSupply, 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 inside the submarine.time
- Time of last update of this object (time of first spotting in this case).public Sub(Sub original)
original
- Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.