|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.examples.event.demo2.Human
public class Human
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 |
---|
public int getX()
public void setX(int x)
x
- human's x position
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |