Modifier and Type | Method and Description |
---|---|
void |
addEventListener(QEventListener list)
Adds an event listener to the Quagent.
|
void |
botfile(java.lang.String filename)
This function specifies the botfile for the Quagent.
|
QEventListener |
getEventListener()
Returns attached event listener.
|
int |
getQuagentID()
Returns Quagent's assigned entity ID.
|
void |
initialPosition(double x,
double y,
double z)
Sets the initial spawn position of the bot.
|
void |
name(java.lang.String name)
This function specifies the Quagent's name.
|
void |
password(java.lang.String password)
Sets the password of the bot's datastream socket.
|
void |
ready()
This function indicates that that the user has finished setting all
initial parameters and is ready to start the main phase of Quagents.
|
void |
setQuagentID(int id)
Sets the Quagent's ID number, as assigned by game engine.
|
void |
skill(int skill)
Sets the skill level of the bot, which selects subsections from the botfiles.
|
void |
team(team t)
This function specifies the Quagent's team.
|
addCommandToRunning, addEventListener, execute, getRunningList, getWriter, incrementCommandID, isQuagent, notifyCommandTerminationListener, removeCommandFromRunning, start, waitForTerminate
void addEventListener(QEventListener list)
list
- QEventListener to add.QEventListener getEventListener()
void setQuagentID(int id)
id
- Quagent's Quake entity id.int getQuagentID()
void ready() throws java.io.IOException
java.io.IOException
void name(java.lang.String name) throws java.io.IOException
name
- The Quagent's desired namejava.io.IOException
void team(team t) throws java.io.IOException
t
- The Quagent's desired team.java.io.IOException
enumerated type
void botfile(java.lang.String filename) throws java.io.IOException
filename
- The filename for the botfile.java.io.IOException
void skill(int skill) throws java.io.IOException
skill
- The bot's skill level.java.io.IOException
void password(java.lang.String password) throws java.io.IOException
password
- Password to be used.java.io.IOException
void initialPosition(double x, double y, double z) throws java.io.IOException
x
- The x coordinate of the initial position.y
- The y coordinate of the initial position.z
- The z coordinate of the initial position.java.io.IOException