-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmonopoly-template.html
378 lines (349 loc) · 15.7 KB
/
monopoly-template.html
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Monopoly FULL JS</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<script type="text/javascript" src="lib/circletype.min.js"></script>
<style></style>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<div id="informations-left" class="panneau_joueur player_left"></div>
<div style="width:810px;height:810px;position:relative;float:left" id="plateau" class="graphic_element">
<canvas id="canvas" width="810" height="810" style="top:0px;left:0px;position:absolute"></canvas>
<canvas id="canvas_rt" width="810" height="810" style="top:0px;left:0px;position:absolute"></canvas>
<div>
<img src="img/reload_dice.png" style="display:none;" id="idReloadDice" alt="Relancez" title="Relancez"
class="graphic_element"/>
<div id="idActions">
<button title="Lancez les dés" id="idLancerDes" class="action-joueur" disabled="disabled">
<img src="img/dices.png" alt="Lancer les dés"/>
</button>
<button title="Achat maisons" id="idOpenPanelHouses" class="action-joueur action-normal"
disabled="disabled">
<img src="img/house2.png" alt="Acheter des maisons"/>
</button>
<button title="Echange terrains" id="idEchangeTerrains" class="action-normal action-joueur"
disabled="disabled">
<img src="img/swap.png" alt="Echanger terrains"/>
</button>
<button title="Terrains libres" id="idOpenFreeTerrains" class="action-joueur" disabled="disabled">
<img src="img/list.png" alt="Liste des terrains"/>
</button>
</div>
<div style="position:absolute;top:300px;left:150px;border:solid 1px black;border-radius:10px;width:175px;padding:5px;display:none"
id="idMontantParc">
Parc Gratuit : Frs <span></span>
</div>
<div id="idTitle" class="title" style="position: absolute; left: 400px; top: 180px;">
<h1 id="idSavePanel" title="Cliquez pour sauvegarder">MONOPOLY</h1>
<h2 id="idSubTitle"></h2>
</div>
<div class="info_box graphic_element" id="idInfoBox">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<div id="informations" class="panneau_joueur player_right"></div>
<div style="clear:both"/>
<div id="idDebug" style="display:none">
case : <input type="text" size="3" id="nb"/>
<input type="button"
id="idDebugNbDices"
value="click"/>
<br/>
Goto : <input type="text" size="3" id="ide"/>
<input type="text" size="3" id="idp"/>
<input type="button" id="idDebugDices" value="goto"/>
<br/>
</div>
<div id="informations-bottom" class="panneau_joueur" style="width:100%"></div>
<div id="fiche" style="background-color:white;font-size:12px;display:none">
<table>
<tr>
<td></td>
<td>€</td>
</tr>
<tr>
<td>ACHAT</td>
<td class="achat"></td>
</tr>
<tr>
<td>LOYER terrain nu</td>
<td class="loyer0"></td>
</tr>
<tr class="maison">
<td> - 1 maison</td>
<td class="loyer1"></td>
</tr>
<tr class="maison">
<td> - 2 maisons</td>
<td class="loyer2"></td>
</tr>
<tr class="maison">
<td> - 3 maisons</td>
<td class="loyer3"></td>
</tr>
<tr class="maison">
<td> - 4 maisons</td>
<td class="loyer4"></td>
</tr>
<tr class="maison">
<td> - Hotel</td>
<td class="loyer5"></td>
</tr>
</table>
<hr/>
<div class="infos-group">
Loyer double si <span style="font-weight:bold">TOUS</span> les terrains du groupe de Couleur.
</div>
<hr/>
<div>
Prix des Maisons F <span class="prixMaison"></span><br/>
Prix d'un Hôtel F <span class="prixMaison"></span><br/>
</div>
Valeur hypothécaire : Frs <span class="montantHypotheque"></span>
</div>
<div id="ficheJunior" style="background-color:white;font-size:12px;display:none">
<table>
<tr>
<td></td>
<td>€</td>
</tr>
<tr>
<td>ACHAT</td>
<td id="acht" name="achat"></td>
</tr>
<tr>
<td>LOYER</td>
<td class="loyer0"></td>
</tr>
</table>
<hr/>
<div class="infos-group">
Loyer double si <span style="font-weight:bold">TOUS</span> les terrains du groupe de Couleur.
</div>
<hr/>
</div>
<div id="ficheCompagnie" style="background-color:white;display:none">
<br/>
Si l'on possède UNE carte de compagnie de Service Public, le loyer est 400 fois le montant indiqué par les dés.<br/><br/>
Si l'on possède les DEUX cartes de compagnies de Service Public, le loyer est MILLE fois le montant indiqué par les
dés.<br/><br/>
Valeur hypotécaire : Frs 7.500
</div>
<div id="achatMaisons" style="background-color:white;"></div>
<div id="message" style="display:none;background-color:white"></div>
<div style="display:none; " id="housesPanel">
<div style="width:50%;height:calc(100% - 45px);background-color:white;float:left">
<div class="title-dialog">Hypotheque</div>
<fieldset id="idTerrainsHypotheques" style="border:solid 1px darkgrey;margin-top:10px;">
<legend>Terrains hypothéqués</legend>
<div>
</div>
</fieldset>
<fieldset id="idTerrains" style="border:solid 1px darkgrey;margin-top:10px;">
<legend>Terrains hypothécables</legend>
<select></select>
<button id="idHypothequeAction">Hypothéquer</button>
<div id="toHypotheque"></div>
</fieldset>
</div>
<div style="width:50%;height:calc(100% - 45px);background-color:white;float:right">
<div class="title-dialog">Constructions</div>
<div id="idTerrainsConstructibles" class="constructions" style="padding-left: 10px"></div>
<hr style="margin-right:10px;width:150px;float:right;"/>
<div style="clear:both"></div>
<div style="margin-right:40px;float:right" id="coutAchats">
<img src="img/maison.png" style="width:15px;" alt="Maison"/> x <span class="nbMaison">0</span>
<img src="img/hotel.png" style="width:15px;" alt="Hotel"/> x <span class="nbHotel">0</span>
<span name="cout" style="margin-left: 10px"></span> <span class="currency-value"></span>
</div>
<div style="clear:both"></div>
<div style="margin-right:40px;float:right" id="resteConstructions">
Reste <img src="img/maison.png" style="width:15px;" alt="Reste maion"/> x <span class="nbMaison">0</span>
<img src="img/hotel.png" style="width:15px;" alt="Reste hotel"/> x <span class="nbHotel">0</span>
</div>
</div>
<div style="clear:both;width:100%;height:40px;background-color:white">
<table style="height:100%;width:100%;border:0;border-collapse: collapse">
<tr>
<td style="width:70%;height:100%;background-color:white" class="warning-message"></td>
<td style="width:26%;border:solid 1px black;padding:5px;background-color:white">
Coût : <span id="idCoutTotal" style="font-weight:bold"></span><br/>
Porte-monnaie : <span id="idArgentRestant" style="font-weight:bold"></span>
</td>
<td style="width:4%;background-color:white;"></td>
</tr>
</table>
</div>
</div>
<div id="idTerrainsLibres" style="display:none"></div>
<div style="display:none" id="infoJoueur">
<div style="font-size:12px">
<div class="player-name"></div>
<div><span class="info-label">Type</span> : <span data-name="type"></span></div>
<div><span class="info-label"><img src="img/strategy.png" alt="Stratégie"/></span>
: <span data-name="strategie"></span></div>
<div><span class="info-label"><img src="img/behaviour.png" alt="Comportement"/></span>
: <span data-name="comportement"></span></div>
<div><span class="info-label"><img src="img/money.png" alt="Argent"/></span>
: <span data-name="argent"></span></div>
<div><span class="info-label">
<img src="img/money.png" alt="Argent"/>
<img src="img/money.png" alt="Argent"/>
</span>
: <span data-name="argentDispoHypo"></span></div>
<div><span class="info-label">
<img src="img/money.png" alt="Argent"/>
<img src="img/money.png" alt="Argent"/>
<img src="img/money.png" alt="Argent"/>
</span>
: <span data-name="argentDispo"></span></div>
<div><span class="info-label small"><img src="img/maison.png" alt="Maison"/></span>
: <span data-name="maison"></span></div>
<div><span class="info-label small"><img src="img/hotel.png" alt="Hotel"/>
</span> : <span data-name="hotel"></span></div>
<div><span class="info-label"><img src="img/jail.jpg" alt="Prison"/></span>
: <span data-name="prison"></span> fois
</div>
<div><span class="info-label"><img src="img/tour.png" alt="Nb tour"/></span>
: <span data-name="tour"></span>
tour(s)
</div>
</div>
</div>
<div style="display:none;background-color:#CEE6D0" id="idPanelCreatePartie">
<div id="idCreationGame">
<div id="create">
<div style="padding-left:10px;">Joueur : <input type="text" id="idNomJoueur" name="joueur"
placeholder="Nom"/></div>
<fieldset id="idGameType">
<legend>Plateau</legend>
<div style="display:inline-block;width:75px;">Plateau</div>
<select id="idSelectPlateau"></select><br/>
<div style="display:inline-block;width:75px;">Type</div>
<input type="radio" name="typeGame" value="classic" id="idClassiqueGame" checked/><label
for="idClassiqueGame">Classique</label>
<input type="radio" name="typeGame" value="quick" id="idQuickGame"/><label
for="idQuickGame">Rapide</label><br/>
<div id="idNetwork">
<div style="display:inline-block;width:75px;">Réseau</div>
<input type="radio" name="networkGame" value="false" id="idLocalTypeGame" checked/><label
for="idLocalTypeGame">Non (local)</label>
<input type="radio" name="networkGame" value="true" id="idNetworkTypeGame"/><label
for="idNetworkTypeGame">Oui</label>
</div>
</fieldset>
<fieldset>
<legend>Créer une partie</legend>
<fieldset id="idPartie">
<legend>Joueurs</legend>
<div>
<div style="display:inline-block;width:75px;">Total</div>
<input type="range" value="4" min="2" max="6" step="1"
onmousemove="document.querySelector('#idNbPlayers').textContent = this.value"/>
<span id="idNbPlayers">4</span>
</div>
<div>
<div style="display:inline-block;width:75px;">Robots</div>
<input type="range" value="2" min="2" max="6" step="1"
onmousemove="document.querySelector('#idNbRobots').textContent = this.value"/>
<span id="idNbRobots">2</span>
</div>
<!--Rapidité des robots :
<select name="waitTimeIA">
<option value="100" selected>0s</option>
<option value="1000">1s</option>
<option value="1500">1.5s</option>
<option value="2000">2s</option>
<option value="4000">4s</option>
</select>
-->
</fieldset>
<fieldset id="idVariantes">
<legend>Variantes</legend>
<input type="checkbox" name="parcGratuit" id="idOptParcGratuit"/> <label for="idOptParcGratuit">Toucher
le parc gratuit</label><br/>
<input type="checkbox" name="caseDepart" id="idOptCaseDepart"/> <label for="idOptCaseDepart">Toucher
double sur la case depart</label><br/>
<input type="checkbox" name="enchereAchat" id="idOptCaseEnchere"/> <label
for="idOptCaseEnchere">Banque
met terrain aux enchères</label><br/>
<input type="checkbox" name="echangeApresVente" id="idOptCaseEchange"/> <label
for="idOptCaseEchange">Echange quand terrains vendus</label><br/>
<!--input type="checkbox" name="tourAchat" id="idOptTourAchat"/> <label for="idOptTourAchat">Un tour avant achat (not yet)</label-->
<hr/>
<input type="checkbox" name="quickMove" id="idQuickMove"/> <label for="idQuickMove">Jeu
rapide</label><br/>
</fieldset>
</fieldset>
<fieldset>
<legend>Charger une sauvegarde</legend>
<select id="idSauvegardes">
<option value="">---</option>
</select>
<button id="idDeleteSauvegarde">Supprimer</button>
<button id="idLoadSauvegarde">Charger</button>
</fieldset>
<fieldset>
<legend style="">Rejoindre une partie réseau</legend>
Code Partie : <input type="text" id="idRemoteGame2" placeholder="ID Partie"/>
<button id="idJoinNetworkGame">Rejoindre</button>
<button id="idRejoinNetworkGame">Reprendre la partie</button>
</fieldset>
</div>
</div>
</div>
<div id="idPanelEchange" style="display:none">
Joueur :
<select id="idSelectJoueurs">
<option value="">---</option>
</select>
<fieldset>
<legend>Liste de ses terrains</legend>
<select id="idListTerrainsAdversaire">
<option value="">---</option>
</select>
</fieldset>
<fieldset>
<legend>Proposition</legend>
<div id="idListTerrainsJoueur"></div>
Argent : <input type="text" id="idArgentProposition"/>
</fieldset>
</div>
<div id="idCommunicationEchange" style="display:none">
<div class="proposition"></div>
<div class="communications"></div>
</div>
<div id="idEncherePanel" style="display:none">
<div><span class="proprietaire"></span> met en Vente <span class="terrain" style="font-weight:bold"></span>
</div>
<div>
FR.
<span style="font-size:34px;font-weight:bold" class="montant"></span>
- <span class="last_encherisseur"></span>
</div>
<hr/>
<div>
<div style="font-size:10px;width:49%;float:left" class="list_encherisseurs"></div>
<div style="font-size:10px;width:49%;float:right;color:darkgrey" class="list_exit"></div>
</div>
<div class="messages"></div>
</div>
<div id="actions"></div>
<div class="mobile"></div>
<div id="idMessagePanel" style="display:none">
<div class="wrapper-back"></div>
<div class="wrapper-panel">
<div class="title-panel"></div>
<div class="buttons"></div>
</div>
</div>
<script type="module" src="js/core/monopoly.js"></script>
</body>
</html>