public Engine(IUserInputInterface givenController, IPaintInterface painter) { this.controller = givenController; this.painter = painter; this.totalElapsedTime = TimeSpan.Zero; //// RegionEntities.InstantiateClass(this, this.painter); this.regionEntities = RegionEntities.GetInstance(); //// this.SubscribeToController(); }
public static void InstantiateClass(Engine engine, IPaintInterface painter) { _instance = new RegionEntities(engine, painter); _instance.SetupFirstRegion(); }