Files
wagic/projects/mtg/include/MTGCard.h
wagic.the.homebrew@gmail.com 05a72de5bc Erwan
- Card Primitives system. Check Royal Assassin in RV, 10E, M10
- Please review, is sets/primitives a good directory? Should we rename MTGCard into "CardPrint"? 
- Unfortunately for now it is not possible to "override" a Primitive. A card that links to a primitive but also defines new "values" will create its own data and ignore the data in the "linked" primitive for the time being. I hope to solve that at some point...
2009-12-27 12:14:36 +00:00

59 lines
781 B
C++

#ifndef _MTGCARD_H_
#define _MTGCARD_H_
#define MTGCARD_NAME_SIZE 30
#define MTG_IMAGE_WIDTH 200
#define MTG_IMAGE_HEIGHT 285
#define MTG_MINIIMAGE_WIDTH 45
#define MTG_MINIIMAGE_HEIGHT 64
#define MAX_TYPES_PER_CARD 10
#include <string>
#include <vector>
#include <map>
class CardPrimitive;
using namespace std;
class MTGCard {
protected:
int mtgid;
char rarity;
char image_name[MTGCARD_NAME_SIZE];
int init();
public:
int setId;
CardPrimitive * data;
MTGCard();
MTGCard(int set_id);
MTGCard(MTGCard * source);
void setMTGId(int id);
int getMTGId();
int getId();
char getRarity();
void setRarity(char _rarity);
//void setImageName( char * value);
char * getImageName ();
void setPrimitive(CardPrimitive * cp);
};
#endif