-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGame.java
More file actions
97 lines (87 loc) · 2.2 KB
/
Copy pathGame.java
File metadata and controls
97 lines (87 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
public class Game {
private String id;
private String name;
private String description;
private String publisher;
private Integer maxLimit;
private String address;
private String thumbnail;
/**
* Constructor for a Game object.
*
* @param gId the id of the game
* @param gName the name of the game
* @param gDescription the description of the game
* @param gPublisher the publisher of the game
* @param gLimit the maximum number of players
* @param gAddress the address of the game
* @param gThumbnail the url of the thumbnail of the game image
*/
public Game(String gId, String gName, String gDescription,
String gPublisher, Integer gLimit, String gAddress,
String gThumbnail) {
id = gId;
name = gName;
description = gDescription;
publisher = gPublisher;
maxLimit = gLimit;
address = gAddress;
thumbnail = gThumbnail;
}
/**
* Get method for the game id
*
* @return the id of the game
*/
public String getId() {
return id;
}
/**
* Get method for the game name
*
* @return the name of the game
*/
public String getName() {
return name;
}
/**
* Get method for the game description
*
* @return the description of the game
*/
public String getDescription() {
return description;
}
/**
* Get method for the game publisher
*
* @return the publisher of the game
*/
public String getPublisher() {
return publisher;
}
/**
* Get method for the number of players
*
* @return the maximum number of players
*/
public Integer getLimit() {
return maxLimit;
}
/**
* Get method for the game address
*
* @return the address of the game
*/
public String getAddress() {
return address;
}
/**
* Get method for the url of the thumbnail image
*
* @return the url of the thumbnail image of the game
*/
public String getThumbnail() {
return thumbnail;
}
}