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); } }
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); }