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

        private Game1 game;
        private ISprite RedRingSprite;

        private int xPos;
        private int yPos;

        public RedRingItem(Game1 game, int xPos, int yPos)
        {
            this.game = game;
            this.RedRingSprite = ItemSpriteFactory.Instance.CreateRedRingItem(xPos, yPos);
            this.xPos = xPos;
            this.yPos = yPos;

        }

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

        }

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

        }
    }
}