Class NoTowersInfluence
java.lang.Object
it.polimi.ingsw.eriantys.model.influence.CommonInfluence
it.polimi.ingsw.eriantys.model.influence.NoTowersInfluence
- All Implemented Interfaces:
InfluenceCalculator
This concrete implementation for the state design pattern involving
InfluenceCalculator
defines the Centaur's CharacterCard effect.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class it.polimi.ingsw.eriantys.model.influence.CommonInfluence
evaluateColor, evaluateTowers
-
Constructor Details
-
NoTowersInfluence
public NoTowersInfluence()
-
-
Method Details
-
calculate
public int calculate(Player player, IslandGroup island, Set<Color> ownedProfessors) throws InvalidArgumentException Description copied from interface:InfluenceCalculatorThe method evaluates the influence of aPlayeron a certain island.- Specified by:
calculatein interfaceInfluenceCalculator- Overrides:
calculatein classCommonInfluence- 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
-