Class LootSession


  • public class LootSession
    extends Session
    A type of session to handle looting of cargo.
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
      • capture

        private final java.util.List<Goods> capture
        The goods that are available to be captured.
    • Constructor Detail

      • LootSession

        public LootSession​(Unit winner,
                           Unit loser,
                           java.util.List<Goods> capture)
    • Method Detail

      • complete

        public boolean complete​(ChangeSet cs)
        Description copied from class: Session
        All transaction types must implement a completion action. This is called by the controller at the end of turn to complete any sessions that have not yet completed, or if the controller gets the required response to complete the session.
        Overrides:
        complete in class Session
        Parameters:
        cs - A ChangeSet to update with changes that occur when completing this session.
        Returns:
        True if the session was already complete.
      • getCapture

        public java.util.List<Goods> getCapture()