Last active
March 15, 2016 13:38
-
-
Save AraujoJordan/ae4919e30f1a5b8112b7 to your computer and use it in GitHub Desktop.
[Nova Cursos] Aula6 - Partida
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package araujo.jordan.novaquiz; | |
import java.util.ArrayList; | |
/** | |
* Created by Jordan on 15/03/2016. | |
*/ | |
public class Partida { | |
private final ArrayList<Quiz> quizes; | |
private int perguntaAtual; | |
private int tempo, pontuacao; | |
public Partida(ArrayList<Quiz> quizes) { | |
this.quizes = quizes; | |
} | |
public int getPerguntaAtual() { | |
return perguntaAtual; | |
} | |
public void setPerguntaAtual(int perguntaAtual) { | |
this.perguntaAtual = perguntaAtual; | |
} | |
public int getTempo() { | |
return tempo; | |
} | |
public void setTempo(int tempo) { | |
this.tempo = tempo; | |
} | |
public int getPontuacao() { | |
return pontuacao; | |
} | |
public void setPontuacao(int pontuacao) { | |
this.pontuacao = pontuacao; | |
} | |
/** | |
* Assim, não é possível alterar a pergunta da lista | |
* @param numero numero da pergunta que o usuário quer | |
* @return o quiz | |
*/ | |
public Quiz getPergunta(int numero) { | |
return quizes.get(numero); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment