Class HireSailorsStep
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.HireSailorsStep
-
- All Implemented Interfaces:
ITradeStep
public class HireSailorsStep extends java.lang.Object implements ITradeStep
Trade step for hiring sailors on a ship.
-
-
Field Summary
Fields Modifier and Type Field Description private ICity
city
private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private Date
date
private INavigableVessel
ship
private ShipService
shipService
private TimedUpdatableTaskList
taskList
-
Constructor Summary
Constructors Constructor Description HireSailorsStep()
-
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
-
ship
private INavigableVessel ship
-
city
private ICity city
-
taskList
@Autowired private TimedUpdatableTaskList taskList
-
date
@Autowired private Date date
-
clientServerEventBus
@Autowired @Qualifier("serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
-
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
-
-