jplay
Class GameImage

java.lang.Object
  extended by jplay.GameObject
      extended by jplay.GameImage
Direct Known Subclasses:
Animation

public class GameImage
extends GameObject

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

GameImage

public GameImage(java.lang.String fileName)
Class constructor, it loads an image.

Parameters:
fileName - path of the image and its name.
See Also:
loadImage(java.lang.String)
Method Detail

loadImage

public void loadImage(java.lang.String fileName)
This method loads an image.

Parameters:
fileName - path of the image and its name.

draw

public void draw()
Draw an image on the screen.