44 private int $_NB_MAX_EMPLOYEES = 5;
51 private int $_nbEmployees = 0;
84 if ( $this->_nbEmployees < $this->_NB_MAX_EMPLOYEES ) {
87 $this->_nbEmployees += 1;
93 $res = $this->_developpeur->hireDeveloper();
97 case "DirecteurMarketing":
98 $res = $this->_dirMarketing->hireDirecteurMarketing();
103 $res = $this->_gameDesigner->hireGameDesigner();
108 $res = $this->_psy->hirePsychologue();
112 case "SoundDesigner":
113 $res = $this->_soundDesigner->hireSoundDesigner();
118 $res = $this->_specialiste->hireSpecialiste();
123 $_SESSION[
"message"] =
"ERREUR : bad job name in Employes->hireEmployees";
144 if ( $this->_nbEmployees > 0 ) {
147 $this->_nbEmployees = $this->_nbEmployees - 1;
153 $res = $this->_developpeur->fireDeveloper();
157 case "DirecteurMarketing":
158 $res = $this->_dirMarketing->fireDirecteurMarketing();
163 $res = $this->_gameDesigner->fireGameDesigner();
168 $res = $this->_psy->firePsychologue();
172 case "SoundDesigner":
173 $res = $this->_soundDesigner->fireSoundDesigner();
178 $res = $this->_specialiste->fireSpecialiste();
183 $_SESSION[
"message"] =
"ERREUR : bad job name in Employes->hireEmployees";
208 $this->_game->difficulty += $increment;
213 $this->_game->affordance += $increment;
218 $this->_game->playability += $increment;
223 $this->_game->design += $increment;
228 $this->_game->soundscape += $increment;
232 case "interactivity":
233 $this->_game->interactivity += $increment;
238 $this->_game->bugs += $increment;
243 $this->_game->scenario += $increment;
248 $this->_game->research += $increment;
253 $this->_game->focus += $increment;
257 case "educationalContent":
258 $this->_game->educationalContent += $increment;