Esempio n. 1
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();
        }
Esempio n. 2
0
 public static void IntantiateClass(IPaintInterface painter)
 {
     instance = new RegionEntities(painter);
     instance.SetupFirstRegion();
 }