Package Model.Player

Examples of Model.Player.Player


    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());
        }
    }
View Full Code Here

TOP

Related Classes of Model.Player.Player

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.