Package VASSAL.tools.imports.adc2
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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final intprotected intprotected static final intprotected VASSAL.tools.imports.adc2.SymbolSet.SymbolData -
Constructor Summary
ConstructorsConstructorDescriptionPieceClass(String name, VASSAL.tools.imports.adc2.SymbolSet.SymbolData symbol, int owner, int hiddenSymbol, int facing) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckHidden(ADC2Module.Piece piece) protected ADC2Module.Pieceprotected ADC2Module.PieceVASSAL.tools.imports.adc2.SymbolSet.SymbolDatagetName()intgetOwner()protected VASSAL.tools.imports.adc2.SymbolSet.SymbolDatagetValue(int index) booleangetValueAsBoolean(int index) intgetValueAsInt(int index) getValueAsString(int index) protected voidsetBackFlipClass(int from) protected voidsetFlipClass(int to) protected voidsetValue(int index, boolean value) protected voidsetValue(int index, int value) protected voidprotected voidwriteToArchive(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
-