Class BasicCommandEncoder

java.lang.Object
VASSAL.build.module.BasicCommandEncoder
All Implemented Interfaces:
Buildable, CommandEncoder
Direct Known Subclasses:
BshCommandEncoder

public class BasicCommandEncoder
extends Object
implements CommandEncoder, Buildable
A CommandEncoder that handles the basic commands: AddPiece, RemovePiece, ChangePiece, MovePiece. If a module defines custom GamePiece classes, then this class may be overriden and imported into the module. Subclasses should override the createDecorator(java.lang.String, VASSAL.counters.GamePiece) method or, less often, the createBasic(java.lang.String) or createPiece(java.lang.String) methods to allow instantiation of the custom GamePiece classes.