cz.cuni.amis.pogamut.defcon.communication.messages.infos
Class Silo
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<SiloState>
cz.cuni.amis.pogamut.defcon.communication.messages.infos.Silo
- All Implemented Interfaces:
- IWorldObject, ILocated, IViewable, ICompositeWorldObject
public class Silo
- extends DefConUnitObject<SiloState>
Silo unit from the world.
Constructor Summary |
Silo(int id,
int teamId,
DefConLocation location,
boolean visible,
SiloState state,
int stateCount,
int target,
int nukeSupply,
double time)
Creates new instance of object Silo with specific id. |
Silo(Silo original)
Cloning constructor... |
Silo
public Silo(int id,
int teamId,
DefConLocation location,
boolean visible,
SiloState state,
int stateCount,
int target,
int nukeSupply,
double time)
- Creates new instance of object Silo with specific id.
Silo unit from the world.
- Parameters:
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 silo.time
- Time of last update of this object (time of first spotting in this case).
Silo
public Silo(Silo original)
- Cloning constructor...
- Parameters:
original
-
getNukeSupply
public int getNukeSupply()
- Number of nukes inside the silo.
- Returns:
- int
toString
public String toString()
- Returns human readable serialization of the message.
- Overrides:
toString
in class Object
- Returns:
- human readable string
toHtmlString
public String toHtmlString()
- Returns message in html format.
- Returns:
- html message
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.