Exemple #1
0
 public Student(string name, Knowledge knowledge, float perceptionLvl, bool isNotebook)
 {
     Name          = name;
     PerceptionLvl = perceptionLvl;
     IsNotebook    = isNotebook;
     SetKnowledge(knowledge);
 }
Exemple #2
0
 public void SetKnowledge(Knowledge knowledge)
 {
     if (knowledge.level >= 0 && knowledge.level <= 100)
     {
         this.knowledgeLevel = knowledge;
     }
     else
     {
         this.knowledgeLevel = new Knowledge(0);
     }
 }
Exemple #3
0
 private void SetKnowledge(Knowledge knowledge)
 {
     this.knowledge = knowledge;
 }
 public Student(string name, Knowledge knowledge)
 {
     this.name      = name;
     this.knowledge = knowledge;
 }
Exemple #5
0
 public void SetKnowledge(Knowledge k)
 {
     knowledge = k;
 }