Revert my Graphic changes
I think it's the one who cause those crashes
This commit is contained in:
@@ -1429,7 +1429,6 @@ public:
|
||||
if (!e) return 0;
|
||||
MTGCardInstance * check = e->cardAfter;
|
||||
MTGGameZone * oldZone = e->cardAfter->currentZone;
|
||||
//MTGGameZone * currZone = check->currentZone;
|
||||
check->currentZone = check->previousZone;
|
||||
if (check->next && (check->next->currentZone|| check->isToken))
|
||||
{
|
||||
@@ -1948,8 +1947,8 @@ public:
|
||||
class AACopier: public ActivatedAbility
|
||||
{
|
||||
public:
|
||||
MTGAbility * andAbility;
|
||||
vector<MTGAbility *> currentAbilities;
|
||||
MTGAbility * andAbility;
|
||||
AACopier(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target = NULL, ManaCost * _cost = NULL);
|
||||
int resolve();
|
||||
const string getMenuText();
|
||||
@@ -2270,12 +2269,7 @@ public:
|
||||
|
||||
assert(modifier < 2);
|
||||
((MTGCardInstance *) target)->basicAbilities.set(ability, modifier > 0);
|
||||
//---add or subtract so we can keep track - for future use
|
||||
((MTGCardInstance *) target)->modbasicAbilities[ability] += modifier;
|
||||
//---make sure no negative values
|
||||
if(((MTGCardInstance *) target)->modbasicAbilities[ability] < 0)
|
||||
((MTGCardInstance *) target)->modbasicAbilities[ability] = 0;
|
||||
//---end add or subtract abilities
|
||||
|
||||
return MTGAbility::addToGame();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,10 +33,10 @@ protected:
|
||||
/*
|
||||
** Tries to render the Big version of a card picture, backups to text version in case of failure
|
||||
*/
|
||||
static void RenderBig(MTGCard * card, const Pos& pos, bool thumb = false, bool noborder = false, bool smallerscale = false, bool ingame = false);
|
||||
static void RenderBig(MTGCard * card, const Pos& pos, bool thumb = false, bool noborder = false);
|
||||
|
||||
static void RenderCountersBig(MTGCard * card, const Pos& pos, int drawMode = DrawMode::kNormal);
|
||||
static void AlternateRender(MTGCard * card, const Pos& pos, bool noborder = false, bool smallerscale = false);
|
||||
static void AlternateRender(MTGCard * card, const Pos& pos);
|
||||
static void TinyCropRender(MTGCard * card, const Pos& pos, JQuad * quad);
|
||||
static string FormattedData (string data, string replace, string value);
|
||||
static bool FilterCard (MTGCard * card,string filter);
|
||||
@@ -54,10 +54,10 @@ public:
|
||||
CardGui(MTGCardInstance* card, const Pos& ref);
|
||||
virtual void Render();
|
||||
virtual void Update(float dt);
|
||||
bool isBlackBorder(string set);
|
||||
void DrawCard(const Pos& inPosition, int inMode = DrawMode::kNormal, bool thumb = false, bool noborder = false, bool smallscale = false, bool ingame = false);
|
||||
static void DrawCard(MTGCard* inCard, const Pos& inPosition, int inMode = DrawMode::kNormal, bool thumb = false, bool noborder = false, bool smallscale = false, bool ingame = false);
|
||||
static void DrawBorder(string setname, const Pos& inPosition, float x, bool noborder = false, bool smallscale = false);
|
||||
|
||||
void DrawCard(const Pos& inPosition, int inMode = DrawMode::kNormal, bool thumb = false, bool noborder = false);
|
||||
static void DrawCard(MTGCard* inCard, const Pos& inPosition, int inMode = DrawMode::kNormal, bool thumb = false, bool noborder = false);
|
||||
|
||||
static JQuadPtr AlternateThumbQuad(MTGCard * card);
|
||||
virtual ostream& toString(ostream&) const;
|
||||
};
|
||||
|
||||
@@ -57,7 +57,6 @@ public:
|
||||
|
||||
uint8_t colors;
|
||||
typedef std::bitset<Constants::NB_BASIC_ABILITIES> BasicAbilitiesSet;
|
||||
vector<int> modbasicAbilities;
|
||||
BasicAbilitiesSet basicAbilities;
|
||||
BasicAbilitiesSet LKIbasicAbilities;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
void renderCard(int index)
|
||||
{
|
||||
int alpha = (int) (255 * (mCards[index].scale + 1.0 - max_scale));
|
||||
DeckView::renderCard(index, alpha, false, true);
|
||||
DeckView::renderCard(index, alpha);
|
||||
}
|
||||
|
||||
void Render();
|
||||
|
||||
@@ -207,7 +207,7 @@ protected:
|
||||
*
|
||||
* \see mCards
|
||||
*/
|
||||
void renderCard(int index, int alpha, bool asThumbnail = false, bool addWHborder = false);
|
||||
void renderCard(int index, int alpha, bool asThumbnail = false);
|
||||
|
||||
/*! \brief Returns the index in mCards of the card that is nearest to the given point
|
||||
*
|
||||
|
||||
@@ -125,10 +125,7 @@ class GameObserver{
|
||||
void enchantmentStatus();
|
||||
void Affinity();
|
||||
bool AffinityNeedsUpdate;
|
||||
bool legendNeedUpdate;
|
||||
void addObserver(MTGAbility * observer);
|
||||
void checkLegendary(MTGCardInstance * card);
|
||||
map<MTGCardInstance *,bool> cards;
|
||||
bool removeObserver(ActionElement * observer);
|
||||
void startGame(GameType, Rules * rules);
|
||||
void untapPhase();
|
||||
|
||||
@@ -25,8 +25,8 @@ struct GuiAvatar: public GuiStatic
|
||||
BOTTOM_RIGHT
|
||||
} Corner;
|
||||
|
||||
static const unsigned Width = 32;//35
|
||||
static const unsigned Height = 45;//50
|
||||
static const unsigned Width = 35;
|
||||
static const unsigned Height = 50;
|
||||
|
||||
protected:
|
||||
int avatarRed;
|
||||
|
||||
@@ -61,6 +61,14 @@ class ThisControllerlife:public ThisDescriptor{
|
||||
ThisControllerlife * clone() const;
|
||||
};
|
||||
|
||||
class ThisCreatureSpells:public ThisDescriptor{
|
||||
public:
|
||||
virtual int match(MTGCardInstance * card);
|
||||
|
||||
ThisCreatureSpells(int count);
|
||||
ThisCreatureSpells * clone() const;
|
||||
};
|
||||
|
||||
class ThisOpponentlife:public ThisDescriptor{
|
||||
public:
|
||||
virtual int match(MTGCardInstance * card);
|
||||
|
||||
@@ -184,8 +184,7 @@ struct WEventCardBlocked : public WEventCardUpdate {
|
||||
//event when card is sacrificed.
|
||||
struct WEventCardSacrifice : public WEventCardUpdate {
|
||||
MTGCardInstance * cardAfter;
|
||||
bool istoken;
|
||||
WEventCardSacrifice(MTGCardInstance * card,MTGCardInstance * afterCard, bool token = false);
|
||||
WEventCardSacrifice(MTGCardInstance * card,MTGCardInstance * afterCard);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
|
||||
@@ -80,7 +80,6 @@ public:
|
||||
}
|
||||
};
|
||||
virtual JQuadPtr RetrieveCard(MTGCard * card, int style = RETRIEVE_NORMAL,int submode = CACHE_NORMAL) = 0;
|
||||
virtual JQuadPtr RetrieveCardToken(MTGCard * card, int style = RETRIEVE_NORMAL,int submode = CACHE_NORMAL, int tId = 0) = 0;
|
||||
virtual JSample * RetrieveSample(const string& filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL) = 0;
|
||||
virtual JTexture * RetrieveTexture(const string& filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL) = 0;
|
||||
virtual JQuadPtr RetrieveQuad(const string& filename, float offX=0.0f, float offY=0.0f, float width=0.0f, float height=0.0f, string resname="", int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL, int id = 0) = 0;
|
||||
|
||||
@@ -141,7 +141,6 @@ public:
|
||||
bool IsThreaded();
|
||||
|
||||
JQuadPtr RetrieveCard(MTGCard * card, int style = RETRIEVE_NORMAL,int submode = CACHE_NORMAL);
|
||||
JQuadPtr RetrieveCardToken(MTGCard * card, int style = RETRIEVE_NORMAL,int submode = CACHE_NORMAL, int tId = 0);
|
||||
JSample * RetrieveSample(const string& filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||
JTexture * RetrieveTexture(const string& filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||
JQuadPtr RetrieveQuad(const string& filename, float offX=0.0f, float offY=0.0f, float width=0.0f, float height=0.0f, string resname="", int style = RETRIEVE_LOCK, int submode = CACHE_NORMAL, int id = 0);
|
||||
|
||||
Reference in New Issue
Block a user