@Service
@Lazy
@DependentInitialisation(value=ch.sahits.game.openpatrician.model.initialisation.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.clientserverinterface.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,
ch.sahits.game.openpatrician.model.city.ICity where)
Retrieve the delayed caught timed task.
|
FinedTimedTask |
getFinedTask(ch.sahits.game.openpatrician.model.IHumanPlayer player,
int fine,
String messageKey,
java.time.LocalDateTime deadline)
Create a timed task for a fine.
|
FreePirateTimedTask |
getFreePirateTask(ch.sahits.game.openpatrician.model.people.INonFreeSeaPirate seaPirate,
java.time.LocalDateTime 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,
java.time.LocalDateTime 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.
|
ch.sahits.game.openpatrician.clientserverinterface.event.PostponedDisplayDialogMessage |
getPostponedDisplayDialogMessage(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ui.DialogTemplate template)
Retrieve the postponed display message task.
|
ch.sahits.game.openpatrician.clientserverinterface.event.PostponedDisplayMessage |
getPostponedDisplayMessage(java.time.LocalDateTime 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,
java.time.LocalDateTime 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,
java.time.LocalDateTime 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,
java.time.LocalDateTime 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.clientserverinterface.client.ICityPlayerProxyJFX cityPlayerProxy, ch.sahits.game.openpatrician.model.people.IBuyer buyer)
cityPlayerProxy - proxy instancebuyer - clientpublic IDelayedCaughtAction getDelayedCaughtAction(ch.sahits.game.openpatrician.model.IPlayer player, ch.sahits.game.openpatrician.model.city.ICity where)
player - that is caughtpublic IBreakInAction getBreakInAction(ch.sahits.game.openpatrician.model.IPlayer opponent)
opponent - .public ch.sahits.game.openpatrician.clientserverinterface.event.PostponedDisplayMessage getPostponedDisplayMessage(java.time.LocalDateTime executionTime,
String messageKey,
Object... messageArgs)
executionTime - when the message should pop upmessageKey - .public ch.sahits.game.openpatrician.clientserverinterface.event.PostponedDisplayDialogMessage getPostponedDisplayDialogMessage(java.time.LocalDateTime executionTime,
ch.sahits.game.openpatrician.model.ui.DialogTemplate template)
executionTime - when the message should pop uptemplate - .public FinedTimedTask getFinedTask(ch.sahits.game.openpatrician.model.IHumanPlayer player, int fine, String messageKey, java.time.LocalDateTime 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, java.time.LocalDateTime 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, java.time.LocalDateTime 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, java.time.LocalDateTime 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, java.time.LocalDateTime 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, java.time.LocalDateTime deadline)
city - where the feeding happendplayer - who sponsored the feedingamountBeggers - amount of feed beggarsdeadline - when it will happenCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.