rlgamekit.map.data
Class MapLayer

java.lang.Object
  extended by rlgamekit.map.data.MapLayer

public class MapLayer
extends java.lang.Object

One layer for a map.


Constructor Summary
MapLayer(int width, int height)
           
 
Method Summary
 int get(int x, int y)
           
 int getHeight()
           
 int getOutside()
          Get the value for places outside this map
 java.lang.String getTileSetFileName()
           
 int getWidth()
           
 int getXoff(int x, int y)
           
 int getYoff(int x, int y)
           
 void read(java.io.BufferedReader reader)
           
 void set(int x, int y, int value)
           
 void setOutside(int outside)
          Set the value for places outside this map
 void setTileSetFileName(java.lang.String tileSetFileName)
           
 void setXoff(int x, int y, int value)
           
 void setYoff(int x, int y, int value)
           
 void write(java.io.Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapLayer

public MapLayer(int width,
                int height)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getOutside

public int getOutside()
Get the value for places outside this map

Returns:
the outside

setOutside

public void setOutside(int outside)
Set the value for places outside this map

Parameters:
outside - the outside to set

getTileSetFileName

public java.lang.String getTileSetFileName()
Returns:
the tileSetFileName

setTileSetFileName

public void setTileSetFileName(java.lang.String tileSetFileName)
Parameters:
tileSetFileName - the tileSetFileName to set

get

public int get(int x,
               int y)

set

public void set(int x,
                int y,
                int value)

getXoff

public int getXoff(int x,
                   int y)

getYoff

public int getYoff(int x,
                   int y)

setXoff

public void setXoff(int x,
                    int y,
                    int value)

setYoff

public void setYoff(int x,
                    int y,
                    int value)

write

public void write(java.io.Writer writer)
           throws java.io.IOException
Throws:
java.io.IOException

read

public void read(java.io.BufferedReader reader)
          throws java.io.IOException
Throws:
java.io.IOException