Example #1
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());
 }
Example #2
0
        public bool EnemyAtBottom()
        {
            bool isEnemyAtBottom = false;

            if (EnemyMatrixManager.BottomBoundEnemy != null)
            {
                isEnemyAtBottom = EnemyMatrixManager.BottomBoundEnemy.Position.Y + m_EnemyOriginalHeight
                                  >= ShipsManager.ShipsYPosition();
            }

            return(isEnemyAtBottom);
        }