cz.cuni.amis.pogamut.defcon.communication.messages.infos
Class Fleet
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.Fleet
- All Implemented Interfaces:
- IWorldObject, ILocated, IViewable, ICompositeWorldObject
public class Fleet
- extends DefConViewableObject
Fleet object from the world.
Constructor Summary |
Fleet(Fleet original)
Cloning constructor... |
Fleet(int id,
int teamId,
DefConLocation location,
boolean visible,
int[] fleetMembers,
double time)
Creates new instance of object Fleet with specific id. |
Fleet
public Fleet(int id,
int teamId,
DefConLocation location,
boolean visible,
int[] fleetMembers,
double time)
- Creates new instance of object Fleet with specific id.
Fleet object 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.fleetMembers
- An array of fleet members.time
- Time of last update of this object (time of first spotting in this case).
Fleet
public Fleet(Fleet original)
- Cloning constructor...
- Parameters:
original
-
getFleetMembers
public int[] getFleetMembers()
- An array of fleet members.
- 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 © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.