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 WoodenSwordItem : IItem { private Game1 game; private ISprite WoodenSwordSprite; private int xPos; private int yPos; public WoodenSwordItem(Game1 game, int xPos, int yPos) { this.game = game; this.WoodenSwordSprite = ItemSpriteFactory.Instance.CreateWoodenSwordItem(xPos, yPos); this.xPos = xPos; this.yPos = yPos; } public void DrawItem() { WoodenSwordSprite.draw(); } public void UpdateItem(GameTime gameTime) { //WoodenSwordSprite.update(gameTime); } } }