/// <summary> /// Spawns a Tradingship at the given position, owned by the ai. /// </summary> private void SpawnAiTradingShip(Vector2 position) { var aiTShip = new TradingShip(position) { Owned = false }; mAllShipList.Add(aiTShip); mAiTradingShipList.Add(aiTShip); }
private TradingShip NewShip() { TradingShip ship = new TradingShip(); ship.Money = 2000; ship.wishList = GetDictionary(); ship.itemsInCargo = GetDictionary(); return(ship); }
/// <summary> /// creates a new TradingShip with the specified position and owner. /// <param name="position"> The Spawnposition of the ship</param> /// <param name="owned"> The owner of the Ship. True if the player owns the ship</param> /// </summary> // ReSharper disable once UnusedMethodReturnValue.Global public void SpawnTradingShip(Vector2 position, bool owned) { var tShip = new TradingShip(position) { Owned = owned }; mAllShipList.Add(tShip); if (owned) { mPlayerShipsList.Add(tShip); } }