class ShipBuildTask
extends ch.sahits.game.openpatrician.model.event.TimedTask
implements ch.sahits.game.openpatrician.model.city.impl.IShipBuildTask
| Modifier and Type | Field and Description |
|---|---|
private AIPlayerEngine |
aiPlayerEngine |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private javafx.geometry.Point2D |
location |
private LocationTracker |
locationTracker |
private ch.sahits.game.openpatrician.model.IPlayer |
owner |
private ch.sahits.game.openpatrician.model.ship.IShip |
ship |
private static ch.sahits.game.openpatrician.util.RandomNameLoader |
shipLoader |
private ShipFactory |
shipUtility |
private ch.sahits.game.openpatrician.model.city.IShipyard |
shipyard |
private ch.sahits.game.openpatrician.model.ship.EShipType |
type |
private double |
x |
| Constructor and Description |
|---|
ShipBuildTask(org.joda.time.DateTime executionTime,
ch.sahits.game.openpatrician.model.ship.EShipType type,
ch.sahits.game.openpatrician.model.IPlayer owner,
javafx.geometry.Point2D location,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard) |
| Modifier and Type | Method and Description |
|---|---|
private int |
calculateShipCapacity() |
private ch.sahits.game.openpatrician.model.ship.IShip |
createShip()
Create the ship based on the ships type.
|
ch.sahits.game.openpatrician.model.ship.IShip |
getShipToBeBuilt()
Retrieve the ship that is to be built.
|
(package private) void |
initializeShip() |
void |
run() |
private final ch.sahits.game.openpatrician.model.ship.EShipType type
private final ch.sahits.game.openpatrician.model.IPlayer owner
@Autowired private ShipFactory shipUtility
@Autowired private AIPlayerEngine aiPlayerEngine
private final double x
private final javafx.geometry.Point2D location
private ch.sahits.game.openpatrician.model.ship.IShip ship
private final ch.sahits.game.openpatrician.model.city.IShipyard shipyard
private static ch.sahits.game.openpatrician.util.RandomNameLoader shipLoader
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private LocationTracker locationTracker
public ShipBuildTask(org.joda.time.DateTime executionTime,
ch.sahits.game.openpatrician.model.ship.EShipType type,
ch.sahits.game.openpatrician.model.IPlayer owner,
javafx.geometry.Point2D location,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
@PostConstruct void initializeShip()
public ch.sahits.game.openpatrician.model.ship.IShip getShipToBeBuilt()
getShipToBeBuilt in interface ch.sahits.game.openpatrician.model.city.impl.IShipBuildTaskprivate ch.sahits.game.openpatrician.model.ship.IShip createShip()
private int calculateShipCapacity()
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.