mechanics.moves
Class MoveSetData

java.lang.Object
  extended by mechanics.moves.MoveSetData

public class MoveSetData
extends java.lang.Object


Constructor Summary
MoveSetData()
           
 
Method Summary
 MoveSet getMoveSet(int i)
          Get the move set identified by the parameter.
 int getMoveSetCount()
          Return the number of move sets.
 void loadFromFile(java.io.InputStream file)
          Load the move sets from an input stream.
 void loadFromFile(java.lang.String str)
          Load the move sets in from a file.
 void loadFromFile(java.net.URL url)
          Load the move sets in from a URL.
static void main(java.lang.String[] args)
          Merge the full advance and d/p move databases together.
 void pruneMoveSet()
          Prune the move set of null entries.
 void saveToFile(java.io.File f)
          Save the move sets to a file.
 void saveToFile(java.io.OutputStream output)
          Save the move sets to an arbitrary output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveSetData

public MoveSetData()
Method Detail

saveToFile

public void saveToFile(java.io.File f)
Save the move sets to a file.


saveToFile

public void saveToFile(java.io.OutputStream output)
Save the move sets to an arbitrary output stream.


pruneMoveSet

public void pruneMoveSet()
Prune the move set of null entries. This is slow and shoddy.


loadFromFile

public void loadFromFile(java.net.URL url)
Load the move sets in from a URL.


loadFromFile

public void loadFromFile(java.lang.String str)
Load the move sets in from a file.


loadFromFile

public void loadFromFile(java.io.InputStream file)
Load the move sets from an input stream.


getMoveSetCount

public int getMoveSetCount()
Return the number of move sets.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Merge the full advance and d/p move databases together.

Throws:
java.lang.Exception

getMoveSet

public MoveSet getMoveSet(int i)
                   throws java.lang.IllegalArgumentException
Get the move set identified by the parameter.

Throws:
java.lang.IllegalArgumentException