public void set_modeJeu (ModeJeu val) {
this._modeJeu = val;
if (this.get_modeJeu().get_mode() == ModeJeu.TYPE_JOUER_SEUL){
this.get_choiceGameView().setParentAndChild(this.get_choiceGameView(), this.get_gridView());
this.get_gridView().setParentAndChild(this.get_choiceGameView(), this.get_gridView());
this.set_redPlayer(new Player(new Couleur(Couleur.RED)));
this.set_blackPlayer(new PlayerComputer(new Couleur(Couleur.BLACK)));
this.set_currentPlayer(this.get_redPlayer());
} else if (this.get_modeJeu().get_mode() == ModeJeu.TYPE_JOUER_PLUSIEURS_SERVEUR) { // Mode Serveur
this.get_choiceGameView().setParentAndChild(this.get_choiceGameView(), this.get_loginView());
this.get_loginView().setParentAndChild(this.get_choiceGameView(), this.get_listWaitingPlayerView());
this.get_listWaitingPlayerView().setParentAndChild(this.get_loginView(), this.get_gridView());
this.get_gridView().setParentAndChild(this.get_listWaitingPlayerView(), this.get_gridView());
}else if(this.get_modeJeu().get_mode() == ModeJeu.TYPE_JOUER_PLUSIEURS) {
this.get_choiceGameView().setParentAndChild(this.get_choiceGameView(), this.get_gridView());
this.get_gridView().setParentAndChild(this.get_choiceGameView(), this.get_gridView());
this.set_redPlayer(new Player(new Couleur(Couleur.RED)));
this.set_blackPlayer(new Player(new Couleur(Couleur.BLACK)));
this.set_currentPlayer(this.get_redPlayer());
}
}