Game-Design / Sprint3 / Items / WhiteSwordItem.cs
WhiteSwordItem.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 WhiteSwordItem : IItem
    {

        private Game1 game;
        private ISprite WhiteSwordSprite;

        private int xPos;
        private int yPos;

        public WhiteSwordItem(Game1 game, int xPos, int yPos)
        {
            this.game = game;
            this.WhiteSwordSprite = ItemSpriteFactory.Instance.CreateWhiteSwordItem(xPos, yPos);
            this.xPos = xPos;
            this.yPos = yPos;

        }

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

        }

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

        }
    }
}