Jeck - Added full filtering system to deck editor and shop. I've spent 24hours on pure debugging, but there are likely a couple bugs I've missed. So please, if you find something, make an issue of it! :P Also split OptionItem classes into separate files, and added support for mixed-set boosters (which I think are way, way cool).

This commit is contained in:
wagic.jeck
2010-02-08 01:03:07 +00:00
parent 64d592f588
commit 83e2b04547
31 changed files with 4125 additions and 2742 deletions
+11 -6
View File
@@ -15,6 +15,8 @@
#include "../include/PlayerData.h"
#include "../include/DeckDataWrapper.h"
#include "../include/DeckStats.h"
#include "../include/WDataSrc.h"
#include "../include/WGui.h"
#define NO_USER_ACTIVITY_HELP_DELAY 10
#define NO_USER_ACTIVITY_SHOWCARD_DELAY 0.1
@@ -28,7 +30,8 @@ enum
STAGE_TRANSITION_DOWN = 4,
STAGE_ONSCREEN_MENU = 5,
STAGE_WELCOME = 6,
STAGE_MENU = 7
STAGE_MENU = 7,
STAGE_FILTERS = 8
};
@@ -41,6 +44,8 @@ enum
#define MED_SPEED 5.0
#define LOW_SPEED 1.5
#define MAX_SAVED_FILTERS 8
static const int STATS_FOR_TURNS = 8;
static const int STATS_MAX_MANA_COST = 9;
@@ -100,11 +105,12 @@ private:
int mStage;
int nbDecks;
int deckNum;
int colorFilter;
int useFilter[2];
JMusic * bgMusic;
JQuad * backQuad;
WGuiFilters * filterDeck;
WGuiFilters * filterCollection;
SimpleMenu * welcome_menu;
bool showing_user_deck;
SimpleMenu * menu;
SimpleMenu * sellMenu;
PriceList* pricelist;
@@ -116,7 +122,6 @@ private:
MTGCard * currentCard;
MTGCard * cardIndex[7];
int hudAlpha;
float scrollSpeed;
int delSellMenu;
string newDeckname;
StatsWrapper stw;
@@ -127,12 +132,12 @@ public:
virtual ~GameStateDeckViewer();
void updateDecks();
void rotateCards(int direction);
void loadIndexes(MTGCard * current = NULL);
void loadIndexes();
void updateFilters();
void switchDisplay();
void Start();
virtual void End();
void addRemove(MTGCard * card);
int Remove(MTGCard * card);
virtual void Update(float dt);
void renderOnScreenBasicInfo();
void renderSlideBar();