@Service @Lazy @DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class) public class ServerSideTaskFactory extends ClientServerTaskFactory
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
| Constructor and Description |
|---|
ServerSideTaskFactory() |
| Modifier and Type | Method and Description |
|---|---|
ch.sahits.game.openpatrician.model.event.TimedTask |
getAIShipRepairTask(org.joda.time.DateTime 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,
org.joda.time.DateTime deadline)
Create the timed task for the church upgrade.
|
LoanerCollectMoneyAfterAuctionTimedTask |
getLoanerCollectMoneyAfterAuctionTask(ch.sahits.game.openpatrician.model.city.impl.IDebt debt,
org.joda.time.DateTime 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,
org.joda.time.DateTime 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,
MarriageBrokerAnnouncementState state,
org.joda.time.DateTime deadLine)
Retrieve a timed task for the marriage offer.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getPirateRepairTask(org.joda.time.DateTime 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
|
PlageTimedTask |
getPlagueTask(int popultation,
int duration,
ch.sahits.game.openpatrician.model.city.ICity city,
org.joda.time.DateTime plagueStart,
org.joda.time.DateTime plagueEnd)
Create the timed event for the plage info message
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getRefitShipTask(org.joda.time.DateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.ship.EShipUpgrade upgrade,
ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
Retrieve the ship refit task.
|
ch.sahits.game.openpatrician.model.event.TimedTask |
getRepairTask(org.joda.time.DateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
Retrieve the ship repair task.
|
ch.sahits.game.openpatrician.model.city.impl.IShipBuildTask |
getShipBuildTask(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)
Retrieve the ship build task.
|
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.
|
getCelebrationEvent, getMarriageCelebrationEventpublic ch.sahits.game.openpatrician.model.event.TimedTask getRepairTask(org.joda.time.DateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
public ch.sahits.game.openpatrician.model.city.impl.IShipBuildTask getShipBuildTask(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)
public ch.sahits.game.openpatrician.model.event.TimedTask getRefitShipTask(org.joda.time.DateTime executionTime,
ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.ship.EShipUpgrade upgrade,
ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.city.IShipyard shipyard)
public ch.sahits.game.openpatrician.model.event.TimedTask getPirateRepairTask(org.joda.time.DateTime 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(org.joda.time.DateTime 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 getWeeklyLoanerCheck()
public ch.sahits.game.openpatrician.model.event.TimedTask getWeeklyCityCheck()
public MarriageOfferTask getMarriageOfferTask(ch.sahits.game.openpatrician.model.IAIPlayer player, MarriageBrokerAnnouncementState state, org.joda.time.DateTime deadLine)
player - that is addressedstate - of the marraiage offer announcementdeadLine - when the offer will happen.public PlageTimedTask getPlagueTask(int popultation, int duration, ch.sahits.game.openpatrician.model.city.ICity city, org.joda.time.DateTime plagueStart, org.joda.time.DateTime plagueEnd)
popultation - of the cityduration - of the plaguecity - where the plague is wastingplagueStart - date of the plage startplagueEnd - date of the plague end and the display datepublic ChurchUpgradeTimedTask getChurchUpgradeTask(ch.sahits.game.openpatrician.model.city.IChurch church, org.joda.time.DateTime deadline)
church - to be upgreadeddeadline - when it will happenpublic LoanerCollectMoneyAfterAuctionTimedTask getLoanerCollectMoneyAfterAuctionTask(ch.sahits.game.openpatrician.model.city.impl.IDebt debt, org.joda.time.DateTime 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, org.joda.time.DateTime 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.Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.