|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.graphics.GraphicsEngine
public class GraphicsEngine
Cage and Carl User: Seth Marinello Date: May 10, 2007 Time: 4:43:58 PM.
Constructor Summary | |
---|---|
GraphicsEngine()
|
Method Summary | |
---|---|
static void |
addOverlayComponents(java.util.LinkedList<Overlay.NamedPanel> overlayContents)
Adds the overlay components. |
static Display |
getDisplay()
Gets the display. |
static int |
getHeight()
Gets the height. |
static java.util.LinkedList<Sprite> |
getSpriteList()
Gets the sprite list. |
static int |
getWidth()
Gets the width. |
static double |
getXScale()
Gets the x scale. |
static double |
getYScale()
Gets the y scale. |
static void |
removeALlOverlayComponents()
Removes the all overlay components. |
static void |
removeOverlayComponents(java.util.LinkedList<Overlay.NamedPanel> overlayContents)
Removes the overlay components. |
static void |
render()
Draws the image of a Cage.Graphics.Sprite at its coordinates and adds it to the end of the sceneGraphics vector. |
static void |
scaleGraphics()
Scale the size of all Visual Items (Animations and Images). |
static void |
setGraphics(java.util.LinkedList<Sprite> list)
Sets the graphics. |
static void |
setHeight(int height)
Sets the height. |
static void |
setup(java.lang.String title,
boolean decorated)
Create a Graphics engine and initialize all instance fields. |
static void |
setWidth(int width)
Sets the width. |
static void |
setXScale(double xScale)
Sets the x scale. |
static void |
setYScale(double yScale)
Sets the y scale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphicsEngine()
Method Detail |
---|
public static void setup(java.lang.String title, boolean decorated)
title
- The window title for the game.decorated
- Indicates if the window should have a titlebar or not.public static int getWidth()
public static void setWidth(int width)
width
- the new widthpublic static int getHeight()
public static void setHeight(int height)
height
- the new heightpublic static double getXScale()
public static void setXScale(double xScale)
xScale
- the new x scalepublic static double getYScale()
public static void setYScale(double yScale)
yScale
- the new y scalepublic static void render()
public static Display getDisplay()
public static java.util.LinkedList<Sprite> getSpriteList()
public static void setGraphics(java.util.LinkedList<Sprite> list)
list
- the new graphicspublic static void addOverlayComponents(java.util.LinkedList<Overlay.NamedPanel> overlayContents)
overlayContents
- the overlay contentspublic static void removeOverlayComponents(java.util.LinkedList<Overlay.NamedPanel> overlayContents)
overlayContents
- the overlay contentspublic static void removeALlOverlayComponents()
public static void scaleGraphics()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |