Class ModulePlugin
java.lang.Object
VASSAL.search.AbstractImageFinder
VASSAL.build.AbstractBuildable
VASSAL.build.module.ModuleExtension
VASSAL.build.module.ModulePlugin
- All Implemented Interfaces:
Buildable, GpIdSupport, GameComponent, PluginsLoader.PluginElement, PropertyNameSource, ValidityChecker, Auditable, ImageSearchTarget
A ModulePlugin is basically identical to a ModuleExtension except
that is loaded earlier and must throw Plugin specific error messages
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ModuleExtension
BASE_MODULE_NAME, BASE_MODULE_VERSION, description, DESCRIPTION, EXTENSION_ID, extensionId, idDisplay, NEXT_PIECESLOT_ID, nextGpId, universal, UNIVERSAL, VASSAL_VERSION_CREATED, VERSIONFields inherited from class AbstractBuildable
buildComponents, validator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhen saving a game, each GameComponent should return aCommandthat, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return nullMethods inherited from class ModuleExtension
addTo, build, checkGpIds, confirmExit, generateGpId, getAllowableConfigureComponents, getAttributeNames, getAttributeValueString, getDataArchive, getDescription, getEditAction, getExtensionId, getHelpFile, getName, getNextGpId, getUniversal, getVersion, remove, removeFrom, save, saveAs, setAttribute, setNextGpId, setup, updateGpIds, updateGpIds, writeModifier and TypeMethodDescriptionvoidAdds this component to its parent.voidbuild()protected voidcheckGpIds(Buildable b, GpIdChecker checker) booleanGenerate a new Unique GamePiece IdClass<?>[]String[]Lists all the buildFile (XML) attribute names for this component.getName()intAccessors to check and update the next GpId if necessary.booleanvoidvoidremoveFrom(Buildable parent) voidsave()voidsaveAs()voidsetAttribute(String key, Object value) Sets a buildFile (XML) attribute value for this component.voidsetNextGpId(int id) voidsetup(boolean gameStarting) Notify the GameComponent that a game has started/endedprotected voidAllocate new gpid's to all PieceSlots defined in a Buildable and all of it's childrenprotected voidprotected voidwrite(boolean saveAs) Methods inherited from class AbstractBuildable
add, addImageNamesRecursively, build, buildString, getAllDescendantComponentsOf, getAncestor, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getNonFolderAncestor, getPropertyNames, setAncestor, validateModifier and TypeMethodDescriptionvoidAdd a Buildable object to this objectvoidAdds all images used by this component AND any subcomponents to the collectionvoidBuild this component by getting all XML attributes of the XML element and callingAbstractBuildable.setAttribute(String, Object)with the String value of the attribute<T> List<T> getAllDescendantComponentsOf(Class<T> target) Recursively descend the build tree and return aListof all components that are instances of the given classDeprecated, for removal: This API element is subject to removal in a future version.getBuildElement(Document doc) <T> Enumeration<T> getComponents(Class<T> target) Deprecated, for removal: This API element is subject to removal in a future version.UseAbstractBuildable.getComponentsOf(Class)instead.<T> List<T> getComponentsOf(Class<T> target) Override this method to provide a list of properties to be exposed for use by expressions in the module.voidsetAncestor(Buildable ancestor) voidvalidate(Buildable target, ValidationReport report) Methods inherited from class AbstractImageFinder
addLocalImageNames, getAllImageNames, getLocalImageNamesModifier and TypeMethodDescriptionvoidClasses extending AbstractImageFinder should override this method in order to add the names of any image files they use to the collection.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Auditable
getComponentName, getComponentTypeNameMethods inherited from interface Buildable
isMandatory, isMovable, isUniqueModifier and TypeMethodDescriptiondefault booleanIs this component a reqired component within its parent?default booleanIs this component allowed to be moved around the Configure Tree?default booleanisUnique()Does this component need to be unique within it's parent?
-
Constructor Details
-
ModulePlugin
-
-
Method Details
-
getRestoreCommand
Description copied from interface:GameComponentWhen saving a game, each GameComponent should return aCommandthat, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return null- Specified by:
getRestoreCommandin interfaceGameComponent- Overrides:
getRestoreCommandin classModuleExtension
-
AbstractBuildable.getBuildables()instead.