|
||||||||||
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.PlaceStructure
public class PlaceStructure
Places a structure of a specified type to a specified location.
Constructor Summary | |
---|---|
PlaceStructure(int typeId,
DefConLocation location)
Creates new instance of command PlaceStructure. |
|
PlaceStructure(PlaceStructure original)
Cloning constructor... |
Method Summary | |
---|---|
DefConLocation |
getLocation()
Target location of the structure. |
int |
getTypeId()
Id of unit to set target of. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor . |
PlaceStructure |
setLocation(DefConLocation location)
Target location of the structure. |
PlaceStructure |
setTypeId(int typeId)
Id of unit to set target of. |
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 PlaceStructure(int typeId, DefConLocation location)
typeId
- Id of unit to set target of.location
- Target location of the structure.public PlaceStructure(PlaceStructure original)
original
- Method Detail |
---|
public int getTypeId()
public PlaceStructure setTypeId(int typeId)
typeId
-
public DefConLocation getLocation()
public PlaceStructure setLocation(DefConLocation location)
location
-
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 |