Inheritance: Gears.Playable.UnitTypeFactory
Ejemplo n.º 1
0
        private void Register()
        {
            _sineAlienFactory = new SineAlienFactory();
            _straightLineAlienFactory = new StraightLineAlienFactory();

            //esf = new EnemyShipFactory();
            List<UnitTypeFactory> _lFact = new List<UnitTypeFactory>();
            //_lFact.Add(esf); //iterate this for each UnitTypeFactory
            _lFact.Add(_sineAlienFactory);
            _lFact.Add(_straightLineAlienFactory);

            base.Register(_lFact.ToArray());
            _lFact = null; //this probably isn't necessary, is it?
        }
Ejemplo n.º 2
0
        private void Register()
        {
            _sineAlienFactory         = new SineAlienFactory();
            _straightLineAlienFactory = new StraightLineAlienFactory();

            //esf = new EnemyShipFactory();
            List <UnitTypeFactory> _lFact = new List <UnitTypeFactory>();

            //_lFact.Add(esf); //iterate this for each UnitTypeFactory
            _lFact.Add(_sineAlienFactory);
            _lFact.Add(_straightLineAlienFactory);


            base.Register(_lFact.ToArray());
            _lFact = null; //this probably isn't necessary, is it?
        }