44 private int $_NB_MAX_EMPLOYEES = 10;
51 private int $_nbEmployees = 0;
83 if ( $this->_nbEmployees < $this->_NB_MAX_EMPLOYEES ) {
86 $this->_nbEmployees += 1;
90 $res = $this->_developpeur->hireDeveloper();
91 if(isset($_SESSION[
'logs']))
93 $log = $_SESSION[
'logs'];
99 array_push(
'Vous avez embauché un nouveau développeur',$log);
100 $_SESSION[
'logs']=$log;
103 case "DirecteurMarketing":
104 $res = $this->_dirMarketing->hireDirecteurMarketing();
108 $res = $this->_gameDesigner->hireGameDesigner();
112 $res = $this->_psy->hirePsychologue();
115 case "SoundDesigner":
116 $res = $this->_soundDesigner->hireSoundDesigner();
120 $res = $this->_specialiste->hireSpecialiste();
125 $_SESSION[
"message"] =
"ERREUR : bad job name in Employes->hireEmployees";
145 if ( $this->_nbEmployees > 0 ) {
148 $this->_nbEmployees = $this->_nbEmployees - 1;
152 $res = $this->_developpeur->fireDeveloper();
155 case "DirecteurMarketing":
156 $res = $this->_dirMarketing->fireDirecteurMarketing();
160 $res = $this->_gameDesigner->fireGameDesigner();
164 $res = $this->_psy->firePsychologue();
167 case "SoundDesigner":
168 $res = $this->_soundDesigner->fireSoundDesigner();
172 $res = $this->_specialiste->fireSpecialiste();
177 $_SESSION[
"message"] =
"ERREUR : bad job name in Employes->hireEmployees";
201 $this->_game->difficulty += $increment;
205 $this->_game->affordance += $increment;
209 $this->_game->playability += $increment;
213 $this->_game->design += $increment;
217 $this->_game->soundscape += $increment;
220 case "interactivity":
221 $this->_game->interactivity += $increment;
225 $this->_game->bugs += $increment;
229 $this->_game->scenario += $increment;
233 $this->_game->research += $increment;
237 $this->_game->focus += $increment;
240 case "educationalContent":
241 $this->_game->educationalContent += $increment;