示例#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
        //private CharacterUnit _player;
        //private List<EnemyNPCUnit> _enemies;
        //private List<Ability> _abilities; //Timeoutable

        public Engine(IUserInputInterface givenController, IPaintInterface painter, int timeInterval)
        {
            this._controller   = givenController;
            this._painter      = painter;
            this._timeInterval = timeInterval;
            //test
            RegionEntities.IntantiateClass(this._painter);
            this.regionEntities = RegionEntities.GetInstance();
            //endTest
            SubscribeToController();
        }
示例#3
0
 public Engine(IUserInputInterface givenController, IPaintInterface painter, int timeInterval)
 {
     this._controller   = givenController;
     this.Painter       = painter;
     this._timeInterval = timeInterval;
     SubscribeToController();
     this._enemies   = new List <EnemyNPCUnit>();
     this._abilities = new List <Ability>();
     this._items     = new List <Item>();
     SetBackground();
     InitialiseItems();
     InitialiseEnemies();
     IntialisePlayer();
 }
示例#4
0
 public static void InstantiateClass(Engine engine, IPaintInterface painter)
 {
     _instance = new RegionEntities(engine, painter);
     _instance.SetupFirstRegion();
 }
示例#5
0
 private RegionEntities(Engine engine, IPaintInterface painter)
 {
     this.painter      = painter;
     this.ParentEngine = engine;
 }
 public static void IntantiateClass(IPaintInterface painter)
 {
     instance = new RegionEntities(painter);
     instance.SetupFirstRegion();
 }
 private RegionEntities(IPaintInterface painter)
 {
     this.painter = painter;
 }