Package VASSAL.build.module
Class AttachmentManager
java.lang.Object
VASSAL.build.module.AttachmentManager
Maintains a list of pieces with attachment traits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()voidclearNew()Check our list of new pieces created w/ attachments, and for any that are "auto attach" go ahead and attach them to all of their siblings.voidA piece w/ attachment traits has been added to the game state.voidA piece with attachment traits has been removed from the game state.
-
Constructor Details
-
AttachmentManager
public AttachmentManager()
-
-
Method Details
-
clearAll
public void clearAll() -
clearNew
public void clearNew() -
doAutoAttachments
Check our list of new pieces created w/ attachments, and for any that are "auto attach" go ahead and attach them to all of their siblings.- Returns:
- a command to reproduce the action on other instances
-
pieceAdded
A piece w/ attachment traits has been added to the game state. Make note of its attachment traits, and add the piece to the "new pieces" list for later.- Parameters:
p-
-
pieceRemoved
A piece with attachment traits has been removed from the game state. Clean up the attachments index.- Parameters:
p-
-