summaryrefslogtreecommitdiff
path: root/src/client/Client.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-10 18:52:24 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-10 18:52:24 (GMT)
commitfd572e9da68385d13a147164cd07d50160f2fc69 (patch)
tree2cd99a57db8f11f4d41defe4ca4253553cd0b562 /src/client/Client.h
parentcdc4b4df86d61abf8fe08fe120afcb2393755660 (diff)
downloadpowder-fd572e9da68385d13a147164cd07d50160f2fc69.zip
powder-fd572e9da68385d13a147164cd07d50160f2fc69.tar.gz
Change stamp storage to a list, insert new stamps at the begining, 'l' loads the first stamp or the previously used stamp, 'k' shows the stamp browser
Diffstat (limited to 'src/client/Client.h')
-rw-r--r--src/client/Client.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/Client.h b/src/client/Client.h
index 53f0e79..6c1baa5 100644
--- a/src/client/Client.h
+++ b/src/client/Client.h
@@ -3,6 +3,7 @@
#include <queue>
#include <vector>
+#include <list>
#include <fstream>
#include "Config.h"
@@ -30,7 +31,7 @@ class Client: public Singleton<Client> {
private:
std::string lastError;
- vector<string> stampIDs;
+ list<string> stampIDs;
int lastStampTime;
int lastStampName;
@@ -58,7 +59,9 @@ public:
SaveFile * GetStamp(string stampID);
void DeleteStamp(string stampID);
string AddStamp(GameSave * saveData);
- vector<string> GetStamps();
+ vector<string> GetStamps(int start, int count);
+ int GetStampsCount();
+ SaveFile * GetFirstStamp();
unsigned char * GetSaveData(int saveID, int saveDate, int & dataLength);
LoginStatus Login(string username, string password, User & user);