Coverage Summary for Class: TypeCommand (it.polimi.ingsw.controller)
Class | Class, % | Method, % | Line, % |
---|---|---|---|
TypeCommand | 100% (1/ 1) | 100% (4/ 4) | 100% (7/ 7) |
1 package it.polimi.ingsw.controller;
2
3 /**
4 * A class to map functions to launch on server side to a client type command
5 * naming
6 */
7 enum TypeCommand {
8 CURRENT_PLAYER("currentPlayer"), GAME_PHASE("gamePhase"), GAME_MODE("gameMode"), PLAYER("player"), GOD("god"),
9 GOD_LIST("godList"), ACTION("action"), BOARD("board"), PLAYER_STATUS("playerStatus"), COLOR("color");
10
11 /**
12 * Client side's value of the specified type of command
13 */
14 private final String value;
15
16 /**
17 * TypeCommand Constructor
18 *
19 * @param value client side's value of the specified type of command
20 */
21 private TypeCommand(String value) {
22 this.value = value;
23 }
24
25 /**
26 * Get client side's value of the specified type of command
27 *
28 * @return client side's value
29 */
30 public String getValue() {
31 return value;
32 }
33
34 }