Example #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()));
 }
Example #2
0
 public static Elrond GetInstance(Location position)
 {
     if (Elrond.hero == null)
     {
         Elrond.hero = new Elrond(position);
         return(Elrond.hero);
     }
     else
     {
         return(Elrond.hero);
     }
 }