- fix issue 57 - needs verification when one of the quads is not here /both -  target is player/card - ability/spell
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-30 15:02:57 +00:00
parent 91986abe2d
commit 25ab86ab88
6 changed files with 74 additions and 74 deletions

View File

@@ -58,6 +58,7 @@ class Interruptible: public PlayGuiObject, public Targetable{
int typeAsTarget(){return TARGET_STACKACTION;};
Interruptible(bool hasFocus = false):PlayGuiObject(40,x,y,hasFocus){state=NOT_RESOLVED;display=0;source=NULL;};
virtual const string getDisplayName() const {return "stack object";};
void Render(MTGCardInstance * source, JQuad * targetQuad, string alt1, string alt2, string action, bool bigQuad = false);
#if defined (WIN32) || defined (LINUX)
virtual void Dump();
#endif

View File

@@ -27,6 +27,7 @@ struct CardGui : public PlayGuiObject {
CardGui(MTGCardInstance* card, const Pos& ref);
virtual void Render();
void RenderBig(const Pos&); //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);
void alternateRenderBig(const Pos&); //Renders Text Version of a card
virtual void Update(float dt);
static void alternateRender(MTGCard * card, const Pos& pos);

View File

@@ -128,6 +128,8 @@ class MTGCardInstance: public MTGCard, public Damageable {
void resetAllDamage();
JSample * getSample();
JQuad * getIcon();
ostream& toString(ostream&) const;
static MTGCardInstance AnyCard;