public void printHero(bool writetobuffer = false) { help.logg("player:"); help.logg(this.numMinionsPlayedThisTurn + " " + this.cardsPlayedThisTurn + " " + this.ueberladung + " " + this.ownPlayerController); help.logg("ownhero:"); help.logg(this.heroname + " " + this.ownHero.Hp + " " + this.ownHero.maxHp + " " + this.ownHero.armor + " " + this.ownHero.immuneWhileAttacking + " " + this.ownHero.immune + " " + this.ownHero.entitiyID + " " + this.ownHero.Ready + " " + this.ownHero.numAttacksThisTurn + " " + this.ownHero.frozen + " " + this.ownHero.Angr + " " + this.ownHero.tempAttack); help.logg("weapon: " + heroWeaponAttack + " " + heroWeaponDurability + " " + ownHeroWeapon); help.logg("ability: " + this.ownAbilityisReady + " " + this.heroAbility.cardIDenum); string secs = ""; foreach (CardDB.cardIDEnum sec in this.ownSecretList) { secs += sec + " "; } help.logg("osecrets: " + secs); help.logg("enemyhero:"); help.logg(this.enemyHeroname + " " + this.enemyHero.Hp + " " + this.enemyHero.maxHp + " " + this.enemyHero.armor + " " + this.enemyHero.frozen + " " + this.enemyHero.immune + " " + this.enemyHero.entitiyID); help.logg("weapon: " + this.enemyWeaponAttack + " " + this.enemyWeaponDurability + " " + this.enemyHeroWeapon); help.logg("ability: " + "true" + " " + this.enemyAbility.cardIDenum); help.logg("fatigue: " + this.ownDeckSize + " " + this.ownHeroFatigue + " " + this.enemyDeckSize + " " + this.enemyHeroFatigue); if (writetobuffer) { help.writeToBuffer("player:"); help.writeToBuffer(this.numMinionsPlayedThisTurn + " " + this.cardsPlayedThisTurn + " " + this.ueberladung + " " + this.ownPlayerController); help.writeToBuffer("ownhero:"); help.writeToBuffer(this.heroname + " " + this.ownHero.Hp + " " + this.ownHero.maxHp + " " + this.ownHero.armor + " " + this.ownHero.immuneWhileAttacking + " " + this.ownHero.immune + " " + this.ownHero.entitiyID + " " + this.ownHero.Ready + " " + this.ownHero.numAttacksThisTurn + " " + this.ownHero.frozen + " " + this.ownHero.Angr + " " + this.ownHero.tempAttack); help.writeToBuffer("weapon: " + heroWeaponAttack + " " + heroWeaponDurability + " " + ownHeroWeapon); help.writeToBuffer("ability: " + this.ownAbilityisReady + " " + this.heroAbility.cardIDenum); secs = ""; foreach (CardDB.cardIDEnum sec in this.ownSecretList) { secs += sec + " "; } help.writeToBuffer("osecrets: " + secs); help.writeToBuffer("enemyhero:"); help.writeToBuffer(this.enemyHeroname + " " + this.enemyHero.Hp + " " + this.enemyHero.maxHp + " " + this.enemyHero.armor + " " + this.enemyHero.frozen + " " + this.enemyHero.immune + " " + this.enemyHero.entitiyID); help.writeToBuffer("weapon: " + this.enemyWeaponAttack + " " + this.enemyWeaponDurability + " " + this.enemyHeroWeapon); help.writeToBuffer("ability: " + "true" + " " + this.enemyAbility.cardIDenum); help.writeToBuffer("fatigue: " + this.ownDeckSize + " " + this.ownHeroFatigue + " " + this.enemyDeckSize + " " + this.enemyHeroFatigue); } }
public void printcards(bool writeTobuffer = false) { help.logg("Own Handcards: "); foreach (Handmanager.Handcard c in this.handCards) { help.logg("pos " + c.position + " " + c.card.name + " " + c.manacost + " entity " + c.entity + " " + c.card.cardIDenum + " " + c.addattack); } help.logg("Enemy cards: " + this.enemyAnzCards); //todo print died minions this turn! /*if(Ai.Instance.playaround) * { * if(Hrtprozis.Instance.enemyHeroname == HeroEnum.mage) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.CS2_032) + " " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.CS2_028)); * } * * if (Hrtprozis.Instance.enemyHeroname == HeroEnum.warrior) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.EX1_400)); * } * * if (Hrtprozis.Instance.enemyHeroname == HeroEnum.hunter) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.EX1_538)); * } * * if (Hrtprozis.Instance.enemyHeroname == HeroEnum.priest) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.CS1_112)); * } * * if (Hrtprozis.Instance.enemyHeroname == HeroEnum.shaman) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.EX1_259)); * } * * if (Hrtprozis.Instance.enemyHeroname == HeroEnum.pala) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.CS2_093)); * } * * if (Hrtprozis.Instance.enemyHeroname == HeroEnum.druid) * { * help.logg("probs: " + Probabilitymaker.Instance.anzCardsInDeck(CardDB.cardIDEnum.CS2_012)); * } * }*/ if (writeTobuffer) { help.writeToBuffer("Own Handcards: "); foreach (Handmanager.Handcard c in this.handCards) { help.writeToBuffer("pos " + c.position + " " + c.card.name + " " + c.manacost + " entity " + c.entity + " " + c.card.cardIDenum + " " + c.addattack); } help.writeToBuffer("Enemy cards: " + this.enemyAnzCards); //todo print died minions this turn! } }
public void print(bool tobuffer = false) { Helpfunctions help = Helpfunctions.Instance; if (tobuffer) { if (this.actionType == actionEnum.playcard) { string playaction = "play "; playaction += "id " + this.card.entity + ", card:" + this.card.card.name; if (this.target != null) { playaction += " target " + this.target.entitiyID + "(" + this.target.name + ")"; } if (this.place >= 0) { playaction += " pos " + this.place; } if (this.druidchoice >= 1) { playaction += " choice " + this.druidchoice; } help.writeToBuffer(playaction); } if (this.actionType == actionEnum.attackWithMinion) { help.writeToBuffer("attack " + this.own.entitiyID + " enemy " + this.target.entitiyID + "(" + this.target.name + ")"); } if (this.actionType == actionEnum.attackWithHero) { help.writeToBuffer("heroattack " + this.target.entitiyID + "(" + this.target.name + ")"); } if (this.actionType == actionEnum.useHeroPower) { if (this.target != null) { help.writeToBuffer("useability on target " + this.target.entitiyID + "(" + this.target.name + ")"); } else { help.writeToBuffer("useability"); } } return; } if (this.actionType == actionEnum.playcard) { string playaction = "play "; playaction += "id " + this.card.entity + ", card:" + this.card.card.name; if (this.target != null) { playaction += " target " + this.target.entitiyID + "(" + this.target.name + ")"; } if (this.place >= 0) { playaction += " pos " + this.place; } if (this.druidchoice >= 1) { playaction += " choice " + this.druidchoice; } help.logg(playaction); } if (this.actionType == actionEnum.attackWithMinion) { help.logg("attacker: " + this.own.entitiyID + "(" + this.own.name + ")" + " enemy: " + this.target.entitiyID + "(" + this.target.name + ")"); } if (this.actionType == actionEnum.attackWithHero) { help.logg("attack with hero, enemy: " + this.target.entitiyID + "(" + this.target.name + ")"); } if (this.actionType == actionEnum.useHeroPower) { help.logg("useability "); if (this.target != null) { help.logg("on enemy: " + this.target.entitiyID + "(" + this.target.name + ")"); } } help.logg(""); }