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