rl.leviathan.mapping
Class LeviathanMap

java.lang.Object
  extended by rl.common.mapping.Map
      extended by rl.common.mapping.HexMap
          extended by rl.leviathan.mapping.LeviathanMap
All Implemented Interfaces:
java.io.Serializable

public class LeviathanMap
extends HexMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class rl.common.mapping.Map
Map.Edge
 
Field Summary
static int LeviathanMapHeight
           
static int LeviathanMapWidth
           
(package private) static long serialVersionUID
           
 
Constructor Summary
LeviathanMap()
           
 
Method Summary
 int getHeight()
           
 java.lang.String getMapType()
           
 int getWidth()
           
 void loadFromFile(java.io.File f)
           
 void saveToFile(java.io.File f)
           
protected  void setDefaultHex(java.lang.String DefaultTerrain)
           
 void setSize(int Width, int Height)
           
 java.lang.String toString()
           
 
Methods inherited from class rl.common.mapping.HexMap
getHex, getHex, getHex, getHexCount, getHexInDirection, getHexInDirection, indexFor, isValidGameBoard, setHex, setHex, setHex
 
Methods inherited from class rl.common.mapping.Map
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

LeviathanMapWidth

public static final int LeviathanMapWidth
See Also:
Constant Field Values

LeviathanMapHeight

public static final int LeviathanMapHeight
See Also:
Constant Field Values
Constructor Detail

LeviathanMap

public LeviathanMap()
Method Detail

getMapType

public java.lang.String getMapType()
Specified by:
getMapType in class Map

getWidth

public int getWidth()
Specified by:
getWidth in class Map

getHeight

public int getHeight()
Specified by:
getHeight in class Map

setSize

public void setSize(int Width,
                    int Height)
             throws java.lang.Exception
Specified by:
setSize in class HexMap
Throws:
java.lang.Exception

loadFromFile

public void loadFromFile(java.io.File f)
Specified by:
loadFromFile in class Map

saveToFile

public void saveToFile(java.io.File f)
Specified by:
saveToFile in class Map

setDefaultHex

protected void setDefaultHex(java.lang.String DefaultTerrain)
Specified by:
setDefaultHex in class HexMap

toString

public java.lang.String toString()
Overrides:
toString in class HexMap