|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.Sprite
public class Sprite
| Field Summary | |
|---|---|
private java.awt.Image |
image
This is the image to be shown on the screen |
| Constructor Summary | |
|---|---|
Sprite(java.awt.Image image)
Sprite is the visual to be drawn on the screen. |
|
| Method Summary | |
|---|---|
void |
draw(int x,
int y,
java.awt.Graphics2D g)
|
int |
getHeight()
|
int |
getWidth()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.awt.Image image
| Constructor Detail |
|---|
public Sprite(java.awt.Image image)
image - | Method Detail |
|---|
public int getWidth()
public int getHeight()
public void draw(int x,
int y,
java.awt.Graphics2D g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||