예제 #1
0
        public EnemyShipShooterService(EnemyShip enemyShip)
        {
            _enemyShip = enemyShip;

            for (int i = 0; i < 20; i++)
            {
                _photons[i] = new Photon();
            }
        }
예제 #2
0
        private void StartNewRound()
        {
            _enemyShipLastShown = DateTime.Now;
            _gameScoreKeeper.IncrementLevel();
            _photons = new Photon[20];
            _meteors = new List<Meteor>();

            _enemyShipShooterService = new EnemyShipShooterService(_enemyShip);

            for(int i = 0; i < _photons.Length; i++)
            {
                _photons[i] = new Photon();
            }

            _photons[0] = new TracerPhoton();

            for (int i = 0; i < 4+ _gameScoreKeeper.Level; i++)
            {
                _meteors.Add( new Meteor(new LargeMeteorType(), new Point(0, 0)));
            }
        }