示例#1
0
        public AddNumber(DetailScreen detail, string setting)
        {
            InitializeComponent();
            this.detail = detail;

            // If EXP use "EXP"
            this.setting = setting;
        }
示例#2
0
        public MoneyManager(Character c, DetailScreen detail)
        {
            this.c      = c;
            this.detail = detail;
            setting     = "DETAIL";

            Init();
        }
 public AddStandardItem(DetailScreen screen)
 {
     InitializeComponent();
     this.screen = screen;
     db          = new DbHandler();
     inventory   = screen.inventory;
     Init();
 }
        public AddSpell(Character c, DetailScreen detailScreen)
        {
            InitializeComponent();

            this.c = c;
            db     = new DbHandler();
            spells = new List <Spell>();
            screen = detailScreen;
            GetSpells();
        }
        public AddSpell(DetailScreen detailScreen)
        {
            InitializeComponent();

            db     = new DbHandler();
            spells = new List <Spell>();
            screen = detailScreen;

            GetSpells();
        }
        public AddFeature(Character chara, DetailScreen detail)
        {
            InitializeComponent();

            this.charId    = chara.GetID();
            this.charClass = chara.GetClass();
            this.detail    = detail;

            db = new DbHandler();
            availableFeatures = new List <Feature>();

            GetFeatures();
        }
示例#7
0
        public AddHealth(int CurHP, int conMod, int classId, DetailScreen detail)
        {
            InitializeComponent();

            this.detail      = detail;
            this.currentHP   = CurHP;
            this.newHP       = 0;
            this.conModifier = conMod;
            db = new DbHandler();

            lbCurHP.Content = "Current HP: " + (currentHP + newHP);

            diceSides = db.GetHitDiceByClass(classId);
        }
示例#8
0
        public AddFeat(DetailScreen detail, Character c)
        {
            InitializeComponent();

            this.c      = c;
            this.detail = detail;
            feats       = new List <Feat>();
            db          = new DbHandler();

            // Temporary feats for testing purposes
            //Feat temp;
            //temp = new Feat("Grappler", "Grapples people", "13 Strength", 1);
            //feats.Add(temp);
            //temp = new Feat("Magic Initiate", "Spells, pew pew.", "13 Intelligence", 2);
            //feats.Add(temp);

            feats = db.GetAllFeats();

            foreach (Feat f in feats)
            {
                cbFeat.Items.Add(f);
            }
        }