Class ConvoyRepairMission

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.product.ISpecialMission, ch.sahits.game.openpatrician.model.product.ITradeMissionData

    public class ConvoyRepairMission
    extends ch.sahits.game.openpatrician.clientserverinterface.model.WaitingTradeMissionWrapper
    Special mission that blocks all ships of a player from a convoy for them to be repaired and then reform the convoy.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2018 Created on Oct 13, 2018
    • Constructor Summary

      Constructors 
      Constructor Description
      ConvoyRepairMission​(ch.sahits.game.openpatrician.model.ship.IShip orleg, java.util.List<ch.sahits.game.openpatrician.model.ship.IShip> convoyShips, boolean publicConvoy)
      Constructor registering itself as the mission data on the player for all ships.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleShipFittedForOrleg​(ch.sahits.game.openpatrician.clientserverinterface.model.event.OrlegShipOutfittedEvent event)
      When a ship has finally been fitted for orlead duties, create the convoy.
      void handleShipRepaired​(ch.sahits.game.openpatrician.event.data.RepairFinishedEvent event)  
      • Methods inherited from class ch.sahits.game.openpatrician.clientserverinterface.model.WaitingTradeMissionWrapper

        canEqual, equals, getTradeMissionData, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConvoyRepairMission

        public ConvoyRepairMission​(ch.sahits.game.openpatrician.model.ship.IShip orleg,
                                   java.util.List<ch.sahits.game.openpatrician.model.ship.IShip> convoyShips,
                                   boolean publicConvoy)
        Constructor registering itself as the mission data on the player for all ships.
        Parameters:
        orleg -
        convoyShips -
    • Method Detail

      • handleShipRepaired

        public void handleShipRepaired​(ch.sahits.game.openpatrician.event.data.RepairFinishedEvent event)
      • handleShipFittedForOrleg

        public void handleShipFittedForOrleg​(ch.sahits.game.openpatrician.clientserverinterface.model.event.OrlegShipOutfittedEvent event)
        When a ship has finally been fitted for orlead duties, create the convoy.
        Parameters:
        event -