moagg.level.converter
Class BricksConverter

java.lang.Object
  extended by moagg.level.converter.BricksConverter

public class BricksConverter
extends java.lang.Object

Helper application for migrating maps to the new tile indices for "brick" and "blue": - brick10.png changed from 10 to 0a - brick11.png changed from 11 to 0b - brick12.png changed from 12 to 0c - blue10.png changed from 10 to 0a - blue11.png changed from 11 to 0b - blue12.png changed from 12 to 0c


Field Summary
static java.lang.String MISSION_PATH
           
 
Constructor Summary
BricksConverter()
           
 
Method Summary
 void convert(java.io.File file)
           
protected  boolean convertMap(java.io.DataInputStream is, java.io.DataOutputStream os)
           
protected  void convertMap(java.io.File map)
           
protected  boolean convertMapV1(java.io.DataInputStream is, java.io.DataOutputStream os)
           
protected  boolean convertMapV2(java.io.DataInputStream is, java.io.DataOutputStream os)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MISSION_PATH

public static final java.lang.String MISSION_PATH
See Also:
Constant Field Values
Constructor Detail

BricksConverter

public BricksConverter()
Method Detail

convert

public void convert(java.io.File file)
             throws java.lang.Exception
Throws:
java.lang.Exception

convertMap

protected void convertMap(java.io.File map)
                   throws java.lang.Exception
Throws:
java.lang.Exception

convertMap

protected boolean convertMap(java.io.DataInputStream is,
                             java.io.DataOutputStream os)
                      throws java.lang.Exception
Throws:
java.lang.Exception

convertMapV1

protected boolean convertMapV1(java.io.DataInputStream is,
                               java.io.DataOutputStream os)
                        throws java.lang.Exception
Throws:
java.lang.Exception

convertMapV2

protected boolean convertMapV2(java.io.DataInputStream is,
                               java.io.DataOutputStream os)
                        throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)


Copyright © 2008. All Rights Reserved.