Class BshCommandEncoder
java.lang.Object
VASSAL.build.module.BasicCommandEncoder
VASSAL.script.BshCommandEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.build.module.BasicCommandEncoder
BasicCommandEncoder.BasicPieceFactory, BasicCommandEncoder.DecoratorFactory
-
Field Summary
Fields inherited from class VASSAL.build.module.BasicCommandEncoder
ADD, CHANGE, MOVE, REMOVE
-
Constructor Summary
-
Method Summary
Methods inherited from class VASSAL.build.module.BasicCommandEncoder
add, addTo, build, createBasic, createPiece, decode, encode, getBuildElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface VASSAL.build.Buildable
isMandatory, isMovable, isUnique
-
Constructor Details
-
BshCommandEncoder
public BshCommandEncoder()
-
-
Method Details
-
createDecorator
Description copied from class:BasicCommandEncoder
Creates aDecorator
instance - aGamePiece
"Trait". Modules which wish to provide their own custom classes should subclass BasicCommandEncoder and override this class. The override should check for and parse any definitions that match desired custom Traits(Decorators), and then use super to call this method for any unmatched definitions. Further documentation on creating custom traits appears in BasicCommandEncoder's own javadoc entry, or alternatively at the top of BasicCommandEncoder.java.- Overrides:
createDecorator
in classBasicCommandEncoder
- Parameters:
type
- the type of the Decorator ("Trait") to be created. Once created, the Decorator should return this value from itsDecorator.myGetType()
method.inner
- the inner trait/piece of the Decorator (the "innermost" member of a game piece will be aBasicPiece
; each successive Trait in the trait list presented in a piece'sPieceDefiner
dialog represents a sep "outward").
-