test.zombiegame
Class Hunter
java.lang.Object
test.zombiegame.Hunter
public class Hunter
- extends java.lang.Object
Constructor Summary |
Hunter(double x,
double y,
double z)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLINCH
public static final int FLINCH
- See Also:
- Constant Field Values
MELEE
public static final int MELEE
- See Also:
- Constant Field Values
IDLE
public static final int IDLE
- See Also:
- Constant Field Values
JUMP
public static final int JUMP
- See Also:
- Constant Field Values
RUN
public static final int RUN
- See Also:
- Constant Field Values
RANGED
public static final int RANGED
- See Also:
- Constant Field Values
DIE
public static final int DIE
- See Also:
- Constant Field Values
BACKWARDS
public static final int BACKWARDS
- See Also:
- Constant Field Values
Hunter
public Hunter(double x,
double y,
double z)
walk
public void walk(double direction,
double speed)
strife
public void strife(double direction,
double speed)
move
public void move()
- Basic implementation. Simply animate the model
based on the state
getFrame
public int getFrame()
getState
public int getState()
setState
public void setState(int newState)
getX
public double getX()
setX
public void setX(double x)
getY
public double getY()
setY
public void setY(double y)
getZ
public double getZ()
setZ
public void setZ(double z)
getRotateX
public double getRotateX()
setRotateX
public void setRotateX(double rotateX)
getRotateY
public double getRotateY()
setRotateY
public void setRotateY(double rotateY)
getRotateZ
public double getRotateZ()
setRotateZ
public void setRotateZ(double rotateZ)
getScale
public double getScale()
setScale
public void setScale(double scale)
getModel
public java.lang.String getModel()
setModel
public void setModel(java.lang.String model)
getTexture
public java.lang.String getTexture()
setTexture
public void setTexture(java.lang.String texture)