Ejemplo n.º 1
0
        public Base(string characterName)
        {
            InitializeComponent();

            if (characterName == null)
            {
                _character = CreateCharacter.GetNewCharacter();
            }
            else
            {
                _character = CreateCharacter.LoadCharacter(characterName);
            }

            _descriptionControl  = new DescriptionControl(_character, this);
            _abilityScoreControl = new AbilityScoreControl(_character, this);
            _initControl         = new InitiativeControl(_character, this);
            _healthControl       = new HealthControl(_character, this);
            _attackControl       = new AttackControl(_character, this);
            _savingThrowControl  = new SavingThrowControl(_character, this);
            _abilitiesControl    = new AbilitiesControl(_character, this);
            _featsControl        = new FeatsControl(_character, this);
            _weaponsControl      = new WeaponsControl(_character, this);
            _equipmentControl    = new EquipmentControl(_character, this);
            _wearableControl     = new WearableControl(_character, this);
            _armorControl        = new ArmorControl(_character, this);
            _skillControl        = new SkillControl(_character, this);
            _spellsControl       = new SpellsControl(_character, this);
            _summaryControl      = new SummaryControl(_character, this);

            pnlTopLeft.Controls.Add(_descriptionControl);
            pnlBottomLeft.Controls.Add(_abilityScoreControl);
            pnlMiddle.Controls.Add(_skillControl);
            pnlInitiative.Controls.Add(_initControl);
            pnlHealth.Controls.Add(_healthControl);
            pnlArmor.Controls.Add(_armorControl);
            pnlAttackBonus.Controls.Add(_attackControl);
            pnlSavingThrows.Controls.Add(_savingThrowControl);
            pnlAbilities.Controls.Add(_abilitiesControl);
            pnlFeats.Controls.Add(_featsControl);
            pnlWeapons.Controls.Add(_weaponsControl);
            pnlEquipment.Controls.Add(_equipmentControl);
            pnlWearables.Controls.Add(_wearableControl);
            pnlSpells.Controls.Add(_spellsControl);
            pnlSummary.Controls.Add(_summaryControl);
        }