- Fixed a bug with Composite golem (and summoning sickness for Mana abilities in general)
- Improved test suite speed
This commit is contained in:
wagic.the.homebrew
2009-02-06 16:06:37 +00:00
parent bd632ed346
commit 6ea40147a3
7 changed files with 233 additions and 192 deletions

View File

@@ -12,10 +12,12 @@ class TargetChooser;
class ManaCost;
class MTGGameZone;
class Player;
class AManaProducer;
#include "ActionElement.h"
#include <string>
#include <map>
#include <hge/hgeparticle.h>
using std::string;
using std::map;
@@ -207,6 +209,31 @@ class AbilityFactory{
};
class AManaProducer: public MTGAbility{
protected:
ManaCost * cost;
ManaCost * output;
string menutext;
float x0,y0,x1,y1,x,y;
float animation;
Player * controller;
int tap;
hgeParticleSystem * mParticleSys;
public:
static int currentlyTapping;
AManaProducer(int id, MTGCardInstance * card, ManaCost * _output, ManaCost * _cost = NULL, int doTap = 1 );
void Update(float dt);
void Render();
int isReactingToClick(MTGCardInstance * _card);
int resolve();
int reactToClick(MTGCardInstance * _card);
const char * getMenuText();
int testDestroy();
~AManaProducer();
};
#include "MTGCardInstance.h"
#endif