using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Content; using System; using System.Collections.Generic; using System.Text; using Sprint3_actual.SoundManagement; using Sprint3_actual.ActiveItems; using Sprint3_actual.StateFiles; namespace Sprint3_actual { class FairyItem : IStageItem { private ISprite FairySprite; private Rectangle posRectangle; private bool removed; public bool hasActiveItem => false; public bool isStoreableItem => false; public FairyItem(int xPos, int yPos) { this.removed = false; this.posRectangle = new Rectangle(xPos, yPos, 14, 32); this.FairySprite = ItemSpriteFactory.Instance.CreateFairyItem(this); } public void setPos(int destx, int desty) { posRectangle = new Rectangle(destx, desty, 14, 32); FairySprite = ItemSpriteFactory.Instance.CreateFairyItem(this); } public Rectangle getPos() { return posRectangle; } public void DrawItem() { FairySprite.draw(); } public void UpdateItem(GameTime gameTime) { FairySprite.update(gameTime); } public void Collide() { removed = true; SoundEngine.Instance.playItemPickup(); } public bool IsRemoved() { return removed; } public IActiveItem ReturnItem(ILink link, Game1 game) { return null; } } }