Beispiel #1
0
 public Handcard(CardDB.Card c)
 {
     this.position = 0;
     this.entity = -1;
     this.card = c;
     this.addattack = 0;
     this.addHp = 0;
 }
Beispiel #2
0
 public Handcard(HREngine.Bots.Handmanager.Handcard hc)
 {
     this.position = hc.position;
     this.entity = hc.entity;
     this.manacost = hc.manacost;
     this.card = new CardDB.Card(hc.card);
     this.addattack = hc.addattack;
     this.addHp = hc.addHp;
 }
Beispiel #3
0
 public Handcard(Handcard hc)
 {
     this.permCostChange = hc.permCostChange;
     this.position = hc.position;
     this.entity = hc.entity;
     this.manacost = hc.manacost;
     this.card = hc.card;
     this.addattack = hc.addattack;
     this.addHp = hc.addHp;
 }
Beispiel #4
0
 public Handcard()
 {
     card = CardDB.Instance.unknownCard;
 }
Beispiel #5
0
        CardDB.Card copymin = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.CS2_182); // we take a icewindjety :D

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (p.playerSecond.ownDeckSize < 1) copymin = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_345t); // Shadow of Nothing
            p.callKid(copymin, p.playerFirst.ownMinions.Count, true);
		}
Beispiel #6
0
        public void updateEnemyHero(string weapon, int weaponAttack, int weaponDurability, string heron, int enemMaxMana, CardDB.Card eab, Minion enemyHero)
        {
            this.enemyHeroWeapon = CardDB.Instance.cardNamestringToEnum(weapon);
            this.enemyWeaponAttack = weaponAttack;
            this.enemyWeaponDurability = weaponDurability;

            this.enemyMaxMana = enemMaxMana;

            this.enemyHeroname = this.heroNametoEnum(heron);
            this.enemyHeroStartClass = enemyHero.cardClass;

            this.enemyAbility = eab;

            this.enemyHero = new Minion(enemyHero);

        }
Beispiel #7
0
        public void updateOwnHero(string weapon, int watt, int wdur, string heron, CardDB.Card hab, bool habrdy, Minion Hero)
        {
            this.ownHeroWeapon = CardDB.Instance.cardNamestringToEnum(weapon);
            this.heroWeaponAttack = watt;
            this.heroWeaponDurability = wdur;

            this.heroname = this.heroNametoEnum(heron);
            Helpfunctions.Instance.logg(this.heroname.ToString());
            this.ownHeroStartClass = Hero.cardClass;

            this.heroAbility = hab;
            this.ownAbilityisReady = habrdy;

            this.ownHero = new Minion(Hero);
            this.ownHero.updateReadyness();
        }
Beispiel #8
0
 public void clearAll()
 {
     ownHeroEntity = -1;
     enemyHeroEntitiy = -1;
     currentMana = 0;
     heroHp = 30;
     enemyHp = 30;
     heroAtk = 0;
     enemyAtk = 0;
     heroDefence = 0; enemyDefence = 0;
     ownheroisread = false;
     ownAbilityisReady = false;
     ownHeroNumAttacksThisTurn = 0;
     ownHeroWindfury = false;
     ownSecretList.Clear();
     enemySecretCount = 0;
     heroname = HeroEnum.druid;
     enemyHeroname = HeroEnum.druid;
     heroAbility = new CardDB.Card();
     enemyAbility = new CardDB.Card();
     herofrozen = false;
     enemyfrozen = false;
     numMinionsPlayedThisTurn = 0;
     cardsPlayedThisTurn = 0;
     ueberladung = 0;
     ownMaxMana = 0;
     enemyMaxMana = 0;
     enemyWeaponDurability = 0;
     enemyWeaponAttack = 0;
     heroWeaponDurability = 0;
     heroWeaponAttack = 0;
     heroImmuneToDamageWhileAttacking = false;
     ownMinions.Clear();
     enemyMinions.Clear();
     heroImmune = false;
     enemyHeroImmune = false;
     this.ownHeroWeapon = CardDB.cardName.unknown;
     this.enemyHeroWeapon = CardDB.cardName.unknown;
 }