jurpe.system
Class Config

java.lang.Object
  extended by jurpe.system.Config
Direct Known Subclasses:
JurpeDemoConfig

public class Config
extends java.lang.Object

This class contains configuration strings.

Author:
Alessio Saltarin

Field Summary
static java.lang.String APPNAME
          Application Name
static int AVAILABLE_POINTS
          PCharacter points available
static int AVAILABLEMONSTERSPICS
          Maximum number of monsters in the bestiary
static int CHARACTER_POINTS
          PCharacter Points At Start
static java.lang.String CHAREXTENSION
          Extension for character types
static java.lang.String CONFIGXML
           
static java.lang.String DATPATH
          Path in which application can find data (ie: xml files)
static java.lang.String DICTIONARYXML
          Complete path to monster dictionary
static float DOORSPERCENTAGE
          Percentage of doors in dungeon
static java.lang.String HIGHSCORESFILE
          Complete path to tutorial file
static int INITIAL_MONEY
          Initial Money
static int LOOTABLES
          Max number of lootables per dungeon level
static int MAXLOGSIZE
          Maximum number of rows in the system log
static int MAXMONSTERLEVEL
          Maximunum level (in CP) for monsters in the bestiary
static java.lang.String SHOPXML
          Name of Bottega.xml which contains Shop.
static java.lang.String SKILLXML
          Name of file Abilita.xml
static java.lang.String SYSTEMFILE
          File in which serialize playing Character
static java.lang.String VERSION
          Version
 
Constructor Summary
Config()
           
 
Method Summary
static java.lang.String addDatPathTo(java.lang.String resource)
          Add to a file name the pre-configured path.
static java.lang.String[] getFiles()
          Get absolute path of all files needed by the library.
static void loadValues()
          Use this static method to initialize values from an external config.xml file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGXML

public static final java.lang.String CONFIGXML
See Also:
Constant Field Values

APPNAME

public static final java.lang.String APPNAME
Application Name

See Also:
Constant Field Values

SYSTEMFILE

public static final java.lang.String SYSTEMFILE
File in which serialize playing Character

See Also:
Constant Field Values

CHAREXTENSION

public static final java.lang.String CHAREXTENSION
Extension for character types

See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Version

See Also:
Constant Field Values

CHARACTER_POINTS

public static int CHARACTER_POINTS
PCharacter Points At Start


AVAILABLE_POINTS

public static int AVAILABLE_POINTS
PCharacter points available


INITIAL_MONEY

public static int INITIAL_MONEY
Initial Money


DATPATH

public static java.lang.String DATPATH
Path in which application can find data (ie: xml files)


SHOPXML

public static java.lang.String SHOPXML
Name of Bottega.xml which contains Shop.


SKILLXML

public static java.lang.String SKILLXML
Name of file Abilita.xml


HIGHSCORESFILE

public static java.lang.String HIGHSCORESFILE
Complete path to tutorial file


DICTIONARYXML

public static java.lang.String DICTIONARYXML
Complete path to monster dictionary


MAXMONSTERLEVEL

public static int MAXMONSTERLEVEL
Maximunum level (in CP) for monsters in the bestiary


MAXLOGSIZE

public static int MAXLOGSIZE
Maximum number of rows in the system log


AVAILABLEMONSTERSPICS

public static int AVAILABLEMONSTERSPICS
Maximum number of monsters in the bestiary


DOORSPERCENTAGE

public static float DOORSPERCENTAGE
Percentage of doors in dungeon


LOOTABLES

public static int LOOTABLES
Max number of lootables per dungeon level

Constructor Detail

Config

public Config()
Method Detail

addDatPathTo

public static java.lang.String addDatPathTo(java.lang.String resource)
Add to a file name the pre-configured path. IE: DemoConfig.addDatPathTo(DemoConfig.BOTTEGAXML) = "dat/bottega.xml"

Parameters:
resource - file name without path
Returns:
platform independant complete file path to resource

loadValues

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

Throws:
JurpeException

getFiles

public static java.lang.String[] getFiles()
Get absolute path of all files needed by the library.

Returns:
array of path names of files that are necessary to the application

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