Erwan
-code cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _MTGCARD_H_
|
#ifndef _MTGCARD_H_
|
||||||
#define _MTGCARD_H_
|
#define _MTGCARD_H_
|
||||||
|
|
||||||
#define MTGCARD_NAME_SIZE 30
|
#define MTGCARD_NAME_SIZE 16
|
||||||
|
|
||||||
#define MTG_IMAGE_WIDTH 200
|
#define MTG_IMAGE_WIDTH 200
|
||||||
#define MTG_IMAGE_HEIGHT 285
|
#define MTG_IMAGE_HEIGHT 285
|
||||||
@@ -9,9 +9,6 @@
|
|||||||
#define MTG_MINIIMAGE_WIDTH 45
|
#define MTG_MINIIMAGE_WIDTH 45
|
||||||
#define MTG_MINIIMAGE_HEIGHT 64
|
#define MTG_MINIIMAGE_HEIGHT 64
|
||||||
|
|
||||||
#define MAX_TYPES_PER_CARD 10
|
|
||||||
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ class MTGCardInstance: public CardPrimitive, public MTGCard, public Damageable {
|
|||||||
|
|
||||||
int lifeOrig;
|
int lifeOrig;
|
||||||
MTGPlayerCards * belongs_to;
|
MTGPlayerCards * belongs_to;
|
||||||
MTGAbility * untapBlockerAbilities[10];
|
|
||||||
MTGCardInstance * getNextPartner();
|
MTGCardInstance * getNextPartner();
|
||||||
void initMTGCI();
|
void initMTGCI();
|
||||||
int setDefenser(MTGCardInstance * c);
|
int setDefenser(MTGCardInstance * c);
|
||||||
@@ -57,7 +56,6 @@ class MTGCardInstance: public CardPrimitive, public MTGCard, public Damageable {
|
|||||||
// The recommended method to test for summoning Sickness !
|
// The recommended method to test for summoning Sickness !
|
||||||
int hasSummoningSickness();
|
int hasSummoningSickness();
|
||||||
MTGCardInstance * changeController(Player * newcontroller);
|
MTGCardInstance * changeController(Player * newcontroller);
|
||||||
float changedZoneRecently;
|
|
||||||
Player * owner;
|
Player * owner;
|
||||||
Counters * counters;
|
Counters * counters;
|
||||||
int typeAsTarget(){return TARGET_CARD;}
|
int typeAsTarget(){return TARGET_CARD;}
|
||||||
|
|||||||
@@ -107,7 +107,6 @@ void MTGCardInstance::initMTGCI(){
|
|||||||
type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE;
|
type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE;
|
||||||
banding = NULL;
|
banding = NULL;
|
||||||
owner = NULL;
|
owner = NULL;
|
||||||
changedZoneRecently = 0;
|
|
||||||
counters = NEW Counters(this);
|
counters = NEW Counters(this);
|
||||||
previousZone = NULL;
|
previousZone = NULL;
|
||||||
previous = NULL;
|
previous = NULL;
|
||||||
|
|||||||
@@ -150,7 +150,6 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
|
|||||||
MTGCardInstance * ret = copy;
|
MTGCardInstance * ret = copy;
|
||||||
|
|
||||||
to->addCard(copy);
|
to->addCard(copy);
|
||||||
copy->changedZoneRecently = 1.f;
|
|
||||||
GameObserver *g = GameObserver::GetInstance();
|
GameObserver *g = GameObserver::GetInstance();
|
||||||
WEvent * e = NEW WEventZoneChange(copy, from, to);
|
WEvent * e = NEW WEventZoneChange(copy, from, to);
|
||||||
g->receiveEvent(e);
|
g->receiveEvent(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user