Game-Design / Sprint2 / Sprint2_actual / Items / ClockItem.cs
ClockItem.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 ClockItem : IItem
    {

        private Game1 game;
        private ISprite ClockSprite;

        private int xPos;
        private int yPos;

        public ClockItem(Game1 game, int xPos, int yPos)
        {
            this.game = game;
            this.ClockSprite = ItemSpriteFactory.Instance.CreateClockItem(xPos, yPos);
            this.xPos = xPos;
            this.yPos = yPos;

        }

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

        }

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

        }
    }
}