Interface InfluenceCalculator
- All Known Implementing Classes:
BonusInfluence,CommonInfluence,ExcludeColorInfluence,NoTowersInfluence
public interface InfluenceCalculator
The influence calculation during the game is operated by a calculator entity.
This interface encloses a state pattern, which will be implemented by concrete classes.
-
Method Summary
-
Method Details
-
calculate
int calculate(Player player, IslandGroup island, Set<Color> ownedProfessors) throws InvalidArgumentException The method evaluates the influence of aPlayeron a certain island.- Parameters:
player- the main target of the calculationisland- the game location used for the calculationownedProfessors- theColor(s) of the professors which thePlayerowns- Returns:
- the influence value for the given
Playeron the specified island - Throws:
InvalidArgumentException- if one or more parameters are illegal
-