Class ADC2Module.PieceClass
java.lang.Object
VASSAL.tools.imports.adc2.ADC2Module.PieceClass
- Direct Known Subclasses:
ADC2Module.CardClass
- Enclosing class:
ADC2Module
A general class for a game piece. Typically all pieces that appear to be identical blong to the
same class.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static final int
protected int
protected static final int
protected VASSAL.tools.imports.adc2.SymbolSet.SymbolData
-
Constructor Summary
ConstructorDescriptionPieceClass
(String name, VASSAL.tools.imports.adc2.SymbolSet.SymbolData symbol, int owner, int hiddenSymbol, int facing) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkHidden
(ADC2Module.Piece piece) protected ADC2Module.Piece
protected ADC2Module.Piece
VASSAL.tools.imports.adc2.SymbolSet.SymbolData
getName()
int
getOwner()
protected VASSAL.tools.imports.adc2.SymbolSet.SymbolData
getValue
(int index) boolean
getValueAsBoolean
(int index) int
getValueAsInt
(int index) getValueAsString
(int index) protected void
setBackFlipClass
(int from) protected void
setFlipClass
(int to) protected void
setValue
(int index, boolean value) protected void
setValue
(int index, int value) protected void
protected void
writeToArchive
(ListWidget list)
-
Field Details
-
backReplace
-
CLASS_PROPERTIES
- See Also:
-
NO_HIDDEN_SYMBOL
protected static final int NO_HIDDEN_SYMBOL- See Also:
-
PLAYER_DEFAULT_HIDDEN_SYMBOL
protected static final int PLAYER_DEFAULT_HIDDEN_SYMBOL- See Also:
-
symbol
protected VASSAL.tools.imports.adc2.SymbolSet.SymbolData symbol -
owner
protected int owner
-
-
Constructor Details
-
PieceClass
public PieceClass(String name, VASSAL.tools.imports.adc2.SymbolSet.SymbolData symbol, int owner, int hiddenSymbol, int facing)
-
-
Method Details
-
getReplaceWithPreviousDecorator
- Throws:
IOException
-
getReplaceWithOtherDecorator
- Throws:
IOException
-
getBackFlipClass
-
getDynamicPropertyDecorator
-
getUniqueName
-
checkHidden
-
getPropertySheetDecorator
-
getUsePrototypeDecorator
-
getAttackedEmbellishmentDecorator
- Throws:
IOException
-
getDefendedEmbellishmentDecorator
- Throws:
IOException
-
getPieceValueMask
- Throws:
IOException
-
getMovementMarkableDecorator
- Throws:
IOException
-
getHiddenDecorator
- Throws:
IOException
-
getFreeRotatorDecorator
-
getHiddenName
-
setValue
protected void setValue(int index, int value) -
getAllowedFacings
-
getHiddenSymbol
- Throws:
IOException
-
getImageName
- Throws:
IOException
-
getOwner
-
getPlayer
-
setFlipClass
protected void setFlipClass(int to) -
setBackFlipClass
protected void setBackFlipClass(int from) -
getFlipClass
-
getName
-
setValue
-
setValue
protected void setValue(int index, boolean value) -
getValueAsInt
public int getValueAsInt(int index) -
getValueAsString
-
getNValues
public int getNValues() -
getValueAsBoolean
public boolean getValueAsBoolean(int index) -
getValue
-
writeToArchive
- Throws:
IOException
-
getDefaultPiece
-
getFlipDefinition
-
getSymbol
- Throws:
IOException
-