Class ConvoyRepairMission
- java.lang.Object
-
- ch.sahits.game.openpatrician.clientserverinterface.model.WaitingTradeMissionWrapper
-
- ch.sahits.game.openpatrician.engine.sea.model.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.WaitingTradeMissionWrapperSpecial 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 voidhandleShipFittedForOrleg(ch.sahits.game.openpatrician.clientserverinterface.model.event.OrlegShipOutfittedEvent event)When a ship has finally been fitted for orlead duties, create the convoy.voidhandleShipRepaired(ch.sahits.game.openpatrician.event.data.RepairFinishedEvent event)
-
-
-
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-
-
-