public MarketScreen()
        {
            this.InitializeComponent();

            MarketTitle.Text = Game.Instance.Universe.CurrentPlanet.Name + " Market";
            marketplace      = Game.Instance.Universe.CurrentPlanet.Marketplace;

            foreach (Good good in marketplace.Supply)
            {
                marketGoods.Add(good.Name);
            }

            foreach (Good good in Game.Instance.Player.Ship.Cargo)
            {
                shipGoods.Add(good.Name);
            }

            EnablingButtons();
            PlayerMoney.Text = Game.Instance.Player.Money.ToString();
        }
Exemplo n.º 2
0
 // This method initializes the marketplace on a planet. It should be called after the player
 // visits the planet. It creates a random supply of various goods
 public Marketplace EnterMarket(Player player)
 {
     Marketplace = new Marketplace();
     return(Marketplace);
 }