Class AttachmentManager

java.lang.Object
VASSAL.build.module.AttachmentManager

public class AttachmentManager extends Object
Maintains a list of pieces with attachment traits
  • Constructor Details

    • AttachmentManager

      public AttachmentManager()
  • Method Details

    • clearAll

      public void clearAll()
    • clearNew

      public void clearNew()
    • doAutoAttachments

      public Command 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

      public void pieceAdded(GamePiece p)
      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

      public void pieceRemoved(GamePiece p)
      A piece with attachment traits has been removed from the game state. Clean up the attachments index.
      Parameters:
      p -