Game-Design / Sprint3 / Items / Potion2ndItem.cs
Potion2ndItem.cs
Raw
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sprint2_actual
{
    class Potion2ndItem : IItem
    {

        private Game1 game;
        private ISprite Potion2ndSprite;

        private int xPos;
        private int yPos;

        public Potion2ndItem(Game1 game, int xPos, int yPos)
        {
            this.game = game;
            this.Potion2ndSprite = ItemSpriteFactory.Instance.CreatePotion2ndItem(xPos, yPos);
            this.xPos = xPos;
            this.yPos = yPos;

        }

        public void DrawItem()
        {
            Potion2ndSprite.draw();

        }

        public void UpdateItem(GameTime gameTime)
        {
            //Potion2ndSprite.update(gameTime);

        }
    }
}