Class HumanPlayerEngine
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.AbstractEngine
-
- ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
-
public class HumanPlayerEngine extends AbstractEngine
Engine handling automated tasks that are specific to a human player only.
-
-
Constructor Summary
Constructors Constructor Description HumanPlayerEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AbstractEngine>getChildren()Any engine may hold various child engines.voidhandleBuildingAuctionFinished(ch.sahits.game.openpatrician.event.data.BuildingAuctionFinished event)voidhandleBuildingNotAuction(ch.sahits.game.openpatrician.event.data.BuildingNotAuctioned event)voidhandleShipAuctionFinished(ch.sahits.game.openpatrician.event.data.ShipAuctionFinished event)voidhandleShipNotAuction(ch.sahits.game.openpatrician.event.data.ShipNotAuctioned event)
-
-
-
Method Detail
-
getChildren
public java.util.List<AbstractEngine> getChildren()
Description copied from class:AbstractEngineAny 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.- Specified by:
getChildrenin classAbstractEngine- Returns:
- list of child engines.
-
handleShipAuctionFinished
public void handleShipAuctionFinished(ch.sahits.game.openpatrician.event.data.ShipAuctionFinished event)
-
handleShipNotAuction
public void handleShipNotAuction(ch.sahits.game.openpatrician.event.data.ShipNotAuctioned event)
-
handleBuildingAuctionFinished
public void handleBuildingAuctionFinished(ch.sahits.game.openpatrician.event.data.BuildingAuctionFinished event)
-
handleBuildingNotAuction
public void handleBuildingNotAuction(ch.sahits.game.openpatrician.event.data.BuildingNotAuctioned event)
-
-