public class SetArmor extends ProtocolZero
Modifier and Type | Field and Description |
---|---|
static int |
ALLBOTS |
formatted, paramscan, priority
Constructor and Description |
---|
SetArmor(int newarmor)
Sets all bots armor to armor
|
SetArmor(int qid,
int newarmor) |
Modifier and Type | Method and Description |
---|---|
int |
getNewArmor() |
int |
getQID() |
void |
setData(java.lang.String params)
Sets command response data.
|
protected void |
setOp() |
getPriority, hasTerminated, pause, resume, run, setExecutor, terminate, update
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, toDataString, toString, verifyClient, waitForTerminate, whatAmI
public static final int ALLBOTS
public SetArmor(int qid, int newarmor)
public SetArmor(int newarmor)
newarmor
- New armor value for all Quagents to assume.public void setData(java.lang.String params)
ProtocolZero
setData
in class ProtocolZero
params
- Data string. For all "data" messages it is identified by the form:
protected void setOp()
setOp
in class ProtocolZero
public int getQID()
public int getNewArmor()