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