|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Initialize
public class Initialize
Representation of the GameBots2004 command INIT. Message you'll send at the beginning of the communication to create a bot in the game. You must send this message before you can have a character to play in the game.
Field Summary | |
---|---|
protected Boolean |
AutoPickupOff
It enables/disables automatic pickup of the bot. |
protected Boolean |
AutoTrace
Enables/disables auto ray tracing feature. |
protected String |
ClassName
Sets the Unreal Tournament class of the bot that should be used. |
protected Integer |
DesiredSkill
Can range from 0 to 7. |
protected String |
Jmx
Sets the jmx adress we can use to debug the bot from Java (if we are using Pogamut). |
protected Location |
Location
Specify start location, if unspecified, then random. |
protected Boolean |
ManualSpawn
Sets if the bot wil have tol be respawned after death manually by RESPAWN command. |
protected String |
Name
Desired name. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Rotation |
Rotation
Specify start rotation, if unspecified, then random. |
protected Boolean |
ShouldLeadTarget
When firing slow projectiles (missiles...), if the engine will try to count the impact point for the bot or not (when shooting at moving targets). |
protected String |
Skin
Sets the bot current skin (e.g. |
protected Integer |
Team
Preferred team. |
Constructor Summary | |
---|---|
Initialize()
Creates new instance of command Initialize. |
|
Initialize(Initialize original)
Cloning constructor. |
|
Initialize(String Name,
Integer Team,
Boolean ManualSpawn,
Boolean AutoTrace,
Location Location,
Rotation Rotation,
String Skin,
Integer DesiredSkill,
Boolean ShouldLeadTarget,
Boolean AutoPickupOff,
String Jmx,
String ClassName)
Creates new instance of command Initialize. |
Method Summary | |
---|---|
String |
getClassName()
Sets the Unreal Tournament class of the bot that should be used. |
Integer |
getDesiredSkill()
Can range from 0 to 7. |
String |
getJmx()
Sets the jmx adress we can use to debug the bot from Java (if we are using Pogamut). |
Location |
getLocation()
Specify start location, if unspecified, then random. |
String |
getName()
Desired name. |
Rotation |
getRotation()
Specify start rotation, if unspecified, then random. |
String |
getSkin()
Sets the bot current skin (e.g. |
Integer |
getTeam()
Preferred team. |
Boolean |
isAutoPickupOff()
It enables/disables automatic pickup of the bot. |
Boolean |
isAutoTrace()
Enables/disables auto ray tracing feature. |
Boolean |
isManualSpawn()
Sets if the bot wil have tol be respawned after death manually by RESPAWN command. |
Boolean |
isShouldLeadTarget()
When firing slow projectiles (missiles...), if the engine will try to count the impact point for the bot or not (when shooting at moving targets). |
Initialize |
setAutoPickupOff(Boolean AutoPickupOff)
It enables/disables automatic pickup of the bot. |
Initialize |
setAutoTrace(Boolean AutoTrace)
Enables/disables auto ray tracing feature. |
Initialize |
setClassName(String ClassName)
Sets the Unreal Tournament class of the bot that should be used. |
Initialize |
setDesiredSkill(Integer DesiredSkill)
Can range from 0 to 7. |
Initialize |
setJmx(String Jmx)
Sets the jmx adress we can use to debug the bot from Java (if we are using Pogamut). |
Initialize |
setLocation(Location Location)
Specify start location, if unspecified, then random. |
Initialize |
setManualSpawn(Boolean ManualSpawn)
Sets if the bot wil have tol be respawned after death manually by RESPAWN command. |
Initialize |
setName(String Name)
Desired name. |
Initialize |
setRotation(Rotation Rotation)
Specify start rotation, if unspecified, then random. |
Initialize |
setShouldLeadTarget(Boolean ShouldLeadTarget)
When firing slow projectiles (missiles...), if the engine will try to count the impact point for the bot or not (when shooting at moving targets). |
Initialize |
setSkin(String Skin)
Sets the bot current skin (e.g. |
Initialize |
setTeam(Integer Team)
Preferred team. |
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 String Name
protected Integer Team
protected Boolean ManualSpawn
protected Boolean AutoTrace
protected Location Location
protected Rotation Rotation
protected String Skin
protected Integer DesiredSkill
protected Boolean ShouldLeadTarget
protected Boolean AutoPickupOff
protected String Jmx
protected String ClassName
Constructor Detail |
---|
public Initialize(String Name, Integer Team, Boolean ManualSpawn, Boolean AutoTrace, Location Location, Rotation Rotation, String Skin, Integer DesiredSkill, Boolean ShouldLeadTarget, Boolean AutoPickupOff, String Jmx, String ClassName)
Name
- Desired name.Team
- Preferred team. If illegal or no team provided, one will be
provided for you. Normally a team game has team 0 and team
1. In BotDeathMatch, team is meaningless.ManualSpawn
- Sets if the bot wil have tol be respawned after death
manually by RESPAWN command. If false, the bot will respawn
automatically.AutoTrace
- Enables/disables auto ray tracing feature.Location
- Specify start location, if unspecified, then random.Rotation
- Specify start rotation, if unspecified, then random.Skin
- Sets the bot current skin (e.g. "HumanMaleA.MercMaleA").
Find all packages and skins through unrealEd (Actor browser,
search in UT2004/Animations folder). Supported bot skins are
Aliens (Aliens.), Bots (Bot.), human males (HumanMaleA.),
human females (HumanFemaleA. ), juggernauts (Jugg.). Skaarj
skins are not supported at the time being.DesiredSkill
- Can range from 0 to 7. This sets the bot accuracy. 1 lowest,
7 highest. Shouldn't have any other effect.ShouldLeadTarget
- When firing slow projectiles (missiles...), if the engine
will try to count the impact point for the bot or not (when
shooting at moving targets).AutoPickupOff
- It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.Jmx
- Sets the jmx adress we can use to debug the bot from Java (if we are using Pogamut).ClassName
- Sets the Unreal Tournament class of the bot that should be used. By default leave it blank. In UnrealRuntime2 it may be used to spawn bots of different class,
see CharacterType class in project PogamutEmohawk project.public Initialize()
public Initialize(Initialize original)
original
- Method Detail |
---|
public String getName()
public Initialize setName(String Name)
public Integer getTeam()
public Initialize setTeam(Integer Team)
public Boolean isManualSpawn()
public Initialize setManualSpawn(Boolean ManualSpawn)
public Boolean isAutoTrace()
public Initialize setAutoTrace(Boolean AutoTrace)
public Location getLocation()
public Initialize setLocation(Location Location)
public Rotation getRotation()
public Initialize setRotation(Rotation Rotation)
public String getSkin()
public Initialize setSkin(String Skin)
public Integer getDesiredSkill()
public Initialize setDesiredSkill(Integer DesiredSkill)
public Boolean isShouldLeadTarget()
public Initialize setShouldLeadTarget(Boolean ShouldLeadTarget)
public Boolean isAutoPickupOff()
public Initialize setAutoPickupOff(Boolean AutoPickupOff)
public String getJmx()
public Initialize setJmx(String Jmx)
public String getClassName()
public Initialize setClassName(String ClassName)
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 |