Coverage Summary for Class: TypeAction (it.polimi.ingsw.view.model)
Class | Class, % | Method, % | Line, % |
---|---|---|---|
TypeAction | 100% (1/ 1) | 100% (2/ 2) | 100% (4/ 4) |
1 package it.polimi.ingsw.view.model;
2
3 /**
4 * Class used to preparse a worker action to get the type
5 */
6 public class TypeAction {
7 /**
8 * Worker action type
9 */
10 private final String typeAction;
11
12 /**
13 * TypeAction Constructor
14 *
15 * @param type worker action type
16 */
17 public TypeAction(String type) {
18 this.typeAction = type;
19 }
20
21 /**
22 * Get Worker Action type
23 *
24 * @return action type
25 */
26 public String getTypeAction() {
27 return typeAction;
28 }
29 }