Class SymbolSet

java.lang.Object
VASSAL.tools.imports.Importer
VASSAL.tools.imports.adc2.SymbolSet

public class SymbolSet extends Importer
ADC2 game piece and terrain symbols.
Author:
Michael Kiefte
  • Constructor Details

    • SymbolSet

      public SymbolSet()
  • Method Details

    • getMaxSize

      public Dimension getMaxSize(Dimension max)
    • getMaxSize

      public Dimension getMaxSize()
    • getModalSize

      public Dimension getModalSize()
      Returns:
      The most frequently occuring dimension for game pieces in this module.
    • load

      protected void load(File f) throws IOException
      Read a symbol set from the specified file.
      Overrides:
      load in class Importer
      Parameters:
      f - The base file to be imported.
      Throws:
      IOException - oops
    • readPermutationFile

      protected void readPermutationFile(File f) throws IOException
      Read an SDX file if one exists. This is a list of image indeces starting with terrain separated by newlines. Only piece images are actually permuted.
      Parameters:
      f - - Set file.
      Throws:
      IOException
    • writeToArchive

      public void writeToArchive() throws IOException
      Write all of the game pieces to the archive. Mainly for testing or if only the symbol set is imported.
      Specified by:
      writeToArchive in class Importer
      Throws:
      IOException - oops
    • isValidImportFile

      public boolean isValidImportFile(File f) throws IOException
      Description copied from class: Importer
      Determine whether the file is valid for the given importer.
      Specified by:
      isValidImportFile in class Importer
      Parameters:
      f - File
      Returns:
      true if f is a valid file for this type.
      Throws:
      IOException - oops