-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoGame.cpp
More file actions
73 lines (62 loc) · 1.24 KB
/
VideoGame.cpp
File metadata and controls
73 lines (62 loc) · 1.24 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
#include "VideoGame.h"
VideoGame::VideoGame()
{
this->title = "";
this->genres = "";
this->max_players = 0;
this->review_score = 0;
this->price = 0;
this->console = "";
this->rating = "";
this->year = 0;
this->completion = 0;
}
VideoGame::VideoGame(std::string title, std::string genres, int max_players, int review_score, float price,
std::string console, std::string rating, int year, float completion)
{
this->title = title;
this->genres = genres;
this->max_players = max_players;
this->review_score = review_score;
this->price = price;
this->console = console;
this->rating = rating;
this->year = year;
this->completion = completion;
}
std::string VideoGame::getTitle()
{
return title;
}
std::string VideoGame::getGenres()
{
return genres;
}
int VideoGame::getPlayers() const
{
return max_players;
}
int VideoGame::getReview() const
{
return review_score;
}
float VideoGame::getPrice() const
{
return price;
}
std::string VideoGame::getConsole()
{
return console;
}
std::string VideoGame::getRating()
{
return rating;
}
int VideoGame::getYear() const
{
return year;
}
float VideoGame::getCompletion() const
{
return completion;
}