/// <summary> /// Determines whether the object is an enemy ship. /// </summary> /// <param name="objet">The objet.</param> /// <returns></returns> protected bool IsEnemyShip(Objet2D objet) { if (objet.GetType() == typeof(LittleShip) || objet.GetType() == typeof(BigShip) || objet.GetType() == typeof(BigBossShip)) { return(true); } return(false); }
/// <summary> /// Determines whether the object is an enemy ship. /// </summary> /// <param name="objet">The objet.</param> /// <returns></returns> protected bool IsEnemyShip(Objet2D objet) { if (objet.GetType() == typeof(LittleShip) || objet.GetType() == typeof(BigShip) || objet.GetType() == typeof(BigBossShip)) { return true; } return false; }
protected bool IsPlayer(Objet2D objet) { if (objet.GetType() == typeof(PlayerShip)) { return true; } return false; }
protected bool IsEnemyBullet(Objet2D objet) { if (objet.GetType() == typeof (Bullet)) { return true; } return false; }
/// <summary> /// Determines whether the specified objet is asteroid. /// </summary> /// <param name="objet">The objet.</param> /// <returns></returns> protected bool IsAsteroid(Objet2D objet) { if (objet.GetType() == typeof(Asteroid)) { return true; } return false; }
protected bool IsEnemyBullet(Objet2D objet) { if (objet.GetType() == typeof(Bullet)) { return(true); } return(false); }
protected bool IsPlayer(Objet2D objet) { if (objet.GetType() == typeof(PlayerShip)) { return(true); } return(false); }
/// <summary> /// Determines whether the specified objet is asteroid. /// </summary> /// <param name="objet">The objet.</param> /// <returns></returns> protected bool IsAsteroid(Objet2D objet) { if (objet.GetType() == typeof(Asteroid)) { return(true); } return(false); }