Package VASSAL.tools.imports.adc2
Class ADC2Module
java.lang.Object
VASSAL.tools.imports.Importer
VASSAL.tools.imports.adc2.ADC2Module
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassstatic classclassprotected static classclassstatic classclassclassA general class for a game piece.static classclassstatic classclassstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureDiceRoller(GameModule gameModule)protected voidprotected voidconfigureMouseOverStackViewer(GameModule gameModule)protected voidconfigureTurnCounter(GameModule gameModule)protected SymbolSetgetCardDeck(int deck)protected ADC2Module.PieceClassgetClassFromIndex(int index)protected MapBoardgetMap()protected SymbolSetgetSet()booleanDetermine whether the file is valid for the given importer.protected voidThe method that actually loads the file and creates the classes containing information needed for the archive.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidbooleanprotected voidwriteClassesToArchive(GameModule gameModule)protected voidwriteDecksToArchive(GameModule gameModule)protected voidwriteForcePoolsToArchive(GameModule gameModule)Creates a board with deck stacks in which force pools are kept.protected voidwriteHandsToArchive(GameModule module)protected voidwriteInfoPagesToArchive(GameModule gameModule)protected voidwritePlayersToArchive(GameModule gameModule)protected voidwritePrototypesToArchive(GameModule gameModule)protected voidwriteSetupStacksToArchive(GameModule gameModule)voidCreate the VASSAL module based on the classes created byload.protected voidwriteToolbarMenuToArchive(GameModule gameModule)Methods inherited from class VASSAL.tools.imports.Importer
forceExtension, getExtension, getFileName, getLayeredPieceCollection, getMainMap, getUniqueImageFileName, getUniqueImageFileName, importFile, insertComponent, readNullTerminatedString, readNullTerminatedString, readWindowsFileName, stripExtension
-
Field Details
-
DRAW_ON_TOP_OF_OTHERS
- See Also:
- Constant Field Values
-
PIECE
- See Also:
- Constant Field Values
-
ALL_PLAYERS
protected static final int ALL_PLAYERS- See Also:
- Constant Field Values
-
NO_PLAYERS
protected static final int NO_PLAYERS- See Also:
- Constant Field Values
-
COMMON_PROPERTIES
- See Also:
- Constant Field Values
-
FLAG_BACKGROUND
-
FLAG_FOREGROUND
-
-
Constructor Details
-
ADC2Module
public ADC2Module()
-
-
Method Details
-
getClassFromIndex
-
getCardDeck
- Throws:
IOException
-
usePieceValues
public boolean usePieceValues() -
load
Description copied from class:ImporterThe method that actually loads the file and creates the classes containing information needed for the archive. The archive is written inwriteToArchive.- Overrides:
loadin classImporter- Parameters:
f- The base file to be imported.- Throws:
IOException- oops
-
readAllianceBlock
- Throws:
IOException
-
readInfoSizeBlock
- Throws:
IOException
-
readInfoPageBlock
- Throws:
IOException
-
readCombatRevealFlagBlock
- Throws:
IOException
-
readAutoRevealWhenMovingLOSFlagBlock
- Throws:
IOException
-
readPoolOwnerBlock
- Throws:
IOException
-
readDeckNameBlock
- Throws:
IOException
-
readLOSFlagBlock
- Throws:
IOException
-
readLOSBlock
- Throws:
IOException
-
readTurnNameBlock
- Throws:
IOException
-
readDiceBlock
- Throws:
IOException
-
readPieceStatusDotsBlock
- Throws:
IOException
-
readFlipDefinitionBlock
- Throws:
IOException
-
readSoundSettingBlock
- Throws:
IOException
-
readFacingBlock
- Throws:
IOException
-
readCombatSummaryBlock
- Throws:
IOException
-
readStackBlock
- Throws:
IOException
-
readReplayBlock
- Throws:
IOException
-
readPoolBlock
- Throws:
IOException
-
readPlayerBlock
- Throws:
IOException
-
readPieceBlock
- Throws:
IOException
-
readClassValueBlock
- Throws:
IOException
-
readPieceValueBlock
- Throws:
IOException
-
readClassBlock
- Throws:
IOException
-
readGameTurnBlock
- Throws:
IOException
-
writePrototypesToArchive
-
writeToArchive
Description copied from class:ImporterCreate the VASSAL module based on the classes created byload. This should not be called directly but ratherimportFile.- Specified by:
writeToArchivein classImporter- Throws:
IOException- oops
-
writeInfoPagesToArchive
- Throws:
IOException
-
configureMapLayers
protected void configureMapLayers() -
configureTurnCounter
-
configureDiceRoller
-
configureMouseOverStackViewer
-
writeClassesToArchive
- Throws:
IOException
-
writePlayersToArchive
-
writeHandsToArchive
- Throws:
IOException
-
writeDecksToArchive
- Throws:
IOException
-
writeToolbarMenuToArchive
-
writeForcePoolsToArchive
Creates a board with deck stacks in which force pools are kept.- Throws:
IOException
-
writeSetupStacksToArchive
- Throws:
IOException
-
getMap
-
getSet
-
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
-