Added MNGuyen's improved and alphabatized deck handling(noticeable speed increase btween menus) and almosthumane's automated pass phase option.

This commit is contained in:
omegablast2002@yahoo.com
2010-09-08 11:44:11 +00:00
parent 1f01b10010
commit 79ea200d97
15 changed files with 301 additions and 13 deletions
+11
View File
@@ -2,16 +2,25 @@
#define _DECKMETADATA_H_
#include <string>
#include <vector>
#include <map>
using namespace std;
class DeckMetaData {
public:
DeckMetaData();
DeckMetaData(string filename);
void load(string filename);
bool operator<(DeckMetaData b);
string desc;
string name;
int deckid;
string& trim(string &str);
string& ltrim(string &str);
string& rtrim(string &str);
};
class DeckMetaDataList {
@@ -20,6 +29,8 @@ public:
DeckMetaData * get(string filename);
~DeckMetaDataList();
static DeckMetaDataList * decksMetaData;
private:
map<string,DeckMetaData *>values;
};