summaryrefslogtreecommitdiff
path: root/src/client/SaveInfo.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-11-17 19:44:09 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-11-17 19:44:09 (GMT)
commit058a2edd75debbd0297f92572316daa704bd379f (patch)
treead303f091f9a08b209b91eb34a9fcad996a3de69 /src/client/SaveInfo.h
parente3594aba9e05c6865d396418c028049cda92c2f3 (diff)
parent7a21ae192fe19868539956f3fe28e62b2c7c4429 (diff)
downloadpowder-058a2edd75debbd0297f92572316daa704bd379f.zip
powder-058a2edd75debbd0297f92572316daa704bd379f.tar.gz
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/client/SaveInfo.h')
-rw-r--r--src/client/SaveInfo.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/client/SaveInfo.h b/src/client/SaveInfo.h
new file mode 100644
index 0000000..3f52c25
--- /dev/null
+++ b/src/client/SaveInfo.h
@@ -0,0 +1,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