Package VASSAL.tools.imports.adc2
Class SymbolSet
java.lang.Object
VASSAL.tools.imports.Importer
VASSAL.tools.imports.adc2.SymbolSet
ADC2 game piece and terrain symbols.
- Author:
- Michael Kiefte
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMaxSize(Dimension max)booleanDetermine whether the file is valid for the given importer.protected voidRead a symbol set from the specified file.protected voidRead an SDX file if one exists.voidWrite 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:
loadin 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:
writeToArchivein classImporter- Throws:
IOException- oops
-
isValidImportFile
Description copied from class:ImporterDetermine whether the file is valid for the given importer.- Specified by:
isValidImportFilein classImporter- Parameters:
f- File- Returns:
trueiffis a valid file for this type.- Throws:
FileNotFoundException- oopsIOException- oops
-