Class CityWallMaterialBuyingTask
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.event.TimedTask
-
- ch.sahits.game.openpatrician.engine.land.city.internal.CityWallMaterialBuyingTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class CityWallMaterialBuyingTask extends TimedTask
Task for the buying the material for the city wall building.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Jun 05, 2015
-
-
Field Summary
Fields Modifier and Type Field Description private ICityHall
cityHall
private ComputablePriceV2
computablePrice
private Date
date
private EngineFactory
engineFactory
private TimedUpdatableTaskList
timedTaskListener
-
Constructor Summary
Constructors Constructor Description CityWallMaterialBuyingTask(ICityHall cityHall, java.time.LocalDateTime electionTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Check the amount of bricks required and if the price is not too heigh buy it.java.lang.String
toString()
-
-
-
Field Detail
-
cityHall
private final ICityHall cityHall
-
engineFactory
@Autowired private EngineFactory engineFactory
-
timedTaskListener
@Autowired private TimedUpdatableTaskList timedTaskListener
-
computablePrice
@Autowired private ComputablePriceV2 computablePrice
-
date
@Autowired private Date date
-
-
Constructor Detail
-
CityWallMaterialBuyingTask
public CityWallMaterialBuyingTask(ICityHall cityHall, java.time.LocalDateTime electionTime)
-
-