Ejemplo n.º 1
0
        private PlayerStats GetSpecStats(PlayerSpecialization specialization)
        {
            switch (specialization)
            {
            case PlayerSpecialization.Mechanic:
                return(new PlayerStats()
                {
                    Strength = 1,
                    Agility = 1,
                    Intelligence = 5,
                    Stamina = 7
                });

            case PlayerSpecialization.Pilot:
                return(new PlayerStats()
                {
                    Strength = 1,
                    Agility = 1,
                    Intelligence = 5,
                    Stamina = 7
                });

            case PlayerSpecialization.Сhemist:
                return(new PlayerStats()
                {
                    Strength = 1,
                    Agility = 1,
                    Intelligence = 5,
                    Stamina = 7
                });

            default:
                throw new NotImplementedException($"Category {specialization} doesn't implemented!");
            }
        }
Ejemplo n.º 2
0
 public SpecializationStats(IStatsProvider wrappedEntity, PlayerSpecialization specialization) : base(wrappedEntity)
 {
     this.specialization = specialization;
 }