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()); }
public bool EnemyAtBottom() { bool isEnemyAtBottom = false; if (EnemyMatrixManager.BottomBoundEnemy != null) { isEnemyAtBottom = EnemyMatrixManager.BottomBoundEnemy.Position.Y + m_EnemyOriginalHeight >= ShipsManager.ShipsYPosition(); } return(isEnemyAtBottom); }