added drawCounter. Returns the number of cards drawn this turn (excludes pre-game draw).

pdrewcount - player draw count
odrewcount - opponent draw count
This commit is contained in:
anthonycalosa@gmail.com
2013-05-18 15:31:12 +00:00
parent ba5debad05
commit cf74c3480e
5 changed files with 19 additions and 0 deletions
+8
View File
@@ -374,6 +374,14 @@ private:
{
intValue = target->controller()->opponent()->life;
}
else if (s == "pdrewcount")
{
intValue = target->controller()->drawCounter;
}
else if (s == "odrewcount")
{
intValue = target->controller()->opponent()->drawCounter;
}
else if (s == "p" || s == "power")
{
intValue = target->getPower();
+1
View File
@@ -41,6 +41,7 @@ public:
int offerInterruptOnPhase;
int skippingTurn;
int extraTurn;
int drawCounter;
vector<MTGCardInstance*>curses;
Player(GameObserver *observer, string deckFile, string deckFileSmall, MTGDeck * deck = NULL);
virtual ~Player();