Exemplo n.º 1
0
        public static void BreedAll(int gameId, int turn)
        {
            Model.CharacterCollection cc = Model.CharacterCollection.getBreedingCharacters(gameId, -1, turn);

            foreach (Character c in cc)
            {
                Breed(c.characterId, turn, gameId);
            }
        }
Exemplo n.º 2
0
        public static Model.CharacterCollection SurviveAll(int gameId, ref List <List <Character> > theListOfLists)
        {
            //roll surv youngest first , (highest charId)
            Model.CharacterCollection cc = new Model.CharacterCollection();

            List <int> allCharacters = Sql.getAliveCharacterIds(gameId);

            foreach (int element in allCharacters)
            {
                if (!Survive(element, ref theListOfLists))
                {
                    //It died

                    cc.Add(Sql.getCharacter(element));
                }
            }
            return(cc);
        }