public class AuctionEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
static int |
BID_DELTA |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private EngineFactory |
factory |
private ScheduledExecutorService |
timer |
| Constructor and Description |
|---|
AuctionEngine() |
| Modifier and Type | Method and Description |
|---|---|
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
void |
handleBid(AuctionBid bid) |
void |
handleBidLevelChange(AuctionBidLevel change) |
private void |
init() |
void |
startAuction(ch.sahits.game.openpatrician.model.city.guild.IAuction auction,
List<ch.sahits.game.openpatrician.model.IAIPlayer> players) |
private void |
unregister() |
public static final int BID_DELTA
@Autowired @Qualifier(value="serverTimer") private ScheduledExecutorService timer
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private EngineFactory factory
@PostConstruct private void init()
@PreDestroy private void unregister()
public void startAuction(ch.sahits.game.openpatrician.model.city.guild.IAuction auction,
List<ch.sahits.game.openpatrician.model.IAIPlayer> players)
public void handleBid(AuctionBid bid)
public void handleBidLevelChange(AuctionBidLevel change)
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEngineCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.