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; }
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); }