summaryrefslogtreecommitdiff
path: root/src/client/SaveInfo.h
blob: 3f52c2532eaa8f7a151dfe6f01e33005cb958d7d (plain)
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
#ifndef SAVE_H
#define SAVE_H

#include <vector>
#include <string>
#include <stdlib.h>
#include <iostream>

class GameSave;

class SaveInfo
{
private:
public:
	int id;
	int date;
	int votesUp, votesDown;
	bool Favourite;
	int Comments;
	int Views;
	int Version;

	GameSave * gameSave;

	SaveInfo(SaveInfo & save);

	SaveInfo(int _id, int _date, int _votesUp, int _votesDown, std::string _userName, std::string _name);

	SaveInfo(int _id, int date_, int _votesUp, int _votesDown, int _vote, std::string _userName, std::string _name, std::string description_, bool published_, std::vector<std::string> tags);

	~SaveInfo();

	std::string userName;
	std::string name;

	std::string Description;

	std::vector<std::string> tags;

	int vote;

	bool Published;

	void SetName(std::string name);
	std::string GetName();

	void SetDescription(std::string description);
	std::string GetDescription();

	void SetPublished(bool published);
	bool GetPublished();

	void SetUserName(std::string userName);
	std::string GetUserName();

	void SetID(int id);
	int GetID();

	void SetVote(int vote);
	int GetVote();

	void SetVotesUp(int votesUp);
	int GetVotesUp();

	void SetVotesDown(int votesDown);
	int GetVotesDown();

	void SetVersion(int version);
	int GetVersion();

	void SetTags(std::vector<std::string> tags);
	std::vector<std::string> GetTags();

	GameSave * GetGameSave();
	void SetGameSave(GameSave * gameSave);
};

#endif // SAVE_H