gecco.server.startup
Class UnitTypesConf

java.lang.Object
  |
  +--gecco.server.startup.UnitTypesConf

public abstract class UnitTypesConf
extends Object

This class loads the settings stored in unittypes.conf.

Author:
Henrik Bäärnhielm, Karl Hasselström, Henrik Hägerström

Constructor Summary
UnitTypesConf()
           
 
Method Summary
static void parse(Reader in, UnitManager um)
          Parses the file and updates the unit manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitTypesConf

public UnitTypesConf()
Method Detail

parse

public static void parse(Reader in,
                         UnitManager um)
                  throws IOException,
                         SyntaxErrorException,
                         ParseErrorException
Parses the file and updates the unit manager.
Parameters:
in - The configuration is read from this.
um - The unit manager.
Throws:
IOException - If there is an I/O error.
SyntaxErrorException - If there is a syntax error.
ParseErrorException - If there is a parse error.