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