Package VASSAL.tools.imports.adc2
Class ADC2Module
java.lang.Object
VASSAL.tools.imports.Importer
VASSAL.tools.imports.adc2.ADC2Module
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
class
static enum
class
protected static class
class
static enum
class
class
A general class for a game piece.static class
class
static class
class
static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureDiceRoller
(GameModule gameModule) protected void
protected void
configureMouseOverStackViewer
(GameModule gameModule) protected void
configureTurnCounter
(GameModule gameModule) protected SymbolSet
getCardDeck
(int deck) protected ADC2Module.PieceClass
getClassFromIndex
(int index) protected MapBoard
getMap()
protected SymbolSet
getSet()
boolean
Determine whether the file is valid for the given importer.protected void
The method that actually loads the file and creates the classes containing information needed for the archive.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
boolean
protected void
writeClassesToArchive
(GameModule gameModule) protected void
writeDecksToArchive
(GameModule gameModule) protected void
writeForcePoolsToArchive
(GameModule gameModule) Creates a board with deck stacks in which force pools are kept.protected void
writeHandsToArchive
(GameModule module) protected void
writeInfoPagesToArchive
(GameModule gameModule) protected void
writePlayersToArchive
(GameModule gameModule) protected void
writePrototypesToArchive
(GameModule gameModule) protected void
writeSetupStacksToArchive
(GameModule gameModule) void
Create the VASSAL module based on the classes created byload
.protected void
writeToolbarMenuToArchive
(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:
-
PIECE
- See Also:
-
ALL_PLAYERS
protected static final int ALL_PLAYERS- See Also:
-
NO_PLAYERS
protected static final int NO_PLAYERS- See Also:
-
COMMON_PROPERTIES
- See Also:
-
FLAG_BACKGROUND
-
FLAG_FOREGROUND
-
-
Constructor Details
-
ADC2Module
public ADC2Module()
-
-
Method Details
-
getClassFromIndex
-
getCardDeck
- Throws:
IOException
-
usePieceValues
public boolean usePieceValues() -
load
Description copied from class:Importer
The method that actually loads the file and creates the classes containing information needed for the archive. The archive is written inwriteToArchive
.- Overrides:
load
in 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:Importer
Create the VASSAL module based on the classes created byload
. This should not be called directly but ratherimportFile
.- Specified by:
writeToArchive
in 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: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
-