Example #1
0
 public EnemyManager(PlayerManager playerManager, EntityManager entityManager)
 {
     Enemies = new List<Enemy>();
     PlayerManager = playerManager;
     EntityManager = entityManager;
     RandomGen = new Random();
 }
 public StageOnePartOneScreen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
     ScreenManager screenManager, PlayerManager playerManager)
     : base(serviceProvider, contentRootDirectory, inputManager, screenManager, playerManager)
 {
     entityManager = new EntityManager();
     playerManager.EntityManager = entityManager;
     enemyManager = new EnemyManager(playerManager, entityManager);
     playerManager.EnemyManager = enemyManager;
     wrapAroundXDest = 1280;
     wrapAroundRectangle = new Rectangle(0, 0, ScreenManager.ScreenWidth, ScreenManager.ScreenHeight);
     backgroundRectangle = new Rectangle(0, 0, ScreenManager.ScreenWidth, ScreenManager.ScreenHeight);
 }