using Microsoft.Xna.Framework.Graphics; using Sprint2_actual.StateFiles; using System; using System.Collections.Generic; using System.Text; namespace Sprint2_actual.ActiveItems { public class FlamingArrow : IActiveItem { private ILink link; private Game1 game; private Texture2D texture; public FlamingArrow(ILink link, Game1 game) { this.link = link; this.game = game; texture = game.PlayerTexture; } public void ActiveItemDown() { GlobalVars.ProjectileList.Add(new DownFlamingArrowSprite(link.Position(), texture)); } public void ActiveItemLeft() { GlobalVars.ProjectileList.Add(new LeftFlamingArrowSprite(link.Position(), texture)); } public void ActiveItemRight() { GlobalVars.ProjectileList.Add(new RightFlamingArrowSprite(link.Position(), texture)); } public void ActiveItemUp() { GlobalVars.ProjectileList.Add(new UpFlamingArrowSprite(link.Position(), texture)); } } }