vooga.engine.overlay
Class OverlayStatImage
java.lang.Object
Sprite
vooga.engine.overlay.Overlay
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)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 displaywidth
- width of imageheight
- height of image
OverlayStatImage
public OverlayStatImage(java.util.Map<java.lang.String,java.lang.String> attributes,
OverlayTracker tracker)
scale
protected void scale(int width,
int height)
clone
protected OverlayStatImage clone()