|
||||||||||
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.ut2004.communication.messages.gbcommands.SpawnActor
public class SpawnActor
Representation of the GameBots2004 command SPAWNACTOR. Will spawn an actor in the game specified by Type (holds the class of the actor). Be carefull with what you spawn and where you spawn it. Possible use - for some additional inventory spawns.
Field Summary | |
---|---|
protected Location |
Location
Location where the actor will be spawned. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Rotation |
Rotation
Initial rotation of the actor. |
protected String |
Type
Holds the desired actor class (e.g. |
Constructor Summary | |
---|---|
SpawnActor()
Creates new instance of command SpawnActor. |
|
SpawnActor(Location Location,
Rotation Rotation,
String Type)
Creates new instance of command SpawnActor. |
|
SpawnActor(SpawnActor original)
Cloning constructor. |
Method Summary | |
---|---|
Location |
getLocation()
Location where the actor will be spawned. |
Rotation |
getRotation()
Initial rotation of the actor. |
String |
getType()
Holds the desired actor class (e.g. |
SpawnActor |
setLocation(Location Location)
Location where the actor will be spawned. |
SpawnActor |
setRotation(Rotation Rotation)
Initial rotation of the actor. |
SpawnActor |
setType(String Type)
Holds the desired actor class (e.g. |
String |
toHtmlString()
|
String |
toMessage()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROTOTYPE
protected Location Location
protected Rotation Rotation
protected String Type
Constructor Detail |
---|
public SpawnActor(Location Location, Rotation Rotation, String Type)
Location
- Location where the actor will be spawned.Rotation
- Initial rotation of the actor.Type
- Holds the desired actor class (e.g.
xWeapons.FlakCannonPickup).public SpawnActor()
public SpawnActor(SpawnActor original)
original
- Method Detail |
---|
public Location getLocation()
public SpawnActor setLocation(Location Location)
public Rotation getRotation()
public SpawnActor setRotation(Rotation Rotation)
public String getType()
public SpawnActor setType(String Type)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |