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
public class ADC2Module.PieceClass extends Object
A general class for a game piece. Typically all pieces that appear to be identical blong to the
same class.
-
Field Summary
Fields Modifier and Type Field Description ADC2Module.PieceClass
backReplace
static String
CLASS_PROPERTIES
protected static int
NO_HIDDEN_SYMBOL
protected int
owner
protected static int
PLAYER_DEFAULT_HIDDEN_SYMBOL
protected VASSAL.tools.imports.adc2.SymbolSet.SymbolData
symbol
-
Constructor Summary
Constructors Constructor Description PieceClass(String name, VASSAL.tools.imports.adc2.SymbolSet.SymbolData symbol, int owner, int hiddenSymbol, int facing)
-
Method Summary
-
Field Details
-
backReplace
-
CLASS_PROPERTIES
- See Also:
- Constant Field Values
-
NO_HIDDEN_SYMBOL
protected static final int NO_HIDDEN_SYMBOL- See Also:
- Constant Field Values
-
PLAYER_DEFAULT_HIDDEN_SYMBOL
protected static final int PLAYER_DEFAULT_HIDDEN_SYMBOL- See Also:
- Constant Field Values
-
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
-