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 class
ADC2Module.CardClass
class
ADC2Module.Cards
class
ADC2Module.DeckPool
static class
ADC2Module.FacingDirection
class
ADC2Module.ForcePool
protected static class
ADC2Module.ForcePoolList
class
ADC2Module.HandPool
static class
ADC2Module.HideState
class
ADC2Module.Piece
class
ADC2Module.PieceClass
A general class for a game piece.static class
ADC2Module.Player
class
ADC2Module.Pool
static class
ADC2Module.StateFlag
class
ADC2Module.StatusDots
static class
ADC2Module.ValueType
-
Field Summary
Fields Modifier and Type Field Description protected static int
ALL_PLAYERS
static String
COMMON_PROPERTIES
static String
DRAW_ON_TOP_OF_OTHERS
static Color
FLAG_BACKGROUND
static Color
FLAG_FOREGROUND
protected static int
NO_PLAYERS
static String
PIECE
-
Constructor Summary
Constructors Constructor Description ADC2Module()
-
Method Summary
Modifier and Type Method Description protected void
configureDiceRoller(GameModule gameModule)
protected void
configureMapLayers()
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
isValidImportFile(File f)
Determine whether the file is valid for the given importer.protected void
load(File f)
The method that actually loads the file and creates the classes containing information needed for the archive.protected void
readAllianceBlock(DataInputStream in)
protected void
readAutoRevealWhenMovingLOSFlagBlock(DataInputStream in)
protected void
readClassBlock(DataInputStream in)
protected void
readClassValueBlock(DataInputStream in)
protected void
readCombatRevealFlagBlock(DataInputStream in)
protected void
readCombatSummaryBlock(DataInputStream in)
protected void
readDeckNameBlock(DataInputStream in)
protected void
readDiceBlock(DataInputStream in)
protected void
readFacingBlock(DataInputStream in)
protected void
readFlipDefinitionBlock(DataInputStream in)
protected void
readGameTurnBlock(DataInputStream in)
protected void
readInfoPageBlock(DataInputStream in)
protected void
readInfoSizeBlock(DataInputStream in)
protected void
readLOSBlock(DataInputStream in)
protected void
readLOSFlagBlock(DataInputStream in)
protected void
readPieceBlock(DataInputStream in)
protected void
readPieceStatusDotsBlock(DataInputStream in)
protected void
readPieceValueBlock(DataInputStream in)
protected void
readPlayerBlock(DataInputStream in)
protected void
readPoolBlock(DataInputStream in)
protected void
readPoolOwnerBlock(DataInputStream in)
protected void
readReplayBlock(DataInputStream in)
protected void
readSoundSettingBlock(DataInputStream in)
protected void
readStackBlock(DataInputStream in)
protected void
readTurnNameBlock(DataInputStream in)
boolean
usePieceValues()
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
writeToArchive()
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:
- 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: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
-
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
-
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
- Returns:
true
iff
is a valid file for this type.- Throws:
FileNotFoundException
IOException
-