@Service
@Lazy
@DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
public class ServerSideTaskFactory
extends ch.sahits.game.openpatrician.clientserverinterface.service.ClientServerTaskFactory
| Constructor | Description |
|---|---|
ServerSideTaskFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
ch.sahits.game.openpatrician.model.event.TimedTask |
getAIShipRefitTask(java.time.LocalDateTime dueDate,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.ship.EShipUpgrade upgrade,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard) |
Retrieve the refit task for an AI ship.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getAIShipRepairTask(java.time.LocalDateTime dueDate,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard) |
Retrieve the repair task for an AI ship.
|
ChurchUpgradeTimedTask |
getChurchUpgradeTask(ch.sahits.game.openpatrician.model.city.IChurch church,
java.time.LocalDateTime deadline) |
Create the timed task for the church upgrade.
|
ClearCityEventTask |
getClearCityEventTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.city.ICity city) |
Retrieve the timed task to clear the city event.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getDailyAIPlayerCheck() |
Retrieve the daily check for the AI player
|
LoanerCollectMoneyAfterAuctionTimedTask |
getLoanerCollectMoneyAfterAuctionTask(ch.sahits.game.openpatrician.model.city.impl.IDebt debt,
java.time.LocalDateTime deadline) |
Create the timed task for the loaner to collect money from the debitor after an auction.
|
LoanerCollectMoneyWithoutAuctionTimedTask |
getLoanerCollectMoneyTask(ch.sahits.game.openpatrician.model.city.impl.IDebt debt,
ch.sahits.game.openpatrician.model.IPlayer debitor,
java.time.LocalDateTime deadline) |
Create a timed task for the loaner to collect money.
|
MarriageOfferDeclinedTimedTask |
getMarriageOfferDeclinedTask(ch.sahits.game.openpatrician.model.IPlayer player) |
Retrieve the timed task for the declined marriage offer.
|
MarriageOfferTask |
getMarriageOfferTask(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.clientserverinterface.model.event.MarriageBrokerAnnouncementState state,
java.time.LocalDateTime deadLine) |
Retrieve a timed task for the marriage offer.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getPeriodicalDailyUpdateTask() |
Update task that issues a PeriodicalDailyUpdate event on the event bus.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getPirateRepairTask(java.time.LocalDateTime dueDate,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.people.ISeaPirate owner,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard) |
Retrieve the repair task for a pirate vessel
|
PostStateDialogToHumanPlayerTask |
getPostStateDialogMessageTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ui.IDialogState state,
ch.sahits.game.openpatrician.model.IPlayer player,
java.lang.String messageKey,
java.lang.Object[] messageParams) |
Retrieve the timed task to post a state based dialog message if the player is human.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getRefitShipTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.ship.EShipUpgrade upgrade,
ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard) |
Retrieve the ship refit task.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getRepairTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard) |
Retrieve the ship repair task.
|
ch.sahits.game.openpatrician.model.city.impl.IShipBuildTask |
getShipBuildTask(java.time.LocalDateTime 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) |
Retrieve the ship build task.
|
UpdatePopulationTask |
getUpdatePopulationTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.city.EPopulationClass populationClass,
int delta,
ch.sahits.game.openpatrician.model.city.ICity city) |
Retrieve the timed task to update the population of a certain class.
|
WeaponConstructionTask |
getWeaponConstructionFinishedTask(ch.sahits.game.openpatrician.model.weapon.IArmory armory,
ch.sahits.game.openpatrician.model.weapon.EWeapon weapon) |
Retrieve the timed task for finishing a weapon construction.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getWeeklyCityCheck() |
Retrieve a weekly city check task.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getWeeklyLoanerCheck() |
Retrieve a weekly loaner check task.
|
public ch.sahits.game.openpatrician.model.event.TimedTask getRepairTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
public ch.sahits.game.openpatrician.model.city.impl.IShipBuildTask getShipBuildTask(java.time.LocalDateTime 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)
public ch.sahits.game.openpatrician.model.event.TimedTask getRefitShipTask(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.ship.EShipUpgrade upgrade,
ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
public ch.sahits.game.openpatrician.model.event.TimedTask getPirateRepairTask(java.time.LocalDateTime dueDate,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.people.ISeaPirate owner,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
dueDate - execution timevessel - vessel to be repairedowner - pirate ownerpublic ch.sahits.game.openpatrician.model.event.TimedTask getAIShipRepairTask(java.time.LocalDateTime dueDate,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
dueDate - execution timeship - to be repairedpublic ch.sahits.game.openpatrician.model.event.TimedTask getAIShipRefitTask(java.time.LocalDateTime dueDate,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.ship.EShipUpgrade upgrade,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
dueDate - execution timeship - to be upgradedpublic ch.sahits.game.openpatrician.model.event.TimedTask getWeeklyLoanerCheck()
public ch.sahits.game.openpatrician.model.event.TimedTask getDailyAIPlayerCheck()
public ch.sahits.game.openpatrician.model.event.TimedTask getPeriodicalDailyUpdateTask()
public ch.sahits.game.openpatrician.model.event.TimedTask getWeeklyCityCheck()
public MarriageOfferTask getMarriageOfferTask(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.clientserverinterface.model.event.MarriageBrokerAnnouncementState state, java.time.LocalDateTime deadLine)
player - that is addressedstate - of the marraiage offer announcementdeadLine - when the offer will happen.public ChurchUpgradeTimedTask getChurchUpgradeTask(ch.sahits.game.openpatrician.model.city.IChurch church, java.time.LocalDateTime deadline)
church - to be upgreadeddeadline - when it will happenpublic LoanerCollectMoneyAfterAuctionTimedTask getLoanerCollectMoneyAfterAuctionTask(ch.sahits.game.openpatrician.model.city.impl.IDebt debt, java.time.LocalDateTime deadline)
debt - debt contractdeadline - when this will happen.public LoanerCollectMoneyWithoutAuctionTimedTask getLoanerCollectMoneyTask(ch.sahits.game.openpatrician.model.city.impl.IDebt debt, ch.sahits.game.openpatrician.model.IPlayer debitor, java.time.LocalDateTime deadline)
debt - debt contractdebitor - from whom to collect the money.deadline - when this will happen.public MarriageOfferDeclinedTimedTask getMarriageOfferDeclinedTask(ch.sahits.game.openpatrician.model.IPlayer player)
player - who declined the offer.public WeaponConstructionTask getWeaponConstructionFinishedTask(ch.sahits.game.openpatrician.model.weapon.IArmory armory, ch.sahits.game.openpatrician.model.weapon.EWeapon weapon)
armory - in which the weapon was buildtweapon - type that was built.public UpdatePopulationTask getUpdatePopulationTask(java.time.LocalDateTime executionTime, ch.sahits.game.openpatrician.model.city.EPopulationClass populationClass, int delta, ch.sahits.game.openpatrician.model.city.ICity city)
executionTime - when the task is to be executed.populationClass - population class to be updateddelta - of the population change (can be negative)city - in which the population should be updated.public ClearCityEventTask getClearCityEventTask(java.time.LocalDateTime executionTime, ch.sahits.game.openpatrician.model.city.ICity city)
executionTime - when the task is to be executed.city - for which the event is to be cleared.public PostStateDialogToHumanPlayerTask getPostStateDialogMessageTask(java.time.LocalDateTime executionTime, ch.sahits.game.openpatrician.model.ui.IDialogState state, ch.sahits.game.openpatrician.model.IPlayer player, java.lang.String messageKey, java.lang.Object[] messageParams)
executionTime - when the task is to be executed.state - on which the dialog is basedplayer - for which the dialog is to be postedmessageKey - key of the dialogmessageParams - message parametersCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.