vooga.engine.overlay
Class OverlayStatImage

java.lang.Object
  extended by Sprite
      extended by vooga.engine.overlay.Overlay
          extended by vooga.engine.overlay.OverlayStatImage

public class OverlayStatImage
extends Overlay

The OverlayStatImage class displays a image.

OverlayStatImage overlay = new OverlayStatImage(Resources.getImage("someName"), 10, 10);

It is basically the same thing as a Sprite, except for the fact that it now has a clone method which is used with the OverlayIcon


Constructor Summary
  OverlayStatImage(java.awt.image.BufferedImage image)
          Creats a Image to be placed in game.
protected OverlayStatImage(java.awt.image.BufferedImage image, int width, int height)
          Creates a Image to be placed in game.
  OverlayStatImage(java.util.Map<java.lang.String,java.lang.String> attributes, OverlayTracker tracker)
           
 
Method Summary
protected  OverlayStatImage clone()
           
protected  void scale(int width, int height)
           
 
Methods inherited from class vooga.engine.overlay.Overlay
setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverlayStatImage

public OverlayStatImage(java.awt.image.BufferedImage image)
Creats a Image to be placed in game.

Parameters:
image - image to display

OverlayStatImage

protected OverlayStatImage(java.awt.image.BufferedImage image,
                           int width,
                           int height)
Creates a Image to be placed in game.

Parameters:
image - image to display
width - width of image
height - height of image

OverlayStatImage

public OverlayStatImage(java.util.Map<java.lang.String,java.lang.String> attributes,
                        OverlayTracker tracker)
Method Detail

scale

protected void scale(int width,
                     int height)

clone

protected OverlayStatImage clone()