|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.WorldLibAndroid.Demo.ShapeObj
public class ShapeObj
The class that will hold the type of figure.
Method Summary | |
---|---|
void |
draw(ICanvas c)
is the blob near the center of area given by the WIDTH and HEIGHT |
void |
moveAtOrient(int x,
int y)
Moves the blob using the orientation sensor. |
void |
moveAtTilt(int x,
int y)
Moves the blob using the acceleration sensor (when tilting the device). |
void |
moveAtTouch(int x,
int y)
Moves the blob when touching the screen. |
void |
moveBlob(int ke)
Places the blob certain amount of pixels to the left, right, up or down. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void moveBlob(int ke)
ke
- the integer representing the key pressed.public void moveAtTouch(int x, int y)
x
- coordinate to move the object to.y
- coordinate to move the object to.public void moveAtTilt(int x, int y)
x
- coordinate to move the object to.y
- coordinate to move the object to.public void moveAtOrient(int x, int y)
x
- coordinate to move the object to.y
- coordinate to move the object to.public void draw(ICanvas c)
c
- object canvas.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |