moagg.level.converter
Class BricksRandomizer

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

public class BricksRandomizer
extends java.lang.Object

Helper application for randomizing the "brick" tiles. Randomizing means, that the first nibble of each tile-id is set to a random value between 1 and 3.


Field Summary
static java.lang.String MISSION_PATH
           
 
Constructor Summary
BricksRandomizer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void randomize(java.io.File file)
           
protected  boolean randomizeMap(java.io.DataInputStream is, java.io.DataOutputStream os)
           
protected  void randomizeMap(java.io.File map)
           
protected  boolean randomizeMapV1(java.io.DataInputStream is, java.io.DataOutputStream os)
           
protected  boolean randomizeMapV2(java.io.DataInputStream is, java.io.DataOutputStream os)
           
 
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

BricksRandomizer

public BricksRandomizer()
Method Detail

randomize

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

randomizeMap

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

randomizeMap

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

randomizeMapV1

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

randomizeMapV2

protected boolean randomizeMapV2(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.