Beispiel #1
0
 public SeedImpl(SeedType st)
 {
     this.st          = st;
     this.ss          = SeedState.PLANTED;
     this.growTime    = SeedTypeMethods.GetGrowTime(st);
     this.ofWhichFood = SeedTypeMethods.GetFoodType(st);
     WaitGrow();
 }
Beispiel #2
0
 public ShopImpl()
 {
     /* carico la set di Food(enum) */
     foreach (FoodType f in FoodTypeMethods.GetValues())
     {
         foodItemList.Add(f);
     }
     /* carico la set di SeedType(enum) */
     foreach (SeedType st in SeedTypeMethods.GetValues())
     {
         seedItemList.Add(st);
     }
 }