Beispiel #1
0
 public Student(string name, IPet pet, StudentType studentType, OtherCompetence otherCompetance, IKnowledge knowledge)
     : base(name, Student.StudentBaseHp)
 {
     this.studentType = studentType;
     this.otherCompetence = otherCompetance;
     this.Knowledge = knowledge;
     this.pet = pet;
     this.IsAlive = true;
 }
Beispiel #2
0
 public Student(string name, IPet pet, StudentType studentType, OtherCompetence otherCompetance, IKnowledge knowledge)
     : base(name, Student.StudentBaseHp)
 {
     this.studentType     = studentType;
     this.otherCompetence = otherCompetance;
     this.Knowledge       = knowledge;
     this.pet             = pet;
     this.IsAlive         = true;
 }
        private IKnowledge GenerateInitialKnowedge(StudentType studentType, OtherCompetence otherCompetence)
        {
            double initial = 0;

            if (studentType != StudentType.ThisYearStudent)
            {
                initial = 10;
            }
            initial = RandomProvider.Instance.Next(10, 21) + initial + (int)otherCompetence;

            IKnowledge knowledge = new KnowledgeStats(initial);

            return knowledge;
        }
Beispiel #4
0
        private IKnowledge GenerateInitialKnowedge(StudentType studentType, OtherCompetence otherCompetence)
        {
            double initial = 0;

            if (studentType != StudentType.ThisYearStudent)
            {
                initial = 10;
            }
            initial = RandomProvider.Instance.Next(10, 21) + initial + (int)otherCompetence;

            IKnowledge knowledge = new KnowledgeStats(initial);

            return(knowledge);
        }