Class FourPlayerStrategy
java.lang.Object
it.polimi.ingsw.server.model.game_logic.number_of_player_strategy.FourPlayerStrategy
- All Implemented Interfaces:
NumberOfPlayersStrategy
- Direct Known Subclasses:
ExpertFourPlayerStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprivate final intprotected final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfluence(List<SchoolBoard> schoolBoards, Archipelago archipelago) intintintinitializeSchoolBoards(StudentFactory studentFactory)
-
Field Details
-
numberOfPlayers
protected final int numberOfPlayers- See Also:
-
numberOfStudentsInEachCloud
private final int numberOfStudentsInEachCloud- See Also:
-
numberOfStudentsInTheEntrance
protected final int numberOfStudentsInTheEntrance- See Also:
-
numberOfTowers
private final int numberOfTowers- See Also:
-
-
Constructor Details
-
FourPlayerStrategy
public FourPlayerStrategy()
-
-
Method Details
-
getNumberOfStudentsInEachCloud
public int getNumberOfStudentsInEachCloud()- Specified by:
getNumberOfStudentsInEachCloudin interfaceNumberOfPlayersStrategy
-
getNumberOfStudentsInTheEntrance
public int getNumberOfStudentsInTheEntrance()- Specified by:
getNumberOfStudentsInTheEntrancein interfaceNumberOfPlayersStrategy
-
initializeSchoolBoards
public List<SchoolBoard> initializeSchoolBoards(StudentFactory studentFactory) throws EmptyStudentSupplyException - Specified by:
initializeSchoolBoardsin interfaceNumberOfPlayersStrategy- Throws:
EmptyStudentSupplyException
-
getInfluence
- Specified by:
getInfluencein interfaceNumberOfPlayersStrategy- Parameters:
schoolBoards- is a Listcontaining the list of all schoolBoards archipelago- is the Archipelago on which the influence calculated- Returns:
- a Mapinvalid input: '<'Integer, Integer> where the key is the schoolBoardId and the value is the influence on the inputed archipelago
-
getNumberOfTowers
public int getNumberOfTowers()- Specified by:
getNumberOfTowersin interfaceNumberOfPlayersStrategy
-