Class MatHolder

java.lang.Object
VASSAL.counters.MatHolder

public class MatHolder extends Object
A utility class for holding and manipulating Mats and their Cargo
  • Constructor Details

    • MatHolder

      public MatHolder(GamePiece piece)
  • Method Details

    • grabCargo

      public void grabCargo(List<GamePiece> allCargo)
      Remove any cargo on this mat from the supplied allCargo list and add to the MatHolders cargo list
      Parameters:
      allCargo -
    • getMatPiece

      public GamePiece getMatPiece()
    • getMat

      public Mat getMat()
    • getCargo

      public List<GamePiece> getCargo()
    • setCargo

      public void setCargo(List<GamePiece> cargo)