using Microsoft.Xna.Framework.Graphics; using Sprint2_actual.StateFiles; using System; using System.Collections.Generic; using System.Text; namespace Sprint2_actual.ActiveItems { public class MagicBoomerang : IActiveItem { private ILink link; private Game1 game; private Texture2D texture; public MagicBoomerang(ILink link, Game1 game) { this.game = game; this.link = link; texture = game.PlayerTexture; } public void ActiveItemDown() { GlobalVars.ProjectileList.Add(new DownMagicBoomerangSprite(link, texture)); } public void ActiveItemLeft() { GlobalVars.ProjectileList.Add(new LeftMagicBoomerangSprite(link, texture)); } public void ActiveItemRight() { GlobalVars.ProjectileList.Add(new RightMagicBoomerangSprite(link, texture)); } public void ActiveItemUp() { GlobalVars.ProjectileList.Add(new UpMagicBoomerangSprite(link, texture)); } } }