@Service @Lazy @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class) public class ShipyardEngine extends AbstractEngine
| Constructor | Description |
|---|---|
ShipyardEngine() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<AbstractEngine> |
getChildren() |
Any engine may hold various child engines.
|
void |
handleOrderBuildEvent(ch.sahits.game.openpatrician.event.data.ShipyardOrderBuild event) |
Recieve the event from the event bus and delegate it.
|
void |
handleORderRefit(ch.sahits.game.openpatrician.event.data.ShipyardOrderRefit event) |
Recieve the event from the event bus and delegate it.
|
void |
handleOrderRepair(ch.sahits.game.openpatrician.event.data.ShipyardOrderRepair event) |
Recieve the event from the event bus and delegate it.
|
void |
refitAIShip(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShip ship) |
|
void |
repair(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShipGroup shipGroup) |
Order the repair of a group of pirate ship.
|
void |
repairAIShip(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShip ship) |
Order the repair of a single AI owned ship.
|
void |
repairPirateShip(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShip ship) |
Order the repair of a single pirate ship.
|
public void repair(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShipGroup shipGroup)
shipyard - where it should be repairedshipGroup - ships that should be repairedpublic void repairPirateShip(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShip ship)
shipyard - where it should be repairedship - that should be repairedpublic void repairAIShip(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShip ship)
shipyard - where it should be repairedship - that should be repairedpublic void refitAIShip(ch.sahits.game.openpatrician.model.city.IShipyard shipyard,
ch.sahits.game.openpatrician.model.ship.IShip ship)
public java.util.List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEnginepublic void handleOrderBuildEvent(ch.sahits.game.openpatrician.event.data.ShipyardOrderBuild event)
event - shipyard order buildpublic void handleOrderRepair(ch.sahits.game.openpatrician.event.data.ShipyardOrderRepair event)
event - shipyard order repairpublic void handleORderRefit(ch.sahits.game.openpatrician.event.data.ShipyardOrderRefit event)
event - shipyard order refitCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.