Package Model.Othello

Examples of Model.Othello.Case


        int nbRedPion = 0;
        int nbBlackPion = 0;
        for (int row = 0; row <  this._othelloController.get_gridOthello().get_lignes().size(); ++row) {
            Ligne ligne = (Ligne)this._othelloController.get_gridOthello().get_lignes().elementAt(row);
            for (int col = 0; col < ligne.get_cases().size(); ++col) {
                Case c = (Case)ligne.get_cases().elementAt(col);

                //s'il y a un pion
                if(c.get_pion() == null){
                    //drawCell(g, _grid, _lines, _cubeSize, row, col);
                }else{
                    int codeCouleur = 0x000000;
                    switch(c.get_pion().get_couleur().get_valeur()){
                        case Couleur.BLACK:
                            nbBlackPion++;
                            codeCouleur = 0x000000;
                            break;
                        case Couleur.RED:
View Full Code Here

TOP

Related Classes of Model.Othello.Case

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.