|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjplay.GameObject
jplay.GameImage
public class GameImage
Class responsible for modeling an image.
Field Summary |
---|
Fields inherited from class jplay.GameObject |
---|
height, width, x, y |
Constructor Summary | |
---|---|
GameImage(java.lang.String fileName)
Class constructor, it loads an image. |
Method Summary | |
---|---|
void |
draw()
Draw an image on the screen. |
void |
loadImage(java.lang.String fileName)
This method loads an image. |
Methods inherited from class jplay.GameObject |
---|
collided |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameImage(java.lang.String fileName)
fileName
- path of the image and its name.loadImage(java.lang.String)
Method Detail |
---|
public void loadImage(java.lang.String fileName)
fileName
- path of the image and its name.public void draw()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |