vooga.examples.event.demo2
Class Human

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

public class Human
extends java.lang.Object

A Human character in the demo example. A human 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 human
 void setX(int x)
          Set the current x position of the human
 
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 human

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

setX

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

Parameters:
x - human's x position