added option to save deck in editor as an AI deck.

No option to delete or edit the AI deck once it has been created.
The deck gets saved as the canonical form of the deck to match other AI deck formats.
This commit is contained in:
techdragon.nguyen@gmail.com
2010-10-22 08:28:52 +00:00
parent 3e601a950c
commit 34335ba2aa
4 changed files with 95 additions and 18 deletions

View File

@@ -58,6 +58,7 @@ enum DECK_VIEWER_MENU_ITEMS
MENU_ITEM_SWITCH_DECKS_NO_SAVE = 2,
MENU_ITEM_MAIN_MENU = 3,
MENU_ITEM_EDITOR_CANCEL = 4,
MENU_ITEM_SAVE_AS_AI_DECK = 5,
MENU_ITEM_YES = 20,
MENU_ITEM_NO = 21,
MENU_ITEM_FILTER_BY = 22
@@ -156,9 +157,11 @@ private:
MTGCard * cardIndex[7];
int hudAlpha;
string newDeckname;
bool isAIDeckSave;
StatsWrapper stw;
bool mSwitching;
void saveDeck(); //Saves the deck and additional necessary information
void saveAsAIDeck(string deckName); // saves deck as an AI Deck
int getCurrentPos();
public: