com.robrohan.ruin.doom
Class Blockmap

java.lang.Object
  |
  +--com.robrohan.ruin.doom.Blockmap
All Implemented Interfaces:
java.io.Serializable

public class Blockmap
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Blockmap()
           
 
Method Summary
 void addList(int[] values)
          add a list to the cellarray this assumes you are building the cell map in order
 void doDump()
          Dumps the map to stdout with the first item in the list.
 int getColumns()
          get the number of columns
 BlockList getList(int index)
          gets a linedef list from a cell int the block map
 int getRows()
          get the number of rows
 void setColumns(int columns)
          sets the number of columns in the blockmap
 void setRows(int rows)
          sets the number of rows in the blockmap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blockmap

public Blockmap()
Method Detail

doDump

public void doDump()
Dumps the map to stdout with the first item in the list. NOTE this is ordered backwards use for population testing only!!


getList

public BlockList getList(int index)
gets a linedef list from a cell int the block map


addList

public void addList(int[] values)
add a list to the cellarray this assumes you are building the cell map in order


setRows

public void setRows(int rows)
sets the number of rows in the blockmap


setColumns

public void setColumns(int columns)
sets the number of columns in the blockmap


getRows

public int getRows()
get the number of rows


getColumns

public int getColumns()
get the number of columns