Class GlobalCommand.IndexedFastmatchDeckPolicyManager

java.lang.Object
VASSAL.counters.GlobalCommand.IndexedFastmatchDeckPolicyManager
Enclosing class:
GlobalCommand

protected class GlobalCommand.IndexedFastmatchDeckPolicyManager extends Object
A class to manage the application of GKC's against multiple Decks by the Fast Match Code that uses Location indexes. Standard GKC process Scans a whole Deck at once and applys the Deck Limits once only. Location based fast-match by-passes the normal Deck processing and returns an unordered list of individual pieces that may reside in multiple Decks.
  • Constructor Details

    • IndexedFastmatchDeckPolicyManager

      public IndexedFastmatchDeckPolicyManager(GlobalCommand globalCommand)
  • Method Details

    • accept

      public void accept(GamePiece piece, DeckVisitorDispatcher dispatcher, GlobalCommandVisitor visitor)
      If a piece resides in a Deck, check if the Deck acceptance limit has been reached for that particular Deck before running the piece through the dispatcher.
      Parameters:
      piece - Piece to Check
      dispatcher - Dispatcher
      visitor - Visitor