test.zombiegame
Class Zombie
java.lang.Object
test.zombiegame.Zombie
public class Zombie
- extends java.lang.Object
Constructor Summary |
Zombie(double x,
double y,
double z)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TWITCH
public static final int TWITCH
- See Also:
- Constant Field Values
PUNCH
public static final int PUNCH
- See Also:
- Constant Field Values
KICK
public static final int KICK
- See Also:
- Constant Field Values
WALK2
public static final int WALK2
- See Also:
- Constant Field Values
WALK1
public static final int WALK1
- See Also:
- Constant Field Values
HEADBUTT
public static final int HEADBUTT
- See Also:
- Constant Field Values
DIE
public static final int DIE
- See Also:
- Constant Field Values
ATTACKED2
public static final int ATTACKED2
- See Also:
- Constant Field Values
ATTACKED1
public static final int ATTACKED1
- See Also:
- Constant Field Values
IDLE1
public static final int IDLE1
- See Also:
- Constant Field Values
BLOWNED
public static final int BLOWNED
- See Also:
- Constant Field Values
IDLE2
public static final int IDLE2
- See Also:
- Constant Field Values
Zombie
public Zombie(double x,
double y,
double z)
walk
public void walk(double direction)
randomWalk
public void randomWalk()
move
public void move()
- Basic implementation. Simply animate the model
based on the state
setState
public void setState(int newState)
getState
public int getState()
isDead
public boolean isDead()
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)