cz.cuni.amis.pogamut.defcon.communication.messages.infos
Class Fleet

Package class diagram package Fleet
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConObject
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConViewableObject
          extended by 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.


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConViewableObject
location, teamId, visible
 
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.
 
Method Summary
 int[] getFleetMembers()
          An array of fleet members.
 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.DefConViewableObject
getLocal, getLocation, getShared, getStatic, getStringizedFields, 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

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 -
Method Detail

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 © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.