public class SwitchWeapon extends ProtocolZero
formatted, paramscan, priority
Constructor and Description |
---|
SwitchWeapon(weapon newwep) |
SwitchWeapon(weapon newwep,
long period) |
SwitchWeapon(weapon newwep,
long period,
long delay) |
SwitchWeapon(weapon newwep,
priority_t priority) |
SwitchWeapon(weapon newwep,
priority_t priority,
long period) |
SwitchWeapon(weapon newwep,
priority_t priority,
long period,
long delay) |
Modifier and Type | Method and Description |
---|---|
static int |
convertWeapon(weapon wep)
Used to format weapon request for server protocol.
|
int |
getAmmo()
Gets ammunition for newly switched-in weapon.
|
weapon |
getWeapon()
Gets equipped weapon (as far as this command's visibility knows).
|
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 SwitchWeapon(weapon newwep, priority_t priority)
public SwitchWeapon(weapon newwep)
public SwitchWeapon(weapon newwep, priority_t priority, long period)
public SwitchWeapon(weapon newwep, long period)
public SwitchWeapon(weapon newwep, priority_t priority, long period, long delay)
public SwitchWeapon(weapon newwep, long period, long delay)
protected void setOp()
setOp
in class ProtocolZero
public weapon getWeapon()
public int getAmmo()
public static int convertWeapon(weapon wep)
wep
- 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: