- Moved "extraPayment" cancel verification into ActionLayer (was in GuiLayers)
- added "HUDDisplay" MTGAbility (displays damage/graveyard info)
- Added option to NOT interrupt own's spells and abilities. Allows smoother gameplay. We should add a "quick options" menu ingame to change those options on the fly
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-04 14:10:21 +00:00
parent 5ff90a6f33
commit b1e35a6bcb
15 changed files with 181 additions and 9 deletions

View File

@@ -180,4 +180,33 @@ class MTGLifelinkRule:public MTGAbility{
};
/* HUD Display */
class HUDString {
public:
string value;
int timestamp;
int quantity;
HUDString(string s, int ts):value(s),timestamp(ts){quantity = 1;};
};
class HUDDisplay:public MTGAbility{
private:
list<HUDString *> events;
float timestamp;
float popdelay;
JLBFont * f;
float maxWidth;
int addEvent(string s);
public:
int testDestroy();
int receiveEvent(WEvent * event);
void Update(float dt);
void Render();
HUDDisplay(int _id);
~HUDDisplay();
};
#endif