Class AbstractEngine
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.AbstractEngine
-
- Direct Known Subclasses:
AIPlayerEngine,AuctionEngine,AutomaticTradingEngine,BlacksmithEngine,BlockadeEngine,CaptainEngine,ChurchEngine,CityEngine,CityHallEngine,EventEngine,GuildEngine,HumanPlayerEngine,LoanerEngine,PirateEngine,PlayerEngine,ReputationEngine,ShipyardEngine,TavernEngine
public abstract class AbstractEngine extends java.lang.ObjectThis is the base class for all engine classes. An engine dives a certain aspect of the game. As everything is event driven through the AsyncEventBus the engine will be triggered in a separate thread.- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Jan 22, 2014
-
-
Constructor Summary
Constructors Constructor Description AbstractEngine()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.util.List<AbstractEngine>getChildren()Any engine may hold various child engines.
-
-
-
Method Detail
-
getChildren
public abstract java.util.List<AbstractEngine> getChildren()
Any engine may hold various child engines. This is the way to retrieve them. If there are no child engines, return an empty list. Subclasses have to implement this in the proper way.- Returns:
- list of child engines.
-
-