コード例 #1
0
ファイル: EnemyManager.cs プロジェクト: m2pham/YellowMamba
 public EnemyManager(PlayerManager playerManager, EntityManager entityManager)
 {
     Enemies = new List<Enemy>();
     PlayerManager = playerManager;
     EntityManager = entityManager;
     RandomGen = new Random();
 }
コード例 #2
0
 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);
 }