Package worldBuilder
Class RPGMwriter
- java.lang.Object
- 
- worldBuilder.RPGMwriter
 
- 
 public class RPGMwriter extends java.lang.Objectwrite out a series of levels-of-tiles as an RPGMaker map
- 
- 
Constructor SummaryConstructors Constructor Description RPGMwriter(java.io.FileWriter outfile)crate an RPGMaker map writer
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendList(java.lang.String end)terminate an object or arrayvoidepilogue()terminate the list of tablesvoidprologue(int height, int width, int tileset)write out the prologue for a set of tablesvoidstartList(java.lang.String name, java.lang.String start)write out the start of an object or arrayvoidtypeMap(int[] map)set the level-to-TerrainType mapvoidwriteAdjustedTable(int[][] baseTiles, int[][] levels)write out one table (numRows x numCols) w/autotile adjustmentsvoidwriteTable(int[][] tiles, boolean last)write out one table (numRows x numCols)
 
- 
- 
- 
Method Detail- 
typeMappublic void typeMap(int[] map) set the level-to-TerrainType map- Parameters:
- map- new map
 
 - 
prologuepublic void prologue(int height, int width, int tileset) throws java.io.IOExceptionwrite out the prologue for a set of tables- Parameters:
- height- (in tiles) of map
- width- (in tiles) of map
- tileset- (number of the tileset to be used in this map)
- Throws:
- java.io.IOException
 
 - 
writeTablepublic void writeTable(int[][] tiles, boolean last) throws java.io.IOExceptionwrite out one table (numRows x numCols)- Parameters:
- tiles- ... the array to be written out
- last- .... is this the last table to be written
- Throws:
- java.io.IOException
 
 - 
writeAdjustedTablepublic void writeAdjustedTable(int[][] baseTiles, int[][] levels) throws java.io.IOExceptionwrite out one table (numRows x numCols) w/autotile adjustments- Parameters:
- baseTiles- ... the array to be written out
- levels- ... array of types for each tile Note: there is no auto-tiling for the last level (6)
- Throws:
- java.io.IOException
 
 - 
epiloguepublic void epilogue() throws java.io.IOExceptionterminate the list of tables- Throws:
- java.io.IOException
 
 - 
startListpublic void startList(java.lang.String name, java.lang.String start) throws java.io.IOExceptionwrite out the start of an object or array- Parameters:
- name- name of List/Aray
- start- starting character
- Throws:
- java.io.IOException
 
 - 
endListpublic void endList(java.lang.String end) throws java.io.IOExceptionterminate an object or array- Parameters:
- end- ending character
- Throws:
- java.io.IOException
 
 
- 
 
-