Fix Segmentation Fault & Formatting
This commit is contained in:
@@ -151,33 +151,33 @@ struct WEventCreatureAttacker : public WEventCardUpdate {
|
||||
//event when card attacks.
|
||||
struct WEventCardAttacked : public WEventCardUpdate {
|
||||
WEventCardAttacked(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card attacks alone.
|
||||
struct WEventCardAttackedAlone : public WEventCardUpdate {
|
||||
WEventCardAttackedAlone(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card attacks but is not blocked.
|
||||
struct WEventCardAttackedNotBlocked : public WEventCardUpdate {
|
||||
WEventCardAttackedNotBlocked(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card attacks but is blocked.
|
||||
struct WEventCardAttackedBlocked : public WEventCardUpdate {
|
||||
WEventCardAttackedBlocked(MTGCardInstance * card,MTGCardInstance * opponent);
|
||||
MTGCardInstance * opponent;
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card blocked.
|
||||
struct WEventCardBlocked : public WEventCardUpdate {
|
||||
WEventCardBlocked(MTGCardInstance * card,MTGCardInstance * opponent);
|
||||
MTGCardInstance * opponent;
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card is sacrificed.
|
||||
@@ -190,13 +190,13 @@ struct WEventCardSacrifice : public WEventCardUpdate {
|
||||
//event when card is discarded.
|
||||
struct WEventCardDiscard : public WEventCardUpdate {
|
||||
WEventCardDiscard(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card is cycled.
|
||||
struct WEventCardCycle : public WEventCardUpdate {
|
||||
WEventCardCycle(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//Event when a card's "defenser" status changes
|
||||
@@ -219,9 +219,9 @@ struct WEventBlockersChosen : public WEvent {
|
||||
};
|
||||
|
||||
struct WEventcardDraw : public WEvent {
|
||||
WEventcardDraw(Player * player,int nb_cards);
|
||||
Player * player;
|
||||
int nb_cards;
|
||||
WEventcardDraw(Player * player,int nb_cards);
|
||||
Player * player;
|
||||
int nb_cards;
|
||||
using WEvent::getTarget;
|
||||
virtual Targetable * getTarget(Player * player);
|
||||
};
|
||||
@@ -276,19 +276,19 @@ struct WEventEmptyManaPool : public WEvent {
|
||||
//event when card-equipment unattached
|
||||
struct WEventCardUnattached : public WEventCardUpdate {
|
||||
WEventCardUnattached(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card-equipment attached/equipped
|
||||
struct WEventCardEquipped : public WEventCardUpdate {
|
||||
WEventCardEquipped(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//event when card moves from player/opponent battlefield to player/opponent battlefield
|
||||
struct WEventCardControllerChange : public WEventCardUpdate {
|
||||
WEventCardControllerChange(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, const WEvent&);
|
||||
|
||||
Reference in New Issue
Block a user