Uses of Class
VASSAL.counters.Decorator

Packages that use Decorator
Package
Description
Provides classes for building Java instances automatically from XML files.
Contains classes that may be added to a GameModule.
Provides classes that define game pieces.
 
 
  • Uses of Decorator in VASSAL.build

    Methods in VASSAL.build with parameters of type Decorator
    Modifier and Type
    Method
    Description
    protected String
    GpIdChecker.findState(GamePiece oldPiece, GamePiece pNew, Decorator decoratorNewPc, Class<? extends GamePiece> classToFind)
    Locate a Decorator in the old piece that has the exact same type as the new Decorator and return it's state
  • Uses of Decorator in VASSAL.build.module

    Methods in VASSAL.build.module that return Decorator
    Modifier and Type
    Method
    Description
    BasicCommandEncoder.createDecorator(String type, GamePiece inner)
    Creates a Decorator instance - a GamePiece "Trait".
    BasicCommandEncoder.DecoratorFactory.createDecorator(String type, GamePiece inner)
     
  • Uses of Decorator in VASSAL.counters

    Subclasses of Decorator in VASSAL.counters
    Modifier and Type
    Class
    Description
    class 
    A Trait (aka Decorator that acts like a button on a GamePiece, such that clicking on a particular area of the piece invokes a key command
    class 
     
    class 
    Trait allowing creation of an "attachment" to one or more other pieces, which can then be sent GKCs very swiftly and whose properties can be easily read (and if a Dynamic Property can also be set with a Set Global Property trait)
    class 
    This trait overrides the $BasicName$ property provided by the "Basic Piece", allowing a module designer decking to define pieces entirely by prototype to safely ignore and leave empty the Basic Piece.
    class 
    Trait to draw a colored border around a piece
    class 
    Conditional Marker A marker with a variable value depending on conditions.
    class 
    This trait adds a command that creates a duplicate of the selected Gamepiece
    class 
    A trait that exists in a Piece Definition, but is not included when the piece is created in a real game.
    class 
    Trait that sends a Key Command to other pieces, selected with various filters.
    class 
    This trait adds a command that creates a duplicate of the selected Gamepiece
    class 
    Implements a trait to allow a piece to be deselected from the KeyBuffer in response to a Key Command.
    class 
    Trait that contains a property accessible via getProperty() and updatable dynamically via key commands
    class 
    d/b/a "Layer" The "Layer" trait.
    class 
    Embellishment has been extensively re-written for Vassal 3.2 changing both the behavior and the visual look of the configurer.
    class 
    Displays a movement trail indicating where a piece has been moved
    class 
    d/b/a "Can Rotate" A Decorator that rotates a GamePiece to an arbitrary angle
    class 
    Adds a menu entry that fires a specified key event to the module window.
    class 
     
    class 
    d/b/a "Does Not Stack" Decorator that filters events to prevent a GamePiece from being selected and/or moved.
    class 
    d/b/a "Text Label" Displays a text label, with content specified by the user at runtime.
    class 
    A generic Decorator that retains in its state the value of a property.
    class 
    Designates the piece as a "Mat" on which other pieces ("Cargo") can be placed.
    class 
    Designates the piece as "Cargo", which can be placed on a "Mat" to move along with it
    class 
    This trait puts a menu separator bar in the context menu for the piece
    class 
    d/b/a "Mark When Moved" A GamePiece with this trait will automatically be marked whenever it is moved.
    class 
    Allows a single trait to generate multiple context menu commands, using a set of filtered map locations.
    class 
    A trait for assigning an arbitrary shape to a GamePiece
    class 
    d/b/a "Mask" Trait that lets some traits of a piece be hidden "from some players, some of the time".
    class 
    d/b/a "Can Pivot" Provides commands to pivot a Game Piece around a given point
    class 
    This Decorator defines a key command to places another counter on top of this one.
    class 
    A trait that plays a sound clip
    class 
    A Decorator class that endows a GamePiece with a dialog.
    class 
    GamePiece trait that replaces a GamePiece with another one
    class 
    d/b/a "Report Action" A GamePiece with this trait will echo the piece's current name when any of a given key commands are pressed (and after they take effect)
    class 
    RestrictCommands Restrict the availability of Key Commands, depending on a Property Match String
    class 
    d/b/a "Restricted Access" A GamePiece with the Restricted trait can only be manipulated by the player playing a specific side
    class 
    GamePiece trait that returns a piece to a DrawPile
    class 
    This trait adds a command that sends a piece to another location.
    class 
     
    class 
     
    class 
    A trait that groups menu items of other traits into a sub-menu
    class 
    d/b/a "Spreadsheet" A Decorator class that endows a GamePiece with an editable spreadsheet (i.e.
    class 
    A trait to expose a translated string as a readable/displayable property.
    class 
    d/b/a "Move Fixed Distance" Give a piece a command that moves it a fixed amount in a particular direction, optionally tracking the current rotation of the piece.
    class 
    Macro Execute a series of Keystrokes against this same piece - Triggered by own KeyCommand or list of keystrokes - Match against an optional Property Filter
    class 
    d/b/a "Prototype" This trait is a placeholder for a pre-defined series of traits specified in a PrototypeDefinition object.
    Fields in VASSAL.counters declared as Decorator
    Modifier and Type
    Field
    Description
    protected Decorator
    SetGlobalProperty.dec
     
    protected Decorator
    SetPieceProperty.dec
     
    Methods in VASSAL.counters that return Decorator
    Modifier and Type
    Method
    Description
    Decorator.getOuter()
     
    Methods in VASSAL.counters with parameters of type Decorator
    Modifier and Type
    Method
    Description
    protected void
    MassPieceDefiner.addTrait(Decorator c)
     
    protected void
    MassPieceDefiner.addTrait(Decorator c, int insertIndex)
     
    protected void
    PieceDefiner.addTrait(Decorator c)
     
    protected void
    PieceDefiner.addTrait(Decorator c, int insertIndex)
     
    Constructors in VASSAL.counters with parameters of type Decorator
    Modifier
    Constructor
    Description
     
     
  • Uses of Decorator in VASSAL.script

    Methods in VASSAL.script that return Decorator
    Modifier and Type
    Method
    Description
    BshCommandEncoder.createDecorator(String type, GamePiece inner)
     
  • Uses of Decorator in VASSAL.tools.imports.adc2

    Methods in VASSAL.tools.imports.adc2 that return Decorator
    Modifier and Type
    Method
    Description
    protected Decorator
    ADC2Module.Piece.getHidden()
     
    ADC2Module.PieceClass.getHiddenDecorator()
     
    ADC2Module.PieceClass.getReplaceWithOtherDecorator()
     
    ADC2Module.PieceClass.getReplaceWithPreviousDecorator()