예제 #1
0
 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();
 }
예제 #2
0
 public static void InstantiateClass(Engine engine, IPaintInterface painter)
 {
     _instance = new RegionEntities(engine, painter);
     _instance.SetupFirstRegion();
 }