public class City extends DefConViewableObject
location, teamId, visible
Constructor and Description |
---|
City(City original)
Cloning constructor...
|
City(int id,
int teamId,
DefConLocation location,
boolean visible,
int population,
double time)
Creates new instance of object City with specific id.
|
Modifier and Type | Method and Description |
---|---|
int |
getPopulation()
Number of surviving inhabitants in millions.
|
String |
toHtmlString()
Returns message in html format.
|
String |
toString()
Returns human readable serialization of the message.
|
getLocal, getLocation, getShared, getStatic, getStringizedFields, getTeamId, isVisible, setVisibility
createDestroyedEvent, createUpdateEvent, getDestroyed, getId, getLastSeenTime, getSimTime, getType, setLastSeenTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getSimTime
public City(int id, int teamId, DefConLocation location, boolean visible, int population, 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.population
- Number of surviving inhabitants in millions.time
- Time of last update of this object (time of first spotting in this case).public City(City original)
original
- Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.