Issue: 474

modified player status to recognize that test suite has been activated.  This is to allow deactivation of "phase skip automation" game setting during test suite.  
TODO: fix "Phase Skip Automation" such that if turned on the test suite does not break.  This fix should be considered temporary
This commit is contained in:
techdragon.nguyen@gmail.com
2010-10-04 16:26:55 +00:00
parent 154ccc2555
commit 8e83e0d632
4 changed files with 10 additions and 14 deletions

View File

@@ -17,16 +17,17 @@ Player::Player(MTGPlayerCards * deck, string file, string fileSmall) : Damageabl
castrestrictedspell = 0;
castrestrictedcreature = 0;
onlyonecast = 0;
castcount = 0;
nocreatureinstant = 0;
nospellinstant = 0;
onlyoneinstant = 0;
castcount = 0;
nocreatureinstant = 0;
nospellinstant = 0;
onlyoneinstant = 0;
poisonCount = 0;
damageCount = 0;
preventable = 0;
mAvatar = NULL;
mAvatarTex = NULL;
type_as_damageable = DAMAGEABLE_PLAYER;
playMode = MODE_HUMAN;
}
/*Method to call at the end of a game, before all objects involved in the game are destroyed */
@@ -84,6 +85,7 @@ Player * Player::opponent(){
HumanPlayer::HumanPlayer(MTGPlayerCards * deck, string file, string fileSmall) : Player(deck, file, fileSmall) {
loadAvatar("avatar.jpg");
playMode = MODE_HUMAN;
}