@Service
@Lazy
@DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class)
public class ClientTaskFactory
extends ch.sahits.game.openpatrician.clientserverinterface.service.ClientServerTaskFactory
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
| Constructor and Description |
|---|
ClientTaskFactory() |
| Modifier and Type | Method and Description |
|---|---|
IBreakInAction |
getBreakInAction(ch.sahits.game.openpatrician.model.IPlayer opponent)
Retrieve the task for breaking in into an opponents office.
|
BuyWares |
getBuyWares(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX cityPlayerProxy,
ch.sahits.game.openpatrician.model.people.IBuyer buyer)
Retrieve the timed task for buying wares.
|
ConcurrentReconciliation |
getConcurrentReconciliation()
Retrieve the concurrent reconsiliation timer task.
|
IDelayedCaughtAction |
getDelayedCaughtAction(ch.sahits.game.openpatrician.model.IPlayer player)
Retrieve the delayed caught timed task.
|
FinedTimedTask |
getFinedTask(ch.sahits.game.openpatrician.model.IHumanPlayer player,
int fine,
String messageKey,
org.joda.time.DateTime deadline)
Create a timed task for a fine.
|
FreePirateTimedTask |
getFreePirateTask(ch.sahits.game.openpatrician.model.people.INonFreeSeaPirate seaPirate,
org.joda.time.DateTime deadline)
Create a timed task to free a non free sea pirate.
|
MarriageOfferTimedTask |
getMarriageOfferTask(ch.sahits.game.openpatrician.model.IHumanPlayer player,
ch.sahits.game.openpatrician.clientserverinterface.model.event.MarriageBrokerAnnouncementState state,
org.joda.time.DateTime deadLine)
Create a timed task for the marriage offer.
|
OpponentsOrder |
getOpponentsOrder(ch.sahits.game.openpatrician.model.IPlayer opponent,
ch.sahits.game.openpatrician.model.IPlayer client,
ch.sahits.game.openpatrician.model.IPlayer player,
int premium)
Retrieve the oponents order.
|
PostponedDisplayDialogMessage |
getPostponedDisplayDialogMessage(org.joda.time.DateTime executionTime,
DialogTemplate template)
Retrieve the postponed display message task.
|
PostponedDisplayMessage |
getPostponedDisplayMessage(org.joda.time.DateTime executionTime,
String messageKey,
Object... messageArgs)
Retrieve the postponed display message task.
|
ChurchFeedingReputationUpdateTimedTask |
getReputationUpdateTaskChurchFeeding(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player,
int amountBeggers,
org.joda.time.DateTime deadline)
Create a timed task for the reputation update upon a church feeding.
|
TravelToTimedTask |
getTravelToDelayed(javafx.geometry.Point2D destination,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
Optional<ch.sahits.game.openpatrician.model.city.ICity> city)
Create a timed task for the delayed traveling event triggered and handled by the map view.
|
WarehouseTentantLeaveTimedTask |
getWarehouseTenantLeaving(ch.sahits.game.openpatrician.model.building.ITradingOffice office,
ch.sahits.game.openpatrician.model.people.IWarehouseTenant tenant,
org.joda.time.DateTime dealine)
Create a timed task for the leaving of the warehouse tenant.
|
WarehouseTenantPayTimedTask |
getWarehouseTenantPayment(ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.people.IWarehouseTenant tenant,
org.joda.time.DateTime deadLine)
Create a timed task for the payment of the warehouse tenant.
|
public OpponentsOrder getOpponentsOrder(ch.sahits.game.openpatrician.model.IPlayer opponent, ch.sahits.game.openpatrician.model.IPlayer client, ch.sahits.game.openpatrician.model.IPlayer player, int premium)
opponent - playerclient - who gives the orderplayer - the order executorpremium - on successful executionpublic ConcurrentReconciliation getConcurrentReconciliation()
public BuyWares getBuyWares(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX cityPlayerProxy, ch.sahits.game.openpatrician.model.people.IBuyer buyer)
cityPlayerProxy - proxy instancebuyer - clientpublic IDelayedCaughtAction getDelayedCaughtAction(ch.sahits.game.openpatrician.model.IPlayer player)
player - that is caughtpublic IBreakInAction getBreakInAction(ch.sahits.game.openpatrician.model.IPlayer opponent)
opponent - .public PostponedDisplayMessage getPostponedDisplayMessage(org.joda.time.DateTime executionTime, String messageKey, Object... messageArgs)
executionTime - when the message should pop upmessageKey - .public PostponedDisplayDialogMessage getPostponedDisplayDialogMessage(org.joda.time.DateTime executionTime, DialogTemplate template)
executionTime - when the message should pop uptemplate - .public FinedTimedTask getFinedTask(ch.sahits.game.openpatrician.model.IHumanPlayer player, int fine, String messageKey, org.joda.time.DateTime deadline)
player - the fined playerfine - positive fine amountmessageKey - message key of the fine messagedeadline - time of the eventpublic MarriageOfferTimedTask getMarriageOfferTask(ch.sahits.game.openpatrician.model.IHumanPlayer player, ch.sahits.game.openpatrician.clientserverinterface.model.event.MarriageBrokerAnnouncementState state, org.joda.time.DateTime deadLine)
player - for whom the off isstate - of the marriage announcemntdeadLine - of the task executionpublic TravelToTimedTask getTravelToDelayed(javafx.geometry.Point2D destination, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, Optional<ch.sahits.game.openpatrician.model.city.ICity> city)
destination - coordinates on the screenvessel - that travelscity - if the destination is a citypublic WarehouseTenantPayTimedTask getWarehouseTenantPayment(ch.sahits.game.openpatrician.model.IPlayer player, ch.sahits.game.openpatrician.model.people.IWarehouseTenant tenant, org.joda.time.DateTime deadLine)
player - to which the payment is being made.tenant - who does the paymentdeadLine - when the payment happenspublic WarehouseTentantLeaveTimedTask getWarehouseTenantLeaving(ch.sahits.game.openpatrician.model.building.ITradingOffice office, ch.sahits.game.openpatrician.model.people.IWarehouseTenant tenant, org.joda.time.DateTime dealine)
office - which is occupied by the tenanttenant - who is leavingdealine - date of the leavingpublic FreePirateTimedTask getFreePirateTask(ch.sahits.game.openpatrician.model.people.INonFreeSeaPirate seaPirate, org.joda.time.DateTime deadline)
seaPirate - to be freed.deadline - when it will happenpublic ChurchFeedingReputationUpdateTimedTask getReputationUpdateTaskChurchFeeding(ch.sahits.game.openpatrician.model.city.ICity city, ch.sahits.game.openpatrician.model.IPlayer player, int amountBeggers, org.joda.time.DateTime deadline)
city - where the feeding happendplayer - who sponsored the feedingamountBeggers - amount of feed beggarsdeadline - when it will happenCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.