Class ReschedulableWeaponBuyTask
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.event.TimedTask
-
- ch.sahits.game.openpatrician.clientserverinterface.model.task.ReschedulableWeaponBuyTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class ReschedulableWeaponBuyTask extends TimedTask
Schedule to buy weapons from the armory. This tas reschedules itself daily until the required amount is bough.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on Oct 07, 2018
-
-
Field Summary
Fields Modifier and Type Field Description private ICity
city
private Date
date
private IShip
ship
private ShipService
shipService
private ClientServerTaskFactory
taskFactory
private TimedUpdatableTaskList
taskList
private BuyWeapons
weaponsToBuy
-
Constructor Summary
Constructors Constructor Description ReschedulableWeaponBuyTask(IShip ship, BuyWeapons weaponsToBuy, ICity city)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
java.lang.String
toString()
-
-
-
Field Detail
-
ship
private final IShip ship
-
weaponsToBuy
private final BuyWeapons weaponsToBuy
-
city
private final ICity city
-
shipService
@Autowired private ShipService shipService
-
taskList
@Autowired private TimedUpdatableTaskList taskList
-
date
@Autowired private Date date
-
taskFactory
@Autowired @Qualifier("serverSideTaskFactory") private ClientServerTaskFactory taskFactory
-
-
Constructor Detail
-
ReschedulableWeaponBuyTask
public ReschedulableWeaponBuyTask(IShip ship, BuyWeapons weaponsToBuy, ICity city)
-
-