Coverage Summary for Class: StartGameRequest (it.polimi.ingsw.Server.Messages.Events.Requests)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| StartGameRequest | 0% (0/1) | 0% (0/2) | 0% (0/3) |
1 package it.polimi.ingsw.Server.Messages.Events.Requests; 2 3 import it.polimi.ingsw.Model.Enums.GameMode; 4 5 import java.io.Serial; 6 7 /** 8 * Represents a Client triying to start a game in a {@link it.polimi.ingsw.Server.Lobby} 9 */ 10 public class StartGameRequest extends ClientRequest { 11 @Serial 12 private static final long serialVersionUID = 356L; 13 private final GameMode gameMode; 14 15 /** 16 * Construct the request 17 * 18 * @param gameMode a variant of {@link GameMode} to select the rules of the game to apply (simplified or advanced) 19 */ 20 public StartGameRequest(GameMode gameMode) { 21 this.gameMode = gameMode; 22 } 23 24 /** 25 * Get the selected game mode 26 * 27 * @return a variant of {@link GameMode} to select the rules of the game to apply (simplified or advanced) 28 */ 29 public GameMode getGameMode() { 30 return gameMode; 31 } 32 }