-code cleanup
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-01-31 06:56:40 +00:00
parent e3d98f23f9
commit 1f88c30cfd
4 changed files with 1 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#ifndef _MTGCARD_H_
#define _MTGCARD_H_
#define MTGCARD_NAME_SIZE 30
#define MTGCARD_NAME_SIZE 16
#define MTG_IMAGE_WIDTH 200
#define MTG_IMAGE_HEIGHT 285
@@ -9,9 +9,6 @@
#define MTG_MINIIMAGE_WIDTH 45
#define MTG_MINIIMAGE_HEIGHT 64
#define MAX_TYPES_PER_CARD 10
#include <string>
#include <vector>
#include <map>

View File

@@ -33,7 +33,6 @@ class MTGCardInstance: public CardPrimitive, public MTGCard, public Damageable {
int lifeOrig;
MTGPlayerCards * belongs_to;
MTGAbility * untapBlockerAbilities[10];
MTGCardInstance * getNextPartner();
void initMTGCI();
int setDefenser(MTGCardInstance * c);
@@ -57,7 +56,6 @@ class MTGCardInstance: public CardPrimitive, public MTGCard, public Damageable {
// The recommended method to test for summoning Sickness !
int hasSummoningSickness();
MTGCardInstance * changeController(Player * newcontroller);
float changedZoneRecently;
Player * owner;
Counters * counters;
int typeAsTarget(){return TARGET_CARD;}

View File

@@ -107,7 +107,6 @@ void MTGCardInstance::initMTGCI(){
type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE;
banding = NULL;
owner = NULL;
changedZoneRecently = 0;
counters = NEW Counters(this);
previousZone = NULL;
previous = NULL;

View File

@@ -150,7 +150,6 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
MTGCardInstance * ret = copy;
to->addCard(copy);
copy->changedZoneRecently = 1.f;
GameObserver *g = GameObserver::GetInstance();
WEvent * e = NEW WEventZoneChange(copy, from, to);
g->receiveEvent(e);