-display the number of cards you own with the same name for each individual card in the shop
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-20 13:50:58 +00:00
parent 283987c0eb
commit 04d429b82c
4 changed files with 73 additions and 9 deletions
+6 -1
View File
@@ -8,6 +8,7 @@
#include "../include/PriceList.h"
#include "../include/PlayerData.h"
#include "../include/CardDisplay.h"
#include "../include/DeckDataWrapper.h"
#include <string>
using std::string;
@@ -25,12 +26,15 @@ class ShopItem:public JGuiObject{
JQuad * thumb;
float mScale;
float mTargetScale;
DeckDataWrapper * mDDW;
public:
int nameCount;
int quantity;
MTGCard * card;
int price;
ShopItem(int id, JLBFont * font, int _cardid, int x, int y, bool hasFocus, MTGAllCards * collection, int _price);
ShopItem(int id, JLBFont * font, int _cardid, int x, int y, bool hasFocus, MTGAllCards * collection, int _price, DeckDataWrapper * ddw);
ShopItem(int id, JLBFont * font, char* text, JQuad * _quad, JQuad * _thumb,int x, int y, bool hasFocus, int _price);
~ShopItem();
@@ -57,6 +61,7 @@ class ShopItems:public JGuiController,public JGuiListener{
MTGCardInstance * displayCards[100];
CardDisplay * display;
void safeDeleteDisplay();
DeckDataWrapper * myCollection;
public:
ShopItems(int id, JGuiListener* listener, JLBFont* font, int x, int y, MTGAllCards * _collection, int _setIds[]);
~ShopItems();