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)
37 lines
626 B
C++
37 lines
626 B
C++
#ifndef _DECKDATAWRAPPER_H_
|
|
#define _DECKDATAWRAPPER_H_
|
|
|
|
#include "MTGDefinitions.h"
|
|
#include "MTGCard.h"
|
|
#include "CardPrimitive.h"
|
|
#include "WDataSrc.h"
|
|
#include <map>
|
|
#include <string>
|
|
using std::map;
|
|
using std::string;
|
|
|
|
class MTGDeck;
|
|
|
|
class DeckDataWrapper: public WSrcDeck
|
|
{
|
|
public:
|
|
MTGDeck * parent;
|
|
DeckDataWrapper(MTGDeck * deck);
|
|
bool next()
|
|
{
|
|
currentPos++;
|
|
return true;
|
|
}
|
|
;
|
|
bool prev()
|
|
{
|
|
currentPos--;
|
|
return true;
|
|
}
|
|
;
|
|
void save();
|
|
void save(string filepath, bool useExpandedCardNames, string &deckTitle, string &deckDesc);
|
|
};
|
|
|
|
#endif
|