Пример #1
0
        public FoodPage()
        {
            InitializeComponent();

            food = App.game.GetCurrentFood();

            lblName.Text   = food.FullDescription();
            lblHealth.Text = "Gives " + food.healthPoints.ToString() + " Health";
        }
Пример #2
0
        private void AddFoodContent(int xCoord, int yCoord)
        {
            FoodClass thisFood = new FoodClass(xCoord, yCoord);

            food.Add(thisFood);
        }