Package VASSAL.counters
Class SetAttachmentProperty.SetAttachmentPropertySource
java.lang.Object
VASSAL.counters.SetAttachmentProperty.SetAttachmentPropertySource
- All Implemented Interfaces:
PropertySource,Auditable
- Enclosing class:
SetAttachmentProperty
public class SetAttachmentProperty.SetAttachmentPropertySource
extends Object
implements PropertySource
Makes our special location-currently-being-evaluated information available to our property-match evaluation; other than that, properties from the piece as usual
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a localized translation of the specified property value, if available.getPiece()getProperty(Object key) When using this interface a piece's own properties are preferred to those of "Global Properties", and those in turn are searched Zone-first then Map, then Module.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VASSAL.script.expression.Auditable
getComponentName, getComponentTypeName
-
Constructor Details
-
SetAttachmentPropertySource
public SetAttachmentPropertySource()
-
-
Method Details
-
getProperty
Description copied from interface:PropertySourceWhen using this interface a piece's own properties are preferred to those of "Global Properties", and those in turn are searched Zone-first then Map, then Module.- Specified by:
getPropertyin interfacePropertySource- Parameters:
key- String key of property to be returned- Returns:
- Object containing value of the specified property
-
getPiece
-
getLocalizedProperty
Description copied from interface:PropertySourceReturns a localized translation of the specified property value, if available. Otherwise returns the non-localized version.- Specified by:
getLocalizedPropertyin interfacePropertySource- Parameters:
key- String key of property to be returned- Returns:
- Object containing localized text of the specified property, if available, otherwise non-localized value
-