/// <summary> /// Load a character's data from a CharacterSheet /// </summary> /// <param name="character">Character data to load</param> override public void loadFromCharactersheet(CharacterSheet character) { Mistborn_CharacterSheet tmpSheet = (Mistborn_CharacterSheet)character; // Update whatever needs to be updated base.loadFromCharactersheet(character); // Pass the sheet to a lower level of the class for processing. }
/// <summary> /// Constructs a CharacterSheet containing the updated UI infromation /// </summary> /// <param name="tempSheet">A CharacterSheet started at a higher level (if not null)</param> /// <returns>Updated CharacterSheet information</returns> override public CharacterSheet UpdatedCharacterSheet(CharacterSheet tempSheet = null) { Mistborn_CharacterSheet tmp; if (tempSheet == null)// Should never happen at the this level { tmp = new Mistborn_CharacterSheet(); } else { tmp = (Mistborn_CharacterSheet)tempSheet; } // stuff to return here return(base.UpdatedCharacterSheet(tmp)); // Return the results from all levels of updating }
/// <summary> /// Initialize a new Mistborn Character Details Conroller /// </summary> /// <param name="gui">Interface reference for the Character Details GUI</param> public Mistborn_Controller(Character_Form_Interface gui) : base(gui) { mistborn_character_sheet = new Mistborn_CharacterSheet(); character_sheet = mistborn_character_sheet; // character_sheet is a lower level reference to our Mistborn character sheet }