-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntrus.java
47 lines (41 loc) · 1011 Bytes
/
Intrus.java
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
package guardian;
public class Intrus {
private static Obstacles D = new Obstacles(6);//intrus dynamiques
private static Obstacles S = new Obstacles(5);//intrus Statiques
// private static Obstacles S2 = new Obstacles(7);//c'est faut !!
//private static Obstacles S3 = new Obstacles(6);
// private static Obstacles S4;
public void setD(Obstacles d) {
D = d;
}
public static Obstacles getS(int i, int j) {
if(Grille.getGrille()[i][j].getO()==S)
return S;
if(Grille.getGrille()[i][j].getO()==D)
return D;
/*if(Grille.grille[i][j].getO()==S3)
return S3;
if(Grille.grille[i][j].getO()==S4)
return S4;*/
return null;
}
public static Obstacles getS() {
return S;
}
public static Obstacles getD() {
return D;
}
/*public static Obstacles getS1() {
return S1;
}
public static Obstacles getS2() {
return S2;
}
public static Obstacles getS3() {
return S3;
}
public static Obstacles getS4() {
return S4;
}
*/
}