Interface TranslatablePiece
- All Superinterfaces:
Auditable, EditablePiece, GamePiece, PropertySource
- All Known Implementing Classes:
AreaOfEffect, Attachment, BasicName, BasicPiece, BorderOutline, Clone, CounterGlobalKeyCommand, Delete, Deselect, DynamicProperty, Embellishment, Embellishment0, Footprint, FreeRotator, GlobalHotKey, Hideable, Labeler, Mat, MatCargo, MenuSeparator, MovementMarkable, MultiLocationCommand, Obscurable, Pivot, PlaceMarker, PlaySound, PropertySheet, Replace, ReportState, ReturnToDeck, SendToLocation, SetGlobalProperty, SetPieceProperty, SubMenu, TableInfo, TranslatableMessage, Translate, TriggerAction
Decorators that contain localizable elements must implement
this interface
- Author:
- Brent Easton
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn a PieceI18nData object returning the I18n data about this GamePiece.Methods inherited from interface Auditable
getComponentName, getComponentTypeNameMethods inherited from interface EditablePiece
checkTrueMoved, finishMove, finishMove, getBaseDescription, getDescription, getEditor, getHelpFile, mySetType, prepareMoveModifier and TypeMethodDescriptiondefault CommandCentralized method used when finishing up after a piece moves.default CommandfinishMove(Command c, boolean afterburner, boolean findmat) default CommandfinishMove(Command c, boolean afterburner, boolean findmat, boolean mark_moved) Centralized method for finishing up after a piece moves.default StringSupport for a basic-name-only description introduced later, so this default retrofits it from the full description if an explicit one is not defined.A plain-English description of this type of trait/piece - includes data from fields where appropriatevoidSets the information for this piece.default CommandprepareMove(Command c, boolean mark_moved) Centralized method for preparing a piece to move.Methods inherited from interface GamePiece
boundingBox, draw, getId, getLocalizedName, getMap, getName, getParent, getPosition, getProperty, getShape, getState, getType, keyEvent, setId, setMap, setParent, setPosition, setProperty, setStateModifier and TypeMethodDescriptionvoidDraw this GamePiecegetId()Each GamePiece must have a unique String identifierAnd the translated name for this piecegetMap()getName()The plain English name for this piecegetProperty(Object key) Properties can be associated with a piece -- many may be game-specific, but others are standard, such as the LocationName property exposed by BasicPiece -- and can be read through this interface.getShape()getState()getType()The primary way for the piece or trait to receive events.voidEach GamePiece must have a unique String identifiervoidvoidvoidsetPosition(Point p) voidsetProperty(Object key, Object val) Properties can be associated with a piece -- many may be game-specific, but others are standard, such as the LocationName property exposed by BasicPiece -- and can be set through this interface.voidMethods inherited from interface PropertySource
getLocalizedPropertyModifier and TypeMethodDescriptionReturns a localized translation of the specified property value, if available.
-
Field Details
-
PREFIX
- See Also:
-
-
Method Details
-
getI18nData
PieceI18nData getI18nData()Return a PieceI18nData object returning the I18n data about this GamePiece.
-