|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.fuckingbrit.q3astats.Game
The Game Class encapsulates a definition of a Quake 3 Arena Mod. A Game will read in an XML game definition file and provide structured access to the hits and weapons that define the game.
Field Summary | |
boolean |
haveHits
This value will contain true, if the XML contained a hit definition line. |
java.lang.String |
hitClass
This contains the fully qualified class name for the mod specific hit parser |
java.lang.String |
hits
The definition of the regular expression for a hit line (if the game has hit logging) |
java.util.Hashtable |
weaponDefinitions
Definitions of the weapons that make up this game. |
Constructor Summary | |
Game(java.io.InputStream xmlFile)
This is the prefered constructor, loading from an XML InputStream, for example, sourced from a JAR file. |
|
Game(java.lang.String xmlFile)
Creates a game from an XML file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Hashtable weaponDefinitions
public java.lang.String hits
public boolean haveHits
public java.lang.String hitClass
Constructor Detail |
public Game(java.lang.String xmlFile) throws QuakeParseException
This is a basic version of the constructor. It's provided for creating new mod-specific parsers for the development stage when your mod code is not in a Jar.
xmlFile
- The path to an XML game definition
QuakeParseException
- Thrown if the file is not extant, readable and valid.public Game(java.io.InputStream xmlFile) throws QuakeParseException
xmlFile
- A ready-to-go input stream pointing at valid XML
QuakeParseException
- thrown if the XML is not valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |