r1 - 24 Oct 2006 - 12:38:29 - AndreFerreiraYou are here: TWiki >  Doo Web  > TrabalhosRonaldinho > AndreFerreira > JogoDamas > PackageProgramaDama > ClasseJogo
package programa; public class Jogo {

int largura, altura, andar; String jogadorReferente, tipoDeMovimento;

private Jogador jogadorControlável, jogadorComputador;

public Jogo(Jogador jogadorHumano, Jogador jogadorArtificial) {

jogadorControlável = jogadorHumano;

jogadorComputador = jogadorArtificial;

}

public Peças obterPeça(){

jogadorReferente = "";

tipoDeMovimento = "Diagonal";

Peças peçaGenérica = new Peças(tipoDeMovimento, jogadorReferente);

return peçaGenérica;

}

public Tabuleiro obterTabuleiro(){

altura = 8; largura = 4;

Tabuleiro tabuleiroDeDamas = new Tabuleiro(altura, largura); return tabuleiroDeDamas; }

}

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback