Erwan
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user