vooga.engine.overlay
Class OverlayCreator

java.lang.Object
  extended by vooga.engine.overlay.OverlayCreator

public class OverlayCreator
extends java.lang.Object

This class is used for creating overlays from an xml file instead of in the code itself. For an example see OverlayExample.java. Click here to view xml file example

Here are all the attributes for all of the different overlays/p>


Constructor Summary
OverlayCreator()
           
 
Method Summary
static OverlayTracker createOverlays(java.lang.String xmlFileLocation)
           
protected static GameFont getGameFont(java.lang.String str)
           
static void setGame(Game game)
           
protected static java.awt.Color stringToColor(java.lang.String value)
          Converts a given string into a color.
protected static int stringToFontStyle(java.lang.String style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverlayCreator

public OverlayCreator()
Method Detail

createOverlays

public static OverlayTracker createOverlays(java.lang.String xmlFileLocation)
Parameters:
xmlFileLocation - - the XML File Location. String xmlFileLocation must be path from the root of the project
Returns:
OverlayTracker containing all stats and overlays.

stringToColor

protected static java.awt.Color stringToColor(java.lang.String value)
Converts a given string into a color.

Parameters:
value - the string, either a name or a hex-string.
Returns:
the color.

stringToFontStyle

protected static int stringToFontStyle(java.lang.String style)

getGameFont

protected static GameFont getGameFont(java.lang.String str)

setGame

public static void setGame(Game game)