Fix: missing JavaDoc comments and parameter tags

This commit is contained in:
MatteoPellegrino05
2026-05-06 18:49:45 +02:00
parent 35654f6823
commit c7d8af48cc
36 changed files with 161 additions and 97 deletions
@@ -63,7 +63,13 @@ public class Game implements Serializable {
* The mapping between slots and the players assigned to them.
*/
private HashMap<Slot,Player> slotMap;
public HashMap<Slot,Player> getSlotMap() {return slotMap;};
/**
* Returns the map of slots assigned to players.
*
* @return the map that associates each slot with the corresponding player.
*/
public HashMap<Slot,Player> getSlotMap() {return slotMap;}
/**
* The configured number of players for this game.
@@ -718,22 +724,14 @@ public class Game implements Serializable {
currentState.GameStageUpdate(GameStages.RES_EVENT);
if (currentState.getRound() < 10) {
nextRound();
currentState.PlayerUpdate(orderLogicCard.pull(), null);
currentState.GameStageUpdate(GameStages.SLOT_CHOICE);
} else {
currentState.GameStageUpdate(GameStages.ENDING);
endGame();
}
return;
/**
* Checks whether there are any drawable lower tribe cards on the board,
* i.e. lower tribe cards that are not event cards.
*
* @return {@code true} if at least one non-event lower tribe card is available, {@code false} otherwise.
*/
if (currentState.getRound() < 10) {
nextRound();
currentState.PlayerUpdate(orderLogicCard.pull(), null);
currentState.GameStageUpdate(GameStages.SLOT_CHOICE);
} else {
currentState.GameStageUpdate(GameStages.ENDING);
endGame();
}
}
}