|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGameObject
Interface for game objects. Each game object can be drawn on the screen, tested for exit from the screen and tested for collisions with other game objects.
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D graphics,
Point scale)
Draws this object on the given graphics context at the given scale. |
boolean |
isExitingScreen()
Tests whether this object is exiting the screen. |
boolean |
isOverlapping(IGameObject object)
Tests whether or not this object is overlapping the given object. |
void |
onCreate(IGame game)
Called when the object is added to the game. |
| Method Detail |
|---|
void draw(java.awt.Graphics2D graphics,
Point scale)
graphics - The graphics context on which to draw the object.scale - The scale at which to draw the object.boolean isOverlapping(IGameObject object)
object - The object to test for overlap with.
boolean isExitingScreen()
void onCreate(IGame game)
game - The game that the object is being added to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||