Package VASSAL.counters
Class GlobalCommandTarget
java.lang.Object
VASSAL.counters.GlobalCommandTarget
- All Implemented Interfaces:
ConfigurerFactory,SearchTarget
GlobalCommandTarget configures and stores the "Fast Match" parameters of Global Key Commands, allowing certain
simple filters to be "pre-matched" without having to initiate the (relatively slower) BeanShell filters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classComparison Modes for property matchstatic classSpecifies the type of GKC being configured (affects which Target options are allowed)static classSpecifies the kind of target matching -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static charprotected booleanprotected booleanprotected GlobalCommandTarget.GKCtypeprotected Expressionprotected GlobalCommandTarget.CompareModeprotected Expressionprotected Expressionprotected Expressionprotected Expressionprotected GlobalCommandTarget.Targetprotected Expressionprotected Expressionprotected Expressionprotected Expression -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidDecoder for loading GlobalCommandTarget from the module XMLencode()Encoder for the part of GlobalCommandTarget that gets stored in the modulebooleanCompares two GlobalCommandTargetsgetConfigurer(AutoConfigurable c, String key, String name)booleanbooleanvoidsetCurPiece(GamePiece curPiece)voidsetFastMatchLocation(boolean fastMatchLocation)voidsetFastMatchProperty(boolean fastMatchProperty)voidsetGKCtype(GlobalCommandTarget.GKCtype gkcType)voidsetTargetBoard(String targetBoard)voidsetTargetBoard(Expression targetBoard)voidsetTargetCompare(String targetCompare)voidsetTargetCompare(GlobalCommandTarget.CompareMode targetCompare)voidsetTargetDeck(String targetDeck)voidsetTargetDeck(Expression targetDeck)voidsetTargetLocation(String targetLocation)voidsetTargetLocation(Expression targetLocation)voidsetTargetMap(String targetMap)voidsetTargetMap(Expression targetMap)voidsetTargetProperty(String targetProperty)voidsetTargetProperty(Expression targetProperty)voidsetTargetType(String targetType)voidsetTargetType(GlobalCommandTarget.Target targetType)voidsetTargetValue(String targetValue)voidsetTargetValue(Expression targetValue)voidsetTargetX(int targetX)voidsetTargetX(String targetX)voidsetTargetX(Expression targetX)voidsetTargetY(int targetY)voidsetTargetY(String targetY)voidsetTargetY(Expression targetY)voidsetTargetZone(String targetZone)voidsetTargetZone(Expression targetZone)
-
Field Details
-
ENCODE_DELIMITER
protected static final char ENCODE_DELIMITER- See Also:
- Constant Field Values
-
gkcType
-
fastMatchLocation
protected boolean fastMatchLocation -
targetType
-
targetMap
-
targetBoard
-
targetZone
-
targetLocation
-
targetDeck
-
targetX
-
targetY
-
fastMatchProperty
protected boolean fastMatchProperty -
targetProperty
-
targetValue
-
targetCompare
-
-
Constructor Details
-
GlobalCommandTarget
public GlobalCommandTarget() -
GlobalCommandTarget
-
GlobalCommandTarget
-
GlobalCommandTarget
-
-
Method Details
-
getConfigurer
- Specified by:
getConfigurerin interfaceConfigurerFactory
-
encode
Encoder for the part of GlobalCommandTarget that gets stored in the module- Returns:
- Fast Match parameters encoded in string form
-
decode
Decoder for loading GlobalCommandTarget from the module XML- Parameters:
code- String to decode into our fields.
-
equals
Compares two GlobalCommandTargets -
getExpressionList
- Specified by:
getExpressionListin interfaceSearchTarget- Returns:
- a list of the item's string/expression fields if any (for search)
-
getFormattedStringList
- Specified by:
getFormattedStringListin interfaceSearchTarget- Returns:
- a list of any Message Format strings referenced in the item, if any (for search)
-
getMenuTextList
- Specified by:
getMenuTextListin interfaceSearchTarget- Returns:
- a list of any Menu/Button/Tooltip Text strings referenced in the item, if any (for search)
-
getNamedKeyStrokeList
- Specified by:
getNamedKeyStrokeListin interfaceSearchTarget- Returns:
- a list of any Named KeyStrokes referenced in the item, if any (for search)
-
getPropertyList
- Specified by:
getPropertyListin interfaceSearchTarget- Returns:
- a list of any Property Names referenced in the item, if any (for search)
-
getGKCtype
-
setGKCtype
-
isFastMatchLocation
public boolean isFastMatchLocation() -
setFastMatchLocation
public void setFastMatchLocation(boolean fastMatchLocation) -
isFastMatchProperty
public boolean isFastMatchProperty() -
setFastMatchProperty
public void setFastMatchProperty(boolean fastMatchProperty) -
getTargetType
-
setTargetType
-
setTargetType
-
getTargetMap
-
setTargetMap
-
setTargetMap
-
getTargetBoard
-
setTargetBoard
-
setTargetBoard
-
getTargetZone
-
setTargetZone
-
setTargetZone
-
getTargetLocation
-
setTargetLocation
-
setTargetLocation
-
getTargetDeck
-
setTargetDeck
-
setTargetDeck
-
getTargetProperty
-
setTargetProperty
-
setTargetProperty
-
getTargetValue
-
setTargetValue
-
setTargetValue
-
getTargetCompare
-
setTargetCompare
-
setTargetCompare
-
getTargetX
-
setTargetX
-
setTargetX
-
setTargetX
public void setTargetX(int targetX) -
getTargetY
-
setTargetY
-
setTargetY
-
setTargetY
public void setTargetY(int targetY) -
setCurPiece
-
getCurPiece
-