Interface IAIEventDecisionStrategy
-
- All Known Implementing Classes:
FleetBasedEventDecisionStrategy
,MoneyBasedEventDecisionStrategy
,StorageBasedEventDecisionStrategy
public interface IAIEventDecisionStrategy
Strategy for decing how to react on events.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 18, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
acceptMarriagBrokereOffer(IAIPlayer player)
Decide if the offer of a marriage broker should be accepted.boolean
acceptMarriageOffer(IAIPlayer player)
Decide if a marriage offer should be accepted.boolean
shouldOrderCelebration(IAIPlayer player, ICity city)
Decide if a celebration should be executed.
-
-
-
Method Detail
-
acceptMarriagBrokereOffer
boolean acceptMarriagBrokereOffer(IAIPlayer player)
Decide if the offer of a marriage broker should be accepted.- Parameters:
player
- who has to make the decision- Returns:
- true if the player accepts the marriage broker offer
-
acceptMarriageOffer
boolean acceptMarriageOffer(IAIPlayer player)
Decide if a marriage offer should be accepted.- Parameters:
player
- who has to make the decision- Returns:
- true if hte player accepts the marriage offer
-
-