Example #1
0
        private void btnAddExp_Click(object sender, EventArgs e)
        {
            int xp = Convert.ToInt32(updAddExp.Text);

            playerCharacter.AddExperience(xp);
            lblCharName.Text = playerCharacter.ToString();
            boxExp.Text      = playerCharacter.ExperienceToString();
            boxHP.Text       = playerCharacter.HitPointsToString();
            boxAP.Text       = playerCharacter.AttackToString();
            boxWillSave.Text = playerCharacter.WillSaveToString();
            boxRefSave.Text  = playerCharacter.RefSaveToString();
            boxFortSave.Text = playerCharacter.FortSaveToString();
            boxGold.Text     = String.Format("{0:N0}", playerCharacter.Gold);
            toggleVisibleAddPoints();
        }