Exemple #1
0
 private static float ScoreUnit(Entities.Unit unit)
 {
     return(kVPtoBattlePointsScoreRatio * unit.GetVP() +
            (unit.HasStatus("Can't attack") ? 0 : kAPtoBattlePointsScoreRatio *unit.CalcAttack()) +
            // Do not consider TempHP so cant use CalcHealth
            (unit.BaseHealth + unit.HealthModifier));
 }
Exemple #2
0
        private static float ScoreHand(CardList hand)
        {
            float totalScore = 0;

            foreach (Entities.Entity E in hand.Cards)
            {
                if (E.IsUnit())
                {
                    Entities.Unit U = (Unit)E;
                    totalScore += ScoreUnit(U);
                }
                else
                {
                    // TODO score non-unit cards
                    totalScore += 25;
                }
            }
            return(totalScore);
        }