コード例 #1
0
ファイル: ShipFactory.cs プロジェクト: mangaalex95/TP1_POO
 //For Test Purposes
 /// <summary>
 /// Creates a carrier ship.
 /// </summary>
 /// <returns>EnemyShip.</returns>
 public static EnemyShip CreateCarrierShip()
 {
     CarrierEnemyShip carrierShip = new CarrierEnemyShip(0);
     return carrierShip;
 }
コード例 #2
0
ファイル: ShipFactory.cs プロジェクト: mangaalex95/TP1_POO
 /// <summary>
 /// Creates a carrier ship.
 /// </summary>
 /// <param name="startingAngle">The starting angle.</param>
 /// <param name="spawnLocation">The spawn location.</param>
 /// <param name="overSeeingGame">The over seeing game.</param>
 /// <returns>EnemyShip.</returns>
 private static EnemyShip CreateCarrierShip(float startingAngle, Vector2 spawnLocation, MajorLeagueGamingAsteroids overSeeingGame)
 {
     CarrierEnemyShip carrierShip = new CarrierEnemyShip(startingAngle);
     carrierShip.Initialize(overSeeingGame.GetTexture(MajorLeagueGamingAsteroids.TextureType.ENEMY_SHIP_CARRIER), spawnLocation);
     return carrierShip;
 }