static ApplicationLogic() { meat = new Meat(); fruit = new Fruits(); nuts = new Nuts(); vegetables = new Vegetables(); fish = new Fish(); cereals = new Cereals(); bread = new Bread(); alchohol = new Alchohol(); softDrinks = new SoftDrinks(); user = new User("Winnie the Pooh"); }
// Use this for initialization void Start() { rand = new System.Random(); indexIcon = rand.Next(0, 12); noEffect = new Effect("No Disease", 0, false); purifyEffect = new Effect("Cure", 1, false); malaria = new Effect("Malaria", -1, false); bilharzia = new Effect("Bilharzia", -2, false); effectExp1 = "lose 1 HP every turn"; effectExp2 = "Cure all disease and +1 HP"; effectExp3 = "lose 2 HP every turn"; effectsActive = new ArrayList(); foods = new ArrayList(); birdseed = new BirdSeed("Bird Seed", 1, noEffect, 0); oat = new Oat("Oat", 1, malaria, 1); Lettuce lettuce = new Lettuce("Lettuce", 3, bilharzia, 2); // lose speed -> speed/2 Rice rice = new Rice("Rice", 1, purifyEffect, 3); RottenGrape rottenGrape = new RottenGrape("Rotten Grape", -2, malaria, 4); PollutedCrackedCorn pollutedCrackedCorn = new PollutedCrackedCorn("Polluted Cracked Corn", -2, malaria, 5); Avocado avocado = new Avocado("Avocado", -2, malaria, 6); Onion onion = new Onion("Onion", -2, purifyEffect, 7); Nuts nuts = new Nuts("Nuts", -2, purifyEffect, 8); Chocolate chocolate = new Chocolate("Chocolate", -2, purifyEffect, 9); Popcorn popcorn = new Popcorn("Popcorn", -2, bilharzia, 10); Bread bread = new Bread("Bread", -2, malaria, 11); for (int i = 0; i < 3; i++) { foods.Add(birdseed); foods.Add(oat); foods.Add(lettuce); foods.Add(rice); foods.Add(rottenGrape); foods.Add(pollutedCrackedCorn); foods.Add(avocado); foods.Add(onion); foods.Add(nuts); foods.Add(chocolate); foods.Add(popcorn); foods.Add(bread); } }