vooga.examples.event.demo2
Class Zombie

java.lang.Object
  extended by vooga.examples.event.demo2.Zombie

public class Zombie
extends java.lang.Object

A Zombie character in the demo example. Zombie has the ability to get its position by calling getX and change its position by calling setX(int x) to set its x position.


Method Summary
 int getX()
          Get the x position of the zombie
 void setX(int x)
          Set the current x position of the zombie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getX

public int getX()
Get the x position of the zombie

Returns:
int Returns an integer which indicates the current position of a zombie

setX

public void setX(int x)
Set the current x position of the zombie

Parameters:
x - zombie's x position