private void LoadSpellBookIntoGrid(DataGridView grid, RPGSpellBook book)
        {
            DataTable data = SetupSpellDataTable();

            for (int i = 0; i < book.SpellCountMax; i++)
            {
                RPGSpell s = book.GetSpellAtIndex(i);

                // if we don't have a spell, just add a blank row
                if (s == null)
                {
                    data.Rows.Add(data.NewRow());
                    continue;
                }

                AddSpellToDataTable(data, s);
            }

            grid.DataSource = data;
        }
        public void LoadActor(Actor a)
        {
            //set Labels
            lblName.Text   = "Name: " + a.Name;
            lblHP.Text     = "HP: " + a.HPCurrent + " / " + a.HPCurrentMax;
            lblMP.Text     = "MP: " + a.MPCurrent + " / " + a.MPCurrentMax;
            lblAttDef.Text = "Att: " + a.CurrentAttack + " / Def: " + a.CurrentDefense;

            //load Buttons - quick items
            RPGItem[] quickItems = a.inventory.GetQuickItems();
            for (int i = 0; i < quickItems.Length; i++)
            {
                LoadQuickItem(i, quickItems[i]);
            }

            // load Buttons - quick spells
            RPGSpellBook quickSpells = a.QuickSpellBook;

            for (int i = 0; i < quickSpells.SpellCountMax; i++)
            {
                LoadQuickSpell(i, quickSpells.GetSpellAtIndex(i));
            }
        }