Class CheckForRepairTradeStep
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.CheckForRepairTradeStep
-
- All Implemented Interfaces:
ITradeStep
public class CheckForRepairTradeStep extends java.lang.Object implements ITradeStep
Implements the trade step that does the checking if the vessel needs repair and if it does sends the ship for repair.
-
-
Field Summary
Fields Modifier and Type Field Description private ICity
city
private static org.slf4j.Logger
LOGGER
private ShipService
shipService
private INavigableVessel
vessel
-
Constructor Summary
Constructors Constructor Description CheckForRepairTradeStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
Execute the trade step.java.lang.String
toString()
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
city
private ICity city
-
vessel
private INavigableVessel vessel
-
shipService
@Autowired private ShipService shipService
-
-
Method Detail
-
execute
public boolean execute()
Description copied from interface:ITradeStep
Execute the trade step.- Specified by:
execute
in interfaceITradeStep
- Returns:
- true if the next step can be executed on completion or if the execution is triggered by the arrival of the ship in the next port.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-