예제 #1
0
 public Wave(List <Type> _enemies, EntityManager _entityManager, Stack <WaveInstruction> _waveInstructions, int _highestGrade, WaveManager _waveManager, float _timeBetween)
 {
     enemies            = _enemies;
     totalAmntOfEnemies = enemies.Count;
     entityManager      = _entityManager;
     waveInstructions   = _waveInstructions;
     highestGrade       = _highestGrade;
     waveManager        = _waveManager;
     isAlive            = true;
     timeBetween        = _timeBetween;
 }
예제 #2
0
        public EntityManager(CoordHandler _coordHandler, ContentManager _contentManager, WaveManager _waveManager)
        {
            CoordHandler   = _coordHandler;
            ContentManager = _contentManager;
            WaveManager    = _waveManager;

            healthBar = _contentManager.Load <Texture2D>("Entities/entityHealth");

            Random   = new Random((Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds);
            Entities = new List <Entity>();
        }