Interface IAIEventHandler
-
- All Known Implementing Classes:
AIPlayerEngine
public interface IAIEventHandler
Handle the events triggered by the EventEngine and targeted at an AI player- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 14, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleDonationRequest(IAIPlayer player, DonationRequestState state)
Handle a donation request.void
handleMarriageEvent(IAIPlayer player, MarriageBrokerAnnouncementState state)
Handle the offer of a marriage broker.void
handleMarriageWareDelivery(IAIPlayer player, MarriageFeastRequestState state)
Handle the request to deliver marriage wares.void
initializeNewShip(IShip ship, IAIPlayer player)
Method to handle the initializing of a trade strategy for a new ship.
-
-
-
Method Detail
-
handleMarriageEvent
void handleMarriageEvent(IAIPlayer player, MarriageBrokerAnnouncementState state)
Handle the offer of a marriage broker.- Parameters:
state
- of the marriage broker
-
handleMarriageWareDelivery
void handleMarriageWareDelivery(IAIPlayer player, MarriageFeastRequestState state)
Handle the request to deliver marriage wares.- Parameters:
player
- that is requested to deliver the waresstate
- request details
-
handleDonationRequest
void handleDonationRequest(IAIPlayer player, DonationRequestState state)
Handle a donation request.- Parameters:
player
- that is requested to deliver the waresstate
- request details
-
-