Package VASSAL.build.module.properties
Class SumProperties
java.lang.Object
VASSAL.build.module.properties.SumProperties
- All Implemented Interfaces:
PropertySource
public class SumProperties extends Object implements PropertySource
For property names of the form sum(name), returns the value of
the named property summed over a list of pieces.
- Author:
- rkinney
-
Field Summary
Fields Modifier and Type Field Description protected Collection<GamePiece>pieces -
Constructor Summary
Constructors Constructor Description SumProperties(Collection<GamePiece> pieces) -
Method Summary
Modifier and Type Method Description ObjectgetLocalizedProperty(Object key)ObjectgetProperty(Object key)
-
Field Details
-
pieces
-
-
Constructor Details
-
SumProperties
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin interfacePropertySource
-
getLocalizedProperty
- Specified by:
getLocalizedPropertyin interfacePropertySource
-