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

        private Game1 game;
        private ISprite BombSprite;

        private int xPos;
        private int yPos;

        public BombItem(Game1 game, int xPos, int yPos)
        {
            this.game = game;
            this.BombSprite = ItemSpriteFactory.Instance.CreateBombItem(xPos, yPos);
            this.xPos = xPos;
            this.yPos = yPos;

        }

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

        }

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

        }
    }
}