22 lines
403 B
Java
22 lines
403 B
Java
// Antoine CRETUAL, Lukian LEIZOUR, 21/02/2024
|
|
|
|
public class Situation {
|
|
// Atributes
|
|
|
|
public int pos_i, pos_j, direction, nb_choix;
|
|
|
|
// Constructors
|
|
|
|
public Situation(int i, int j, int d, int n) {
|
|
this.pos_i = i;
|
|
this.pos_j = j;
|
|
this.direction = d;
|
|
this.nb_choix = n;
|
|
}
|
|
|
|
// Methods
|
|
|
|
public Situation copy(int n) {
|
|
return new Situation(this.pos_i, this.pos_j, this.direction, n);
|
|
}
|
|
}
|