public CharacterTransition(CharacterBO character)
 {
     CharacterID  = character.CharacterID;
     Name         = character.Name;
     Class        = character.Class;
     ClassLevel   = 7;
     AC           = character.AC;
     Strength     = character.Strength;
     Dexterity    = character.Dexterity;
     Constitution = character.Constitution;
     Intelligence = character.Intelligence;
     Wisdom       = character.Wisdom;
     Charisma     = character.Charisma;
     Description  = character.Description;
     SeriesID_FK  = character.SeriesID_FK;
 }
Esempio n. 2
0
        public CharacterBO NewCharacter(string _name, string _class, int _ac, int _str, int _dex, int _con, int _intel, int _wis, int _char, string _desc, int _Sid)
        {
            int         _characterID = dataContext.AddCharacter(_name, _class, _ac, _str, _dex, _con, _intel, _wis, _char, _desc, _Sid);
            CharacterBO rval         = new CharacterBO();

            rval.CharacterID  = _characterID;
            rval.Name         = _name;
            rval.Class        = _class;
            rval.AC           = _ac;
            rval.Strength     = _str;
            rval.Dexterity    = _dex;
            rval.Constitution = _con;
            rval.Intelligence = _intel;
            rval.Wisdom       = _wis;
            rval.Charisma     = _char;
            rval.Description  = _desc;
            rval.SeriesID_FK  = _Sid;
            return(rval);
        }
Esempio n. 3
0
 public void DeleteCharacter(CharacterBO character)
 {
     DeleteCharacter(character.CharacterID);
 }
Esempio n. 4
0
 public void UpdateCharacter(CharacterBO character)
 {
     dataContext.UpdateCharacter(character.CharacterID, character.Name, character.Class, character.AC, character.Strength, character.Dexterity, character.Constitution, character.Intelligence, character.Wisdom, character.Charisma, character.Description, character.SeriesID_FK);
 }