private void updateIntersections(GraphicsDevice i_GraphicDevice) { // enemy reach bottom if (m_Enemies.IsEndOfGame()) { printScore(); } // enemy bullet hit ship shipGotHitFromBullet(m_Player1, i_GraphicDevice); shipGotHitFromBullet(m_Player2, i_GraphicDevice); // ship bullet hit enemy ShipHitEnemy(m_Player1); ShipHitEnemy(m_Player2); // Enemy and ship intersect if (m_Enemies.ShipIntersection(m_Player1) || m_Enemies.ShipIntersection(m_Player2)) { printScore(); } // Barriers and bullets m_Barriers.BulletIntersection(AllActiveBullets()); // Barriers and enemies m_Barriers.EnemyIntersection(m_Enemies.Table); // Bullets and bullets BulletsIntersection(); }