net.sf.colossus.xmlparser
Class BattlelandLoader

java.lang.Object
  extended by net.sf.colossus.xmlparser.BattlelandLoader

public class BattlelandLoader
extends java.lang.Object

BattlelandLoader loads the battle hex data

Author:
Romain Dolbeau

Field Summary
private  boolean isTower
          is the terrain a Tower ?
private static java.util.logging.Logger LOGGER
           
private  java.util.List<java.lang.String> startlist
          hold the list of label for the startlist
private  java.lang.String subtitle
          optional subtitle for the Battlelands
 
Constructor Summary
BattlelandLoader(java.io.InputStream batIS, BattleHex[][] h)
           
 
Method Summary
 java.util.List<java.lang.String> getStartList()
           
 java.lang.String getSubtitle()
           
private  void handleHex(org.jdom.Element el, BattleHex[][] h)
           
private  void handleStartlistHex(org.jdom.Element el)
           
 boolean isTower()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final java.util.logging.Logger LOGGER

startlist

private java.util.List<java.lang.String> startlist
hold the list of label for the startlist


isTower

private boolean isTower
is the terrain a Tower ?


subtitle

private java.lang.String subtitle
optional subtitle for the Battlelands

Constructor Detail

BattlelandLoader

public BattlelandLoader(java.io.InputStream batIS,
                        BattleHex[][] h)
Method Detail

handleHex

private void handleHex(org.jdom.Element el,
                       BattleHex[][] h)
                throws org.jdom.JDOMException
Throws:
org.jdom.JDOMException

handleStartlistHex

private void handleStartlistHex(org.jdom.Element el)

getStartList

public java.util.List<java.lang.String> getStartList()

getSubtitle

public java.lang.String getSubtitle()

isTower

public boolean isTower()