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 Detail

      • handleMarriageWareDelivery

        void handleMarriageWareDelivery​(IAIPlayer player,
                                        MarriageFeastRequestState state)
        Handle the request to deliver marriage wares.
        Parameters:
        player - that is requested to deliver the wares
        state - request details
      • handleDonationRequest

        void handleDonationRequest​(IAIPlayer player,
                                   DonationRequestState state)
        Handle a donation request.
        Parameters:
        player - that is requested to deliver the wares
        state - request details
      • initializeNewShip

        void initializeNewShip​(IShip ship,
                               IAIPlayer player)
        Method to handle the initializing of a trade strategy for a new ship.
        Parameters:
        ship - to be initialized
        player - for whom the ship is to be initialized