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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user