예제 #1
0
 public void KillAll()
 {
     BarrierManager.KillAll();
     EnemyMatrixManager.KillAll();
     ShipsManager.KillAll();
     MotherShip.CommitSuicide();
 }
예제 #2
0
 private void initGameComponentsPositions()
 {
     EnemyMatrixManager.InitPositions();
     m_EnemyOriginalHeight = EnemyMatrixManager.EnemyMatrix[0][0].Height;
     m_EnemyOriginalWidth  = EnemyMatrixManager.EnemyMatrix[0][0].Width;
     ShipsManager.InitShipsPositions();
     BarrierManager.InitBarriersPositions(ShipsManager.ShipsYPosition());
 }
예제 #3
0
 public void PresetLevel()
 {
     BarrierManager.PresetLevel(Level);
     MotherShip.ResetPosition();
     EnemyMatrixManager.PresetLevel(Level);
     ShipsManager.PresetLevel();
     initGameComponentsPositions();
 }
예제 #4
0
 public GameManager(Game i_Game)
     : base(i_Game)
 {
     Level              = 1;
     BarrierManager     = new BarrierManager(i_Game, Level);
     EnemyMatrixManager = new EnemyMatrixManager(i_Game, Level);
     ShipsManager       = new ShipsManager(i_Game);
     MotherShip         = new MotherShip(i_Game);
     CurrentTotalScore  = 0;
     SoundManager       = Game.Services.GetService(typeof(ISoundManager)) as ISoundManager;
     BlendState         = BlendState.NonPremultiplied;
 }