예제 #1
0
        private static void DebugThings(Playfield p)
        {
            Type t = typeof(Line);

            PropertyInfo[] properties = t.GetProperties();

            PlayfieldAnalyse.AnalyseLines(p);
            Line[] line = PlayfieldAnalyse.lines;

            foreach (PropertyInfo nP in properties)
            {
                Console.WriteLine(nP.GetValue(line).ToString());
            }

            IEnumerable <Handcard> damagingSpells = Classification.GetOwnHandCards(p, boardObjType.AOE, SpecificCardType.SpellsDamaging);

            if (damagingSpells != null)
            {
                var radiusOrderedDS = damagingSpells.OrderBy(n => n.card.DamageRadius).FirstOrDefault();
                if (radiusOrderedDS != null)
                {
                    @group Group = p.getGroup(false, 200, boPriority.byTotalNumber, radiusOrderedDS.card.DamageRadius);
                }
            }

            Logger.Debug("Name: " + p.ownKingsTower.Name);
            Logger.Debug("Name: " + p.ownPrincessTower1.Name);
            Logger.Debug("Name: " + p.ownPrincessTower2.Name);

            int i1 = p.ownKingsTower.HP;
            int i2 = p.ownPrincessTower1.HP;
            int i3 = p.ownPrincessTower2.HP;

            Logger.Debug("test");
        }