|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jplay.GameObject
public class GameObject
The most basic class presents in the framework. Base class for almost all classes of this framework.
Field Summary | |
---|---|
int |
height
The height in pixels of the image. |
int |
width
The width in pixels of the image. |
double |
x
Image position on the screen. |
double |
y
Image position on the screen. |
Constructor Summary | |
---|---|
GameObject()
Create a GameObject positioned in the x =0, y=0, and its dimension is width = 0 and height = 0. |
Method Summary | |
---|---|
boolean |
collided(GameObject obj)
Method used for knowing if a GameObject collided with other GameObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double x
public double y
public int width
public int height
Constructor Detail |
---|
public GameObject()
Method Detail |
---|
public boolean collided(GameObject obj)
GameObject
- Target GameObject to verify if there was a collision.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |