Exemple #1
0
        /// <summary>
        /// Create a list with a few default Food types
        /// </summary>
        /// <returns></returns>
        public static FoodTypeList CreateDefaultList()
        {
            FoodTypeList ftl = new FoodTypeList();

            ftl.Add(new FoodTypeClass()
            {
                Code    = "A",
                English = "Omnivorous"
            });
            ftl.Add(new FoodTypeClass()
            {
                Code    = "B",
                English = "Live/Frozen food"
            });
            ftl.Add(new FoodTypeClass()
            {
                Code    = "R",
                English = "Predator"
            });
            ftl.Add(new FoodTypeClass()
            {
                Code    = "G",
                English = "Herbivorous"
            });

            return(ftl);
        }
Exemple #2
0
 /// <summary>
 /// Constructor. Initializes all lists
 /// </summary>
 public Animal()
 {
     FoodTypes   = new Lists.FoodTypeList();
     Decorations = new Lists.DecorationList();
     Behavior    = new Lists.BehaviorList();
 }