public IngameMenuCommands(IngameMenuScreen screen, Minion minion)
            : base('x')
        {
            this.minion = minion;
            this.screen = screen;
            this.Frame = new FrameBox(Constants.BordeWidth, Constants.IngameMenuDimensions, Color.Blue);
            this.Items = new CommandBoxItem[4]
            {
                new CommandBoxItem("Use",
                    new Vector2(Constants.IngameMenuDimensions.Left + 10, Constants.IngameMenuDimensions.Top + 5),
                    Color.Gray),
                new CommandBoxItem("Equip",
                    new Vector2(Constants.IngameMenuDimensions.Left + 15, Constants.IngameMenuDimensions.Top + 5 + 25),
                    Color.Gray),
                new CommandBoxItem("Save",
                    new Vector2(Constants.IngameMenuDimensions.Left + 15, Constants.IngameMenuDimensions.Top + 5 + 50),
                    Color.Gray),
                new CommandBoxItem("Exit",
                    new Vector2(Constants.IngameMenuDimensions.Left + 15, Constants.IngameMenuDimensions.Top + 5 + 75),
                    Color.Gray)
            };
            for (int i = 1; i < Items.Length; i++)
            {
                Items[i].Position = Items[i-1].Position + new Vector2(Items[i-1].StringSize().X + 10, 0);
            }

            this.Items[0].Selected += UseCommandSelected;
            this.Items[1].Selected += EquipCommandSelected;
            this.Items[2].Selected += SaveCommandSelected;
            this.Items[3].Selected += ExitCommandSelected;

            IsActive = true;
            IsVisible = true;
        }
        /// <summary>
        /// Creates a command box tailored to the minion class. Additional characters, once added should have a similar logic behind their implementation.
        /// </summary>
        /// <param name="screenInstance"></param>
        /// <param name="minion"></param>
        public MinionCommandBox(BattleScreen screenInstance, Minion minion)
            : base('y')
        {
            this.minion = minion;
            this.screenInstance = screenInstance;
            this.Frame = new FrameBox(Constants.BordeWidth, Constants.CommandBoxDimensions, Color.Blue);
            this.Items = new CommandBoxItem[4]
            {
                new CommandBoxItem("Attack",
                    new Vector2(Constants.CommandBoxDimensions.Left + 15, Constants.CommandBoxDimensions.Top + 5),
                    Color.Gray),
                new CommandBoxItem("Defend",
                    new Vector2(Constants.CommandBoxDimensions.Left + 15, Constants.CommandBoxDimensions.Top + 5 + 25),
                    Color.Gray),
                new CommandBoxItem("Skill",
                    new Vector2(Constants.CommandBoxDimensions.Left + 15, Constants.CommandBoxDimensions.Top + 5 + 50),
                    Color.Gray),
                new CommandBoxItem("Item",
                    new Vector2(Constants.CommandBoxDimensions.Left + 15, Constants.CommandBoxDimensions.Top + 5 + 75),
                    Color.Gray)
            };

            this.Items[0].Selected += AttackCommandSelected;
            this.Items[1].Selected += DefendCommandSelected;
            this.Items[2].Selected += SkillCommandSelected;
            this.Items[3].Selected += ItemCommandSelected;
        }
 public override void LoadContent()
 {
     base.LoadContent();
     if (Player == null)
     {
         XmlManager<Minion> playerLoad = new XmlManager<Minion>();
         Player = playerLoad.Load("Load/Gameplay/PlayerInfo.xml");
         Player.LoadContent();
         XmlManager<NormalEnemies> enemies = new XmlManager<NormalEnemies>();
         RegEnemies = enemies.Load("Load/Gameplay/RegularEnemies.xml");
     }
 }