Exemple #1
0
        internal StacksCollection GetByOrdersNotBeenGivenThisTurnAndFactionId(int factionId)
        {
            var list = new StacksCollection();

            foreach (var item in Items.Where(item => item.HaveOrdersBeenGivenThisTurn.Value == false && item.FactionId.Value == factionId))
            {
                list.Add(item);
            }

            return(list);
        }
Exemple #2
0
        internal StacksCollection GetByLocationHex(PointI locationHex)
        {
            var list = new StacksCollection();

            foreach (var item in Items.Where(item => item.LocationHex.Value == locationHex))
            {
                list.Add(item);
            }

            return(list);
        }
Exemple #3
0
        internal StacksCollection GetByFactionId(int factionId)
        {
            var list = new StacksCollection();

            foreach (var item in Items.Where(item => item.FactionId.Value == factionId))
            {
                list.Add(item);
            }

            return(list);
        }