|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
cz.cuni.amis.pogamut.defcon.communication.messages.commands.PlaceFleet
public class PlaceFleet
Places a fleet of a specified type to a specified location.
Constructor Summary | |
---|---|
PlaceFleet(DefConLocation location,
UnitType[] ships)
Creates new instance of command PlaceFleet. |
|
PlaceFleet(PlaceFleet original)
Cloning constructor... |
Method Summary | |
---|---|
DefConLocation |
getLocation()
Target location of the new fleet. |
UnitType[] |
getShips()
List of ships to create. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor . |
PlaceFleet |
setLocation(DefConLocation location)
Target location of the new fleet. |
PlaceFleet |
setShips(UnitType[] ships)
List of ships to create. |
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.commands.DefConCommand |
---|
getStringizedFields, toMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlaceFleet(DefConLocation location, UnitType[] ships)
location
- Target location of the new fleet.ships
- List of ships to create.public PlaceFleet(PlaceFleet original)
original
- Method Detail |
---|
public DefConLocation getLocation()
public PlaceFleet setLocation(DefConLocation location)
location
-
public UnitType[] getShips()
public PlaceFleet setShips(UnitType[] ships)
ships
-
public void perform()
DefConCommandExecutor
.
perform
in class DefConCommand
public String toString()
toString
in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |