public GameServer(ILoginValidator loginvalidator, IPasswordValidator passwordvalidator, ICharacterSkillPoints characterskillpoints, ICharacterRace characterrace)
 {
     this.loginvalidator       = loginvalidator;
     this.passwordvalidator    = passwordvalidator;
     this.characterskillpoints = characterskillpoints;
     this.characterrace        = characterrace;
 }
Exemple #2
0
        public void ShouldNotEquate()
        {
            //assign
            ICharacterRace race  = CharacterRace.Human;
            ICharacterRace race2 = CharacterRace.WoodElf;

            //assert
            race2.Should().NotBe(race);
        }
Exemple #3
0
        public void ShouldEquate()
        {
            //assign
            ICharacterRace race  = CharacterRace.Human;
            ICharacterRace race2 = CharacterRace.Human;

            //assert
            race2.Should().Be(race);
        }
Exemple #4
0
        public void ShouldReturnName()
        {
            //assign
            ICharacterRace race = CharacterRace.Human;

            //assert
            ITextObj name = race.Name();

            name.Should().Be(new TextObj("Human"));
        }
Exemple #5
0
 public ICharacterRace CreateCharacterRace(ICharacterRace characterrace)
 {
     return(characterrace.CreateCharacterRace(characterrace));
 }
Exemple #6
0
 public void ApplyRacialBonus(ICharacterRace race) => _racialAttributeAdjustment = race.RacialAttributeAdjustment(this);
Exemple #7
0
 public void ApplyRacialBonus(ICharacterRace race)
 {
 }
 public CharacterSheet(ICharacterClass characterClass, ICharacterRace race, IAttributeSet attributeSet)
 {
     _characterClass = characterClass;
     _race           = race;
     _attributeSet   = attributeSet;
 }