Class SymbolSet
java.lang.Object
VASSAL.tools.imports.Importer
VASSAL.tools.imports.adc2.SymbolSet
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMaxSize
(Dimension max) boolean
Determine whether the file is valid for the given importer.protected void
Read a symbol set from the specified file.protected void
Read an SDX file if one exists.void
Write all of the game pieces to the archive.Methods inherited from class VASSAL.tools.imports.Importer
forceExtension, getExtension, getFileName, getLayeredPieceCollection, getMainMap, getUniqueImageFileName, getUniqueImageFileName, importFile, insertComponent, readNullTerminatedString, readNullTerminatedString, readWindowsFileName, stripExtension
-
Constructor Details
-
SymbolSet
public SymbolSet()
-
-
Method Details
-
getMaxSize
-
getMaxSize
-
getModalSize
- Returns:
- The most frequently occuring dimension for game pieces in this module.
-
load
Read a symbol set from the specified file.- Overrides:
load
in classImporter
- Parameters:
f
- The base file to be imported.- Throws:
IOException
- oops
-
readPermutationFile
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
Write all of the game pieces to the archive. Mainly for testing or if only the symbol set is imported.- Specified by:
writeToArchive
in classImporter
- Throws:
IOException
- oops
-
isValidImportFile
Description copied from class:Importer
Determine whether the file is valid for the given importer.- Specified by:
isValidImportFile
in classImporter
- Parameters:
f
- File- Returns:
true
iff
is a valid file for this type.- Throws:
IOException
- oops
-