No code change just reformatting of header files.
finishing up my reformatting of the source from November/December following the guidelines that were posted. some extra things I added: * Any empty virtual declarations were kept to one line. * Enums were split up into separate lines to promote uniformity across all headers. ( each header file had a different style for enums)
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#include <map>
|
||||
#include "DeckStats.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
enum DECK_DIFFICULTY
|
||||
{
|
||||
@@ -14,54 +13,55 @@ enum DECK_DIFFICULTY
|
||||
NORMAL = 0,
|
||||
EASY = 1
|
||||
};
|
||||
|
||||
class DeckMetaData {
|
||||
|
||||
class DeckMetaData
|
||||
{
|
||||
private:
|
||||
string _filename;
|
||||
string _filename;
|
||||
|
||||
string _desc;
|
||||
string _name;
|
||||
int _deckid;
|
||||
string _avatarFilename;
|
||||
string _desc;
|
||||
string _name;
|
||||
int _deckid;
|
||||
string _avatarFilename;
|
||||
|
||||
// statistical information
|
||||
|
||||
int _nbGamesPlayed, _victories, _percentVictories, _difficulty;
|
||||
// statistical information
|
||||
|
||||
int _nbGamesPlayed, _victories, _percentVictories, _difficulty;
|
||||
|
||||
public:
|
||||
DeckMetaData();
|
||||
DeckMetaData(string filename, Player * statsPlayer);
|
||||
void load(string filename);
|
||||
void loadStatsForPlayer( Player * statsPlayer, string deckStatsFileName = "" );
|
||||
|
||||
// Accessors
|
||||
string getFilename();
|
||||
string getDescription();
|
||||
string getName();
|
||||
string getAvatarFilename();
|
||||
int getAvatarId(int deckId);
|
||||
string getStatsSummary();
|
||||
DeckMetaData();
|
||||
DeckMetaData(string filename, Player * statsPlayer);
|
||||
void load(string filename);
|
||||
void loadStatsForPlayer(Player * statsPlayer, string deckStatsFileName = "");
|
||||
|
||||
int getDeckId();
|
||||
int getGamesPlayed();
|
||||
int getVictories();
|
||||
int getVictoryPercentage();
|
||||
int getDifficulty();
|
||||
string getDifficultyString();
|
||||
// Accessors
|
||||
string getFilename();
|
||||
string getDescription();
|
||||
string getName();
|
||||
string getAvatarFilename();
|
||||
int getAvatarId(int deckId);
|
||||
string getStatsSummary();
|
||||
|
||||
int getDeckId();
|
||||
int getGamesPlayed();
|
||||
int getVictories();
|
||||
int getVictoryPercentage();
|
||||
int getDifficulty();
|
||||
string getDifficultyString();
|
||||
|
||||
};
|
||||
|
||||
class DeckMetaDataList {
|
||||
class DeckMetaDataList
|
||||
{
|
||||
private:
|
||||
map<string,DeckMetaData *>values;
|
||||
map<string, DeckMetaData *> values;
|
||||
|
||||
public:
|
||||
void invalidate(string filename);
|
||||
DeckMetaData * get(string filename, Player * statsPlayer = NULL);
|
||||
~DeckMetaDataList();
|
||||
static DeckMetaDataList * decksMetaData;
|
||||
void invalidate(string filename);
|
||||
DeckMetaData * get(string filename, Player * statsPlayer = NULL);
|
||||
~DeckMetaDataList();
|
||||
static DeckMetaDataList * decksMetaData;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user