public class NetworkInput
extends InputDevice
stores state of a device (FIXME REMOVE CLIENTID?) to be sent over network
Constructor and Description |
---|
NetworkInput(Vec movementVec,
Vec aimingVec,
float leftTrigger,
float rightTrigger,
boolean A,
int clientId)
stores state of a device (FIXME REMOVE CLIENTID?)
to be sent over network
|
NetworkInput()
stores state of a device (FIXME REMOVE CLIENTID?)
to be sent over network
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(InputDevice other) |
void |
copyTo(NetworkInput other) |
boolean |
getA() |
Vec |
getAimingVec() |
boolean |
getB() |
int |
getClientId() |
boolean |
getLeftBumper() |
float |
getLeftTrigger() |
Vec |
getMovementVec() |
boolean |
getRightBumper() |
float |
getRightTrigger() |
boolean |
getX() |
boolean |
getY() |
void |
setA(boolean p) |
void |
setAimingVec(Vec p) |
void |
setLeftTrigger(float p) |
void |
setMovementVec(Vec p) |
void |
setRightTrigger(float p) |
getA, getAimingVec, getB, getEntity, getFire, getLeftBumper, getLeftStick, getLeftTrigger, getMovementVec, getRightBumper, getRightStick, getRightTrigger, getX, getY, rumble, setEntity
public NetworkInput(Vec movementVec, Vec aimingVec, float leftTrigger, float rightTrigger, boolean A, int clientId)
stores state of a device (FIXME REMOVE CLIENTID?) to be sent over network
public NetworkInput()
stores state of a device (FIXME REMOVE CLIENTID?) to be sent over network
public boolean getB()
public boolean getX()
public boolean getY()
public boolean getLeftBumper()
public boolean getRightBumper()
public void copyTo(NetworkInput other)
public void copyFrom(InputDevice other)
public Vec getMovementVec()
public void setMovementVec(Vec p)
public Vec getAimingVec()
public void setAimingVec(Vec p)
public float getLeftTrigger()
public void setLeftTrigger(float p)
public float getRightTrigger()
public void setRightTrigger(float p)
public boolean getA()
public void setA(boolean p)
public int getClientId()