コード例 #1
0
ファイル: Minion.cs プロジェクト: BongoBengt/OpenAI
        public void setMinionTominion(Minion m)
        {
            //dont silence----------------------------
            this.anzGotDmg       = m.anzGotDmg;
            this.gotDmgRaw       = m.gotDmgRaw;
            this.GotDmgValue     = m.GotDmgValue;
            this.gotInspire      = m.gotInspire;
            this.isHero          = m.isHero;
            this.own             = m.own;
            this.canAttackNormal = m.canAttackNormal;
            this.name            = m.name;
            this.cardClass       = m.cardClass;
            this.synergy         = m.synergy;
            this.handcard        = m.handcard;//new?
            this.deathrattle2    = m.deathrattle2;
            //this.entitiyID = m.entitiyID;
            this.zonepos = m.zonepos;

            this.allreadyAttacked = m.allreadyAttacked;

            this.playedThisTurn       = m.playedThisTurn;
            this.numAttacksThisTurn   = m.numAttacksThisTurn;
            this.immuneWhileAttacking = m.immuneWhileAttacking;

            //---------------------------------------
            this.shadowmadnessed = m.shadowmadnessed;

            this.ancestralspirit         = m.ancestralspirit;
            this.spikeridgedteed         = m.spikeridgedteed;
            this.destroyOnOwnTurnStart   = m.destroyOnOwnTurnStart;   // depends on own!
            this.destroyOnEnemyTurnStart = m.destroyOnEnemyTurnStart; // depends on own!
            this.destroyOnOwnTurnEnd     = m.destroyOnOwnTurnEnd;     // depends on own!
            this.destroyOnEnemyTurnEnd   = m.destroyOnEnemyTurnEnd;   // depends on own!

            this.conceal         = m.conceal;
            this.souloftheforest = m.souloftheforest;
            this.explorershat    = m.explorershat;
            this.infest          = m.infest;
            this.spiritecho      = m.spiritecho;
            this.livingspores    = m.livingspores;

            this.ownBlessingOfWisdom   = m.ownBlessingOfWisdom;
            this.enemyBlessingOfWisdom = m.enemyBlessingOfWisdom;
            this.ownPowerWordGlory     = m.ownPowerWordGlory;
            this.enemyPowerWordGlory   = m.enemyPowerWordGlory;
            this.spellpower            = m.spellpower;
            this.ReturnSpellCount      = m.ReturnSpellCount;
            this.crystalcored          = m.crystalcored;
            this.Hp    = m.Hp;
            this.maxHp = m.maxHp;
            this.armor = m.armor;

            this.Angr         = m.Angr;
            this.AdjacentAngr = m.AdjacentAngr;
            this.tempAttack   = m.tempAttack;

            if (m.crystalcored >= 1)
            {
                this.Hp    = m.crystalcored;
                this.Angr  = m.crystalcored;
                this.maxHp = m.crystalcored;
            }

            this.Ready = m.Ready;

            this.taunt   = m.taunt;
            this.wounded = m.wounded;

            this.divineshild = m.divineshild;
            this.windfury    = m.windfury;
            this.frozen      = m.frozen;
            this.stealth     = m.stealth;
            this.immune      = m.immune;
            this.exhausted   = m.exhausted;

            this.charge              = m.charge;
            this.poisonous           = m.poisonous;
            this.cantLowerHPbelowONE = m.cantLowerHPbelowONE;

            this.silenced = m.silenced;

            this.cantBeTargetedBySpellsOrHeroPowers        = m.cantBeTargetedBySpellsOrHeroPowers;
            this.AdaptedCantBeTargetedBySpellsOrHeroPowers = m.AdaptedCantBeTargetedBySpellsOrHeroPowers;
            this.cantAttack = m.cantAttack;

            if (m.deathrattles != null)
            {
                this.deathrattles = new List <int>();
                foreach (int dr in m.deathrattles)
                {
                    this.deathrattles.Add(dr);
                }
            }
        }
コード例 #2
0
 public override float getPlayPenalty(Playfield p, Handmanager.Handcard hc, Minion target, int choice, bool isLethal)
 {
     return(0);
 }
コード例 #3
0
ファイル: Minion.cs プロジェクト: BongoBengt/OpenAI
        public List <int> deathrattles = new List <int>();//we might have to use this for unearthed raptor

        public Minion()
        {
            this.handcard = new Handmanager.Handcard();
        }