|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object WalkingDoll
public class WalkingDoll
Class that represents a walking doll
Constructor Summary | |
---|---|
WalkingDoll()
We'll do the list setup in the constructor |
Method Summary | |
---|---|
void |
draw()
Draw the current character |
int |
getX()
Method to get the x value of the position |
int |
getY()
Method to get the y value of the position |
static void |
main(String[] args)
Main for testing |
void |
replay(int delay)
Delegate replay |
void |
setLoc(int newX,
int newY)
Method to set the position to the new x and y |
void |
start()
Start a walking sequence |
void |
step()
Draw the next step |
void |
steps(int num)
Draw a few steps |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WalkingDoll()
Method Detail |
---|
public int getX()
public int getY()
public void setLoc(int newX, int newY)
newX
- the new x value to usenewY
- the new y value to usepublic void start()
public void draw()
public void step()
public void steps(int num)
public void replay(int delay)
public static void main(String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |