Package VASSAL.tools.imports.adc2
Class ADC2Module
java.lang.Object
VASSAL.tools.imports.Importer
VASSAL.tools.imports.adc2.ADC2Module
public class ADC2Module extends Importer
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classADC2Module.CardClassclassADC2Module.CardsclassADC2Module.DeckPoolstatic classADC2Module.FacingDirectionclassADC2Module.ForcePoolprotected static classADC2Module.ForcePoolListclassADC2Module.HandPoolstatic classADC2Module.HideStateclassADC2Module.PiececlassADC2Module.PieceClassA general class for a game piece.static classADC2Module.PlayerclassADC2Module.Poolstatic classADC2Module.StateFlagclassADC2Module.StatusDotsstatic classADC2Module.ValueType -
Field Summary
Fields Modifier and Type Field Description protected static intALL_PLAYERSstatic StringCOMMON_PROPERTIESstatic StringDRAW_ON_TOP_OF_OTHERSstatic ColorFLAG_BACKGROUNDstatic ColorFLAG_FOREGROUNDprotected static intNO_PLAYERSstatic StringPIECE -
Constructor Summary
Constructors Constructor Description ADC2Module() -
Method Summary
Modifier and Type Method Description protected voidconfigureDiceRoller(GameModule gameModule)protected voidconfigureMapLayers()protected voidconfigureMouseOverStackViewer(GameModule gameModule)protected voidconfigureTurnCounter(GameModule gameModule)protected SymbolSetgetCardDeck(int deck)protected ADC2Module.PieceClassgetClassFromIndex(int index)protected MapBoardgetMap()protected SymbolSetgetSet()booleanisValidImportFile(File f)Determine whether the file is valid for the given importer.protected voidload(File f)The method that actually loads the file and creates the classes containing information needed for the archive.protected voidreadAllianceBlock(DataInputStream in)protected voidreadAutoRevealWhenMovingLOSFlagBlock(DataInputStream in)protected voidreadClassBlock(DataInputStream in)protected voidreadClassValueBlock(DataInputStream in)protected voidreadCombatRevealFlagBlock(DataInputStream in)protected voidreadCombatSummaryBlock(DataInputStream in)protected voidreadDeckNameBlock(DataInputStream in)protected voidreadDiceBlock(DataInputStream in)protected voidreadFacingBlock(DataInputStream in)protected voidreadFlipDefinitionBlock(DataInputStream in)protected voidreadGameTurnBlock(DataInputStream in)protected voidreadInfoPageBlock(DataInputStream in)protected voidreadInfoSizeBlock(DataInputStream in)protected voidreadLOSBlock(DataInputStream in)protected voidreadLOSFlagBlock(DataInputStream in)protected voidreadPieceBlock(DataInputStream in)protected voidreadPieceStatusDotsBlock(DataInputStream in)protected voidreadPieceValueBlock(DataInputStream in)protected voidreadPlayerBlock(DataInputStream in)protected voidreadPoolBlock(DataInputStream in)protected voidreadPoolOwnerBlock(DataInputStream in)protected voidreadReplayBlock(DataInputStream in)protected voidreadSoundSettingBlock(DataInputStream in)protected voidreadStackBlock(DataInputStream in)protected voidreadTurnNameBlock(DataInputStream in)booleanusePieceValues()protected 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)voidwriteToArchive()Create 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
-
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
-
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- Returns:
trueiffis a valid file for this type.- Throws:
FileNotFoundExceptionIOException
-