-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatos.java
More file actions
75 lines (59 loc) · 1.57 KB
/
Datos.java
File metadata and controls
75 lines (59 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package TresEnRayaB;
/**
*
* @author Vicky
*/
public class Datos implements Constantes {
private int estado;
private int[][] tableroPos;
private char[] tableroLetras;
private int turno;
private int posicion;
private char ganador;
public Datos() {
this.estado = ESPERANDO;
this.tableroPos = new int[][]{{0, 1, 2}, {3, 4, 5}, {6, 7, 8}};
this.tableroLetras = new char[9];
}
public int getEstado() {
return estado;
}
public void setEstado(int estado) {
this.estado = estado;
}
public int getTurno() {
return turno;
}
public void setTurno(int turno) {
this.turno = turno;
}
public int getPosicion() {
return posicion;
}
public void setPosicion(int posicion) {
this.posicion = posicion;
}
public int[][] getTableroPos() {
return tableroPos;
}
public void setTableroPos(int[][] tableroPos) {
this.tableroPos = tableroPos;
}
public char[] getTableroLetras() {
return tableroLetras;
}
public void setTableroLetras(char[] tableroLetras) {
this.tableroLetras = tableroLetras;
}
public char getGanador() {
return ganador;
}
public void setGanador(char ganador) {
this.ganador = ganador;
}
}