Adefinir  Finale
Game.php
Go to the documentation of this file.
1 <?php
2 namespace App\Models;
3 
5 
6 /* Game
7  Classe représentant une partie du jeu, est créée lors d'un lancement d'une
8  nouvelle partie, puis détruite lorsque l'utilisateur quitte le jeu.
9 */
10 class Game {
11 
18 
24  public int $affordance = 0; // Updated by : Psychologue,
25  public int $bugs = 0; // Updated by : Developpeur,
26  public int $design = 0; // Updated by : GameDesigner,
27  public int $difficulty = 0; // Updated by : GameDesigner,
28  public int $educationalContent = 0; // Updated by : Specialiste
29  public int $focus = 0; // Updated by : Psychologue,
30  public int $interactivity = 0; // Updated by : Developpeur,
31  public int $playability = 0; // Updated by : Developpeur,
32  public int $research =0; // Updated by : DirecteurMarketing,
33  public int $scenario = 0; // Updated by : GameDesigner,
34  public int $soundscape = 0; // Updated by : SoundDesigner
35 
36 
37  // ===============================================================================
38 
39 
40  // Constructeur
41  public function __construct() {
42  $this->_employees = new Employes($this);
43  }
44 
45 
46  // ===============================================================================
47  // Fonctions
48 
49 
50  // ===============================================================================
51  // Getter/Setter
52 
53 
61  public function getEmployees() : Employes {
62  return $this->_employees;
63  }
64 
65 
73  public function getResultsArray() {
74  $res = array(
75  "affordance" => $this->affordance,
76  "bugs" => $this->bugs,
77  "design" => $this->design,
78  "difficulty" => $this->difficulty,
79  "educationalContent" => $this->educationalContent,
80  "focus" => $this->focus,
81  "interactivity" => $this->interactivity,
82  "playability" => $this->playability,
83  "research" => $this->research,
84  "scenario" => $this->scenario,
85  "soundscape" => $this->soundscape
86  );
87 
88  return $res;
89  }
90 
91 
92 }
App\Models\Game\getResultsArray
getResultsArray()
Definition: Game.php:73
App\Models\Employes
Definition: Employes.php:24
App\Models\Game\getEmployees
getEmployees()
Definition: Game.php:61
App\Models\Game\$scenario
int $scenario
Definition: Game.php:33
App\Models\Game\$focus
int $focus
Definition: Game.php:29
App\Models\Game
Definition: Game.php:10
App\Models\Game\$educationalContent
int $educationalContent
Definition: Game.php:28
App\Models\Game\__construct
__construct()
Definition: Game.php:41
App\Models\Game\$interactivity
int $interactivity
Definition: Game.php:30
App\Models\Game\$soundscape
int $soundscape
Definition: Game.php:34
App\Models\Game\$affordance
int $affordance
Definition: Game.php:24
App\Models\Game\$difficulty
int $difficulty
Definition: Game.php:27
App\Models\Game\$playability
int $playability
Definition: Game.php:31
App\Models\Game\$research
int $research
Definition: Game.php:32
App\Models
Definition: Chart.php:3
App\Models\Game\$_employees
Employes $_employees
Definition: Game.php:17
App\Models\Game\$design
int $design
Definition: Game.php:26
App\Models\Game\$bugs
int $bugs
Definition: Game.php:25