-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeamplatesDeVillages.java
More file actions
180 lines (128 loc) · 6.21 KB
/
TeamplatesDeVillages.java
File metadata and controls
180 lines (128 loc) · 6.21 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
package botpackage;
import java.util.ArrayList;
import java.util.List;
public class TeamplatesDeVillages {
/*
batimentsALancer.add("B�timent Principal");
batimentsALancer.add("D�p�t de ressources");
batimentsALancer.add("Silo de c�r�ales");
batimentsALancer.add("Place du march�");
batimentsALancer.add("Moulin");
batimentsALancer.add("Boulangerie");
batimentsALancer.add("Acad�mie");
batimentsALancer.add("Caserne");Bûcheron Écurie
*///
//correspondances de noms
static String bois ="Bûcheron";
static String cereale = "Ferme";
static String fer= "fer";
static String terre= "argile";
static String grande_ecurie = "Grande �curie";
static String grande_caserne= "Grande caserne";
static String place_tournoi= "Place du tournoi";
static String place_rassemblement= "Place de rassemblement";
static String boulangerie= "Boulangerie";
static String moulin= "Moulin";
static String scierie= "Scierie";
static String poterie= "Usine de Poteries";
static String fonderie= "Fonderie";
static String cachette= "Cachette";
static String pieges = "Fabricant de pièges";
static String residence = "Résidence";
static String atelier= "Atelier";
static String hotel_de_ville= "Hôtel de Ville";//Hôtel de Ville
static String ambassade = "Ambassade";
static String mur = "Palissade";
static String palais = "Palais";
static String silo ="Silo de céréales";
static String depot ="Dépôt de ressources";
static String batiment_principal ="Bâtiment Principal";
static String empty = "Site de construction";
static String marche = "Place du marché";
static String academie = "Académie";
static String caserne = "Caserne";
static String tailleur = "Tailleur de Pierres";
static String grandSilo = "Grand silo de céréales";
static String grandDepot = "Grand dépôt de ressources";
List<Batiment> listeDeBatimentsDuTeamplate1 = new ArrayList();
List<Batiment> listeDeBatimentsDuTeamplate2 = new ArrayList();
List<Batiment> listeDeBatimentsDuTeamplate3 = new ArrayList();
List<Batiment> listeDeBatimentsDuTeamplate4 = new ArrayList();
public TeamplatesDeVillages() {
listeDeBatimentsDuTeamplate1.add(new Batiment(batiment_principal, 5));
listeDeBatimentsDuTeamplate1.add(new Batiment(silo, 5));
listeDeBatimentsDuTeamplate1.add(new Batiment(depot, 5));
listeDeBatimentsDuTeamplate1.add(new Batiment(residence, 5));
listeDeBatimentsDuTeamplate1.add(new Batiment(marche, 3));
listeDeBatimentsDuTeamplate2.add(new Batiment(moulin, 2));
listeDeBatimentsDuTeamplate2.add(new Batiment(batiment_principal, 10));
listeDeBatimentsDuTeamplate2.add(new Batiment(silo, 11));
listeDeBatimentsDuTeamplate2.add(new Batiment(depot, 11));
listeDeBatimentsDuTeamplate2.add(new Batiment(residence, 10));
listeDeBatimentsDuTeamplate2.add(new Batiment(marche, 5));
listeDeBatimentsDuTeamplate2.add(new Batiment(caserne, 3));
listeDeBatimentsDuTeamplate2.add(new Batiment(palais, 10));
listeDeBatimentsDuTeamplate2.add(new Batiment(tailleur, 5));
listeDeBatimentsDuTeamplate3.add(new Batiment(batiment_principal, 15));
listeDeBatimentsDuTeamplate3.add(new Batiment(silo, 13));
listeDeBatimentsDuTeamplate3.add(new Batiment(depot, 13));
listeDeBatimentsDuTeamplate3.add(new Batiment(residence, 10));
listeDeBatimentsDuTeamplate3.add(new Batiment(moulin, 4));
listeDeBatimentsDuTeamplate3.add(new Batiment(marche, 12));
listeDeBatimentsDuTeamplate3.add(new Batiment(caserne, 5));
listeDeBatimentsDuTeamplate3.add(new Batiment(academie, 10));
listeDeBatimentsDuTeamplate3.add(new Batiment(palais, 20));
listeDeBatimentsDuTeamplate3.add(new Batiment(tailleur, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(poterie, 5));
listeDeBatimentsDuTeamplate4.add(new Batiment(scierie, 5));
listeDeBatimentsDuTeamplate4.add(new Batiment(fonderie, 5));
listeDeBatimentsDuTeamplate4.add(new Batiment(moulin, 5));
listeDeBatimentsDuTeamplate4.add(new Batiment(boulangerie, 5));
listeDeBatimentsDuTeamplate4.add(new Batiment(batiment_principal, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(silo, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(depot, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(marche, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(academie, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(hotel_de_ville, 14));
listeDeBatimentsDuTeamplate4.add(new Batiment(caserne, 10));
listeDeBatimentsDuTeamplate4.add(new Batiment(place_rassemblement, 10));
listeDeBatimentsDuTeamplate4.add(new Batiment(palais, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(tailleur, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(grandSilo, 20));
listeDeBatimentsDuTeamplate4.add(new Batiment(grandDepot, 20));
}
public List<Batiment> getListeDeBatimentsDuTeamplate1() {
return listeDeBatimentsDuTeamplate1;
}
public void setListeDeBatimentsDuTeamplate1(List<Batiment> listeDeBatimentsDuTeamplate1) {
this.listeDeBatimentsDuTeamplate1 = listeDeBatimentsDuTeamplate1;
}
public List<Batiment> getListeDeBatimentsDuTeamplate2() {
return listeDeBatimentsDuTeamplate2;
}
public void setListeDeBatimentsDuTeamplate2(List<Batiment> listeDeBatimentsDuTeamplate2) {
this.listeDeBatimentsDuTeamplate2 = listeDeBatimentsDuTeamplate2;
}
public List<Batiment> getListeDeBatimentsDuTeamplate3() {
return listeDeBatimentsDuTeamplate3;
}
public void setListeDeBatimentsDuTeamplate3(
List<Batiment> listeDeBatimentsDuTeamplate3) {
this.listeDeBatimentsDuTeamplate3 = listeDeBatimentsDuTeamplate3;
}
public List<Batiment> getListeDeBatimentsDuTeamplate4() {
return listeDeBatimentsDuTeamplate4;
}
public void setListeDeBatimentsDuTeamplate4(
List<Batiment> listeDeBatimentsDuTeamplate4) {
this.listeDeBatimentsDuTeamplate4 = listeDeBatimentsDuTeamplate4;
}
public List<Batiment> etablirTeamplatePourUnVillage(int champMin) {
if (champMin <= 4 ){return listeDeBatimentsDuTeamplate1;}
if (champMin <= 8 && champMin >4){return listeDeBatimentsDuTeamplate2;}
if (champMin < 10 && champMin > 7){return listeDeBatimentsDuTeamplate3;}
if (champMin == 10){return listeDeBatimentsDuTeamplate4;}
if (champMin > 10){return listeDeBatimentsDuTeamplate4;}
return null;
}
}