|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MoaggGameObject
Common interface that all game objects must implement.
Method Summary | |
---|---|
int |
getHeight()
|
int |
getID()
|
Rectangle |
getPositionRectangle()
|
Vector |
getSpeed()
|
int |
getWidth()
|
double |
getX()
|
double |
getY()
|
void |
hide()
Calling this method hides this object. |
boolean |
isVisible()
|
void |
setID(int id)
|
void |
setSpeed(double vx,
double vy)
|
void |
setSpeed(Vector speed)
|
void |
setX(double x)
|
void |
setY(double y)
|
void |
show()
Calling this method makes this object visible. |
Method Detail |
---|
void setID(int id)
int getID()
void setX(double x)
double getX()
void setY(double y)
double getY()
int getWidth()
int getHeight()
Rectangle getPositionRectangle()
void setSpeed(Vector speed)
void setSpeed(double vx, double vy)
Vector getSpeed()
boolean isVisible()
void show()
void hide()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |