Ejemplo n.º 1
0
        public IList <Readable_GamePlayer> GetValue(Controlled controlled, Game game, IList <Readable_GamePlayer> outputType)
        {
            IEnumerable <Readable_GamePlayer> players   = game.Players;
            List <Readable_GamePlayer>        opponents = new List <Readable_GamePlayer>();

            foreach (Readable_GamePlayer player in players)
            {
                if (!player.GetID((Readable_GamePlayer)null).Equals(controlled.Get_ControllerID()))
                {
                    opponents.Add(player);
                }
            }
            return(opponents);
        }
Ejemplo n.º 2
0
        public IList <Readable_LifeTarget> GetValue(Controlled caller, Game game, IList <Readable_LifeTarget> outputType)
        {
            IEnumerable <Readable_MonsterCard> monsters      = new AllMonsters_Provider().GetValue(caller, game, (IList <Readable_MonsterCard>)null);
            List <Readable_LifeTarget>         enemyMonsters = new List <Readable_LifeTarget>();

            foreach (Readable_MonsterCard monster in monsters)
            {
                if (!monster.Get_ControllerID().Equals(caller.Get_ControllerID()))
                {
                    enemyMonsters.Add(monster);
                }
            }
            return(enemyMonsters);
        }