jurpedemo
Class JurpeDemoConfig

java.lang.Object
  extended by jurpe.system.Config
      extended by jurpedemo.JurpeDemoConfig

public class JurpeDemoConfig
extends Config

Configuration values for jurpedemo. Static values are initially filled with default values. They may be loaded from an external file DemoConfig.DEMOCONFIGXML. When you use DemoConfig, you initialize also jurpe.system.Config. The loaded values are the ones of Config and the ones of DemoConfig.

See Also:
JurpeDemoConfig

Field Summary
static java.awt.Color AVATAR_FORE
          Avatar and Dungeon Colors
static java.awt.Color DOOR_COLOR
           
static short DUNGEON_HEIGHT
           
static short DUNGEON_WIDTH
          Dungeon hexmap dimensions
static EnabledDisabled FASTLOG
          If combat fast log is enabled
static java.awt.Dimension FRAMESIZE
          GUI Window Dimensions
static java.lang.String GAMESTRINGSXML
          Game Strings
static java.awt.Color HEXAGON_COLOR
           
static int HEXAGON_HEIGHT
           
static int HEXAGON_WIDTH
           
static int HEXCELL_HEIGHT
           
static int HEXCELL_WIDTH
           
static java.lang.String HTMLTUTORIAL
          Tutorial file
static int INITIAL_DUNGEON_LEVELS
          These is the number of dungeons initially created and persisted
static java.lang.String INNIMAGE
          Name of inn image
static java.lang.String JURPEBAKGIF
          Name of jurpe background image
static java.lang.String JURPEJPG
          Name of jurpeicon image
static java.lang.String JURPESWORDS
          Name of jurpeicon image
static java.lang.String JURPETOPBARJPG
          Name of jurpe topbar image
static JurpeLookAndFeel LOOKANDFEEL
          Startup application Look And Feel.
static java.awt.Color MAZE_BACKGROUND
           
static java.lang.String METALCOLOR
          Background color for Metal/CDE Look And Feel
static java.awt.Dimension PANELSIZE
          Panel Dimensions
static java.lang.String TEMPVILLAGEFILE
          Temporary village file
static short VILLAGE_HEIGHT
           
static short VILLAGE_WIDTH
           
static java.awt.Color WALL_COLOR
           
static java.lang.String WINDOWSCOLOR
          Background color for Windows Look And Feel
 
Fields inherited from class jurpe.system.Config
APPNAME, AVAILABLE_POINTS, AVAILABLEMONSTERSPICS, CHARACTER_POINTS, CHAREXTENSION, CONFIGXML, DATPATH, DICTIONARYXML, DOORSPERCENTAGE, HIGHSCORESFILE, INITIAL_MONEY, LOOTABLES, MAXLOGSIZE, MAXMONSTERLEVEL, SHOPXML, SKILLXML, SYSTEMFILE, VERSION
 
Constructor Summary
JurpeDemoConfig()
           
 
Method Summary
static java.awt.Color getBackGroundColor(boolean metal)
          Get RGB coordinates for the 2 default GUI background colors.
static java.lang.String[] getDemoFiles()
          Get absolute path of all files needed to start demo application.
static void loadValues()
          Use this static method to initialize values from an external config.xml file
 
Methods inherited from class jurpe.system.Config
addDatPathTo, getFiles
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRAMESIZE

public static final java.awt.Dimension FRAMESIZE
GUI Window Dimensions


PANELSIZE

public static final java.awt.Dimension PANELSIZE
Panel Dimensions


AVATAR_FORE

public static java.awt.Color AVATAR_FORE
Avatar and Dungeon Colors


MAZE_BACKGROUND

public static java.awt.Color MAZE_BACKGROUND

WALL_COLOR

public static java.awt.Color WALL_COLOR

DOOR_COLOR

public static java.awt.Color DOOR_COLOR

HEXAGON_COLOR

public static java.awt.Color HEXAGON_COLOR

DUNGEON_WIDTH

public static final short DUNGEON_WIDTH
Dungeon hexmap dimensions

See Also:
Constant Field Values

DUNGEON_HEIGHT

public static final short DUNGEON_HEIGHT
See Also:
Constant Field Values

VILLAGE_WIDTH

public static final short VILLAGE_WIDTH
See Also:
Constant Field Values

VILLAGE_HEIGHT

public static final short VILLAGE_HEIGHT
See Also:
Constant Field Values

HEXAGON_HEIGHT

public static final int HEXAGON_HEIGHT
See Also:
Constant Field Values

HEXAGON_WIDTH

public static final int HEXAGON_WIDTH
See Also:
Constant Field Values

HEXCELL_HEIGHT

public static final int HEXCELL_HEIGHT
See Also:
Constant Field Values

HEXCELL_WIDTH

public static final int HEXCELL_WIDTH
See Also:
Constant Field Values

INITIAL_DUNGEON_LEVELS

public static final int INITIAL_DUNGEON_LEVELS
These is the number of dungeons initially created and persisted

See Also:
Constant Field Values

HTMLTUTORIAL

public static java.lang.String HTMLTUTORIAL
Tutorial file


TEMPVILLAGEFILE

public static java.lang.String TEMPVILLAGEFILE
Temporary village file


JURPESWORDS

public static java.lang.String JURPESWORDS
Name of jurpeicon image


INNIMAGE

public static java.lang.String INNIMAGE
Name of inn image


JURPETOPBARJPG

public static java.lang.String JURPETOPBARJPG
Name of jurpe topbar image


JURPEBAKGIF

public static java.lang.String JURPEBAKGIF
Name of jurpe background image


JURPEJPG

public static java.lang.String JURPEJPG
Name of jurpeicon image


GAMESTRINGSXML

public static java.lang.String GAMESTRINGSXML
Game Strings


WINDOWSCOLOR

public static java.lang.String WINDOWSCOLOR
Background color for Windows Look And Feel


METALCOLOR

public static java.lang.String METALCOLOR
Background color for Metal/CDE Look And Feel


LOOKANDFEEL

public static JurpeLookAndFeel LOOKANDFEEL
Startup application Look And Feel.


FASTLOG

public static EnabledDisabled FASTLOG
If combat fast log is enabled

Constructor Detail

JurpeDemoConfig

public JurpeDemoConfig()
Method Detail

getBackGroundColor

public static java.awt.Color getBackGroundColor(boolean metal)
                                         throws JurpeException
Get RGB coordinates for the 2 default GUI background colors.

Parameters:
metal - If true, it will return the Metal backround, else the beige one.
Returns:
Color in RGB coordinates
Throws:
JurpeException

loadValues

public static void loadValues()
                       throws JurpeException
Use this static method to initialize values from an external config.xml file

Throws:
JurpeException

getDemoFiles

public static java.lang.String[] getDemoFiles()
Get absolute path of all files needed to start demo application.

Returns:
array of path names of files that are necessary to the application
See Also:
Config.getFiles()

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net