Beispiel #1
0
 /// <summary>
 /// Creates the elves...
 ///
 /// </summary>
 private void CreateElves()
 {
     this.AddObject(Elrond.GetInstance(GetRandomFreeLocation()));
     this.AddObject(Galadriel.GetInstance(GetRandomFreeLocation()));
     this.AddObject(Legolas.GetInstance(GetRandomFreeLocation()));
     this.AddObject(Tauriel.GetInstance(GetRandomFreeLocation()));
     this.AddObject(Thranduil.GetInstance(GetRandomFreeLocation()));
 }
Beispiel #2
0
 public static Thranduil GetInstance(Location position)
 {
     if (Thranduil.hero == null)
     {
         Thranduil.hero = new Thranduil(position);
         return(Thranduil.hero);
     }
     else
     {
         return(Thranduil.hero);
     }
 }