using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Sprint2_actual.StateFiles; using System; using System.Collections.Generic; using System.Text; namespace Sprint2_actual.ActiveItems { class Bomb : IActiveItem { private ILink link; private Game1 game; private Texture2D texture; private Vector2 pos; public Bomb(ILink link, Game1 game) { this.link = link; this.game = game; texture = game.PlayerTexture; pos = link.Position(); } public void ActiveItemDown() { pos.Y += 30; GlobalVars.ProjectileList.Add(new ActiveBombSprite(pos, texture)); } public void ActiveItemLeft() { pos.X -= 30; GlobalVars.ProjectileList.Add(new ActiveBombSprite(pos, texture)); } public void ActiveItemRight() { pos.X += 30; GlobalVars.ProjectileList.Add(new ActiveBombSprite(pos, texture)); } public void ActiveItemUp() { pos.Y -= 45; GlobalVars.ProjectileList.Add(new ActiveBombSprite(pos, texture)); } } }