|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DestroyableObject
Game objects that can be destroyed have to implement this interface.
| Method Summary | |
|---|---|
void |
destroy()
Calling this method will initiate the destruction of this object. |
int |
getHealth()
|
int |
getScorePoints()
|
void |
setHealth(int health)
|
| Methods inherited from interface moagg.model.object.MoaggGameObject |
|---|
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show |
| Method Detail |
|---|
int getHealth()
void setHealth(int health)
health - The new amount of health points to set for this object.void destroy()
int getScorePoints()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||