Dogeku 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +39 -0
- data/app/Historique/Action.rb +29 -0
- data/app/Historique/ChangerCase.rb +44 -0
- data/app/Historique/HistoriqueAction.rb +114 -0
- data/app/components/CaseDessin.rb +325 -0
- data/app/components/GrilleDessin.rb +235 -0
- data/app/components/Header.rb +194 -0
- data/app/config/app.yml +0 -0
- data/app/config/database.yml +2 -0
- data/app/controller/ApprentissageControleur.rb +75 -0
- data/app/controller/ChargerControleur.rb +41 -0
- data/app/controller/JeuLibreControleur.rb +244 -0
- data/app/controller/MenuControleur.rb +57 -0
- data/app/controller/NiveauControleur.rb +54 -0
- data/app/controller/NouvellePartieControleur.rb +34 -0
- data/app/controller/PrincipaleControleur.rb +30 -0
- data/app/controller/PseudoControleur.rb +95 -0
- data/app/controller/ReglagesControleur.rb +86 -0
- data/app/controller/ReglesControleur.rb +34 -0
- data/app/controller/ScoresControleur.rb +42 -0
- data/app/controller/StatistiquesControleur.rb +64 -0
- data/app/core/Conf.rb +26 -0
- data/app/core/Controller.rb +180 -0
- data/app/core/Core.rb +186 -0
- data/app/core/Model.rb +159 -0
- data/app/core/View.rb +56 -0
- data/app/db/main.sqlite3 +0 -0
- data/app/model/Configuration.rb +180 -0
- data/app/model/Grille.rb +180 -0
- data/app/model/Jeu.rb +74 -0
- data/app/model/Score.rb +100 -0
- data/app/model/Utilisateur.rb +113 -0
- data/app/utils/DSubset.rb +98 -0
- data/app/utils/Generateur.rb +171 -0
- data/app/utils/HPTriple.rb +75 -0
- data/app/utils/Peche.rb +46 -0
- data/app/utils/SCandidate.rb +86 -0
- data/app/utils/SCell.rb +73 -0
- data/app/utils/Technique.rb +202 -0
- data/app/utils/TechniqueUsine.rb +25 -0
- data/app/utils/XWing.rb +203 -0
- data/app/view/Fenetre.rb +424 -0
- data/app/view/FenetreApprentissage.rb +272 -0
- data/app/view/FenetreCharger.rb +31 -0
- data/app/view/FenetreJeuLibre.rb +468 -0
- data/app/view/FenetreMenu.rb +198 -0
- data/app/view/FenetreNiveau.rb +105 -0
- data/app/view/FenetreNouvellePartie.rb +92 -0
- data/app/view/FenetrePrincipale.rb +45 -0
- data/app/view/FenetrePseudo.rb +115 -0
- data/app/view/FenetreReglages.rb +209 -0
- data/app/view/FenetreRegles.rb +111 -0
- data/app/view/FenetreScores.rb +120 -0
- data/app/view/FenetreStatistiques.rb +134 -0
- data/assets/css/style.css +69 -0
- data/assets/img/eraser.png +0 -0
- data/assets/img/fond.jpg +0 -0
- data/assets/img/iconApp.png +0 -0
- data/assets/img/logoS.jpeg +0 -0
- data/assets/img/sudokuIntro.jpg +0 -0
- data/assets/img/user.png +0 -0
- data/bin/dogeku +19 -0
- data/doc/Action.html +309 -0
- data/doc/ApprentissageControleur.html +568 -0
- data/doc/CaseDessin.html +2405 -0
- data/doc/ChangerCase.html +405 -0
- data/doc/ChargerControleur.html +342 -0
- data/doc/Conf.html +378 -0
- data/doc/Configuration.html +1115 -0
- data/doc/Controller.html +1008 -0
- data/doc/Core.html +1191 -0
- data/doc/DSubset.html +647 -0
- data/doc/Fenetre.html +2631 -0
- data/doc/FenetreApprentissage.html +1175 -0
- data/doc/FenetreCharger.html +343 -0
- data/doc/FenetreJeuLibre.html +1859 -0
- data/doc/FenetreMenu.html +900 -0
- data/doc/FenetreNiveau.html +626 -0
- data/doc/FenetreNouvellePartie.html +602 -0
- data/doc/FenetrePrincipale.html +371 -0
- data/doc/FenetrePseudo.html +695 -0
- data/doc/FenetreReglages.html +946 -0
- data/doc/FenetreRegles.html +636 -0
- data/doc/FenetreScores.html +650 -0
- data/doc/FenetreStatistiques.html +672 -0
- data/doc/Generateur.html +1015 -0
- data/doc/Grille.html +1348 -0
- data/doc/GrilleDessin.html +1281 -0
- data/doc/HPTriple.html +593 -0
- data/doc/Header.html +1253 -0
- data/doc/HistoriqueAction.html +792 -0
- data/doc/Jeu.html +923 -0
- data/doc/JeuLibreControleur.html +1445 -0
- data/doc/MenuControleur.html +522 -0
- data/doc/Model.html +996 -0
- data/doc/NiveauControleur.html +451 -0
- data/doc/NouvellePartieControleur.html +330 -0
- data/doc/Peche.html +396 -0
- data/doc/PrincipaleControleur.html +320 -0
- data/doc/PseudoControleur.html +695 -0
- data/doc/ReglagesControleur.html +747 -0
- data/doc/ReglesControleur.html +330 -0
- data/doc/SCandidate.html +617 -0
- data/doc/SCell.html +587 -0
- data/doc/Score.html +926 -0
- data/doc/ScoresControleur.html +346 -0
- data/doc/StatistiquesControleur.html +390 -0
- data/doc/Technique.html +543 -0
- data/doc/TechniqueUsine.html +252 -0
- data/doc/Utilisateur.html +806 -0
- data/doc/View.html +844 -0
- data/doc/XWing.html +1031 -0
- data/doc/_index.html +478 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +492 -0
- data/doc/file.README.html +141 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +141 -0
- data/doc/js/app.js +243 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2523 -0
- data/doc/top-level-namespace.html +112 -0
- data/test/Generateur/grilleCorrecte.rb +198 -0
- data/test/Model/scoreCorrecte.rb +55 -0
- data/test/Model/utilisateurCorrecte.rb +68 -0
- data/test/test_helper.rb +2 -0
- data/test/unitTest.rb +72 -0
- metadata +187 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Class: NiveauControleur
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.8
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
pathId = "NiveauControleur";
|
|
19
|
+
relpath = '';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="nav_wrap">
|
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
|
32
|
+
<div id="resizer"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="main" tabindex="-1">
|
|
36
|
+
<div id="header">
|
|
37
|
+
<div id="menu">
|
|
38
|
+
|
|
39
|
+
<a href="_index.html">Index (N)</a> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">NiveauControleur</span>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div id="search">
|
|
47
|
+
|
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
|
49
|
+
href="class_list.html">
|
|
50
|
+
|
|
51
|
+
<svg width="24" height="24">
|
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
</a>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div id="content"><h1>Class: NiveauControleur
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="Controller.html" title="Controller (class)">Controller</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="Controller.html" title="Controller (class)">Controller</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">NiveauControleur</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>app/controller/NiveauControleur.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Classe permettant de créer un contrôleur pour la vue FenetreNiveau</p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<h2>
|
|
124
|
+
Instance Method Summary
|
|
125
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
126
|
+
</h2>
|
|
127
|
+
|
|
128
|
+
<ul class="summary">
|
|
129
|
+
|
|
130
|
+
<li class="public ">
|
|
131
|
+
<span class="summary_signature">
|
|
132
|
+
|
|
133
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ NiveauControleur </a>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</span>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<span class="note title constructor">constructor</span>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
|
150
|
+
<p>Initialize.</p>
|
|
151
|
+
</div></span>
|
|
152
|
+
|
|
153
|
+
</li>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<li class="public ">
|
|
157
|
+
<span class="summary_signature">
|
|
158
|
+
|
|
159
|
+
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> ⇒ Object </a>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
</span>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
|
174
|
+
<p>Méthode à définir dans tous les cas !.</p>
|
|
175
|
+
</div></span>
|
|
176
|
+
|
|
177
|
+
</li>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<li class="public ">
|
|
181
|
+
<span class="summary_signature">
|
|
182
|
+
|
|
183
|
+
<a href="#supprimerPartieExistante-instance_method" title="#supprimerPartieExistante (instance method)">#<strong>supprimerPartieExistante</strong>(pseudo) ⇒ Object </a>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</span>
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
|
198
|
+
<p>Supprime toute partie existante pour le joueur.</p>
|
|
199
|
+
</div></span>
|
|
200
|
+
|
|
201
|
+
</li>
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
</ul>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Controller.html" title="Controller (class)">Controller</a></span></h3>
|
|
217
|
+
<p class="inherited"><span class='object_link'><a href="Controller.html#inherited-class_method" title="Controller.inherited (method)">inherited</a></span>, <span class='object_link'><a href="Controller.html#loadFile-instance_method" title="Controller#loadFile (method)">#loadFile</a></span>, <span class='object_link'><a href="Controller.html#loadModel-instance_method" title="Controller#loadModel (method)">#loadModel</a></span>, <span class='object_link'><a href="Controller.html#render-instance_method" title="Controller#render (method)">#render</a></span>, <span class='object_link'><a href="Controller.html#set_properties-instance_method" title="Controller#set_properties (method)">#set_properties</a></span></p>
|
|
218
|
+
<div id="constructor_details" class="method_details_list">
|
|
219
|
+
<h2>Constructor Details</h2>
|
|
220
|
+
|
|
221
|
+
<div class="method_details first">
|
|
222
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
223
|
+
|
|
224
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="NiveauControleur (class)">NiveauControleur</a></span></tt>
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
</h3><div class="docstring">
|
|
231
|
+
<div class="discussion">
|
|
232
|
+
|
|
233
|
+
<p>Initialize</p>
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="tags">
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
</div><table class="source_code">
|
|
242
|
+
<tr>
|
|
243
|
+
<td>
|
|
244
|
+
<pre class="lines">
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
15
|
|
248
|
+
16
|
|
249
|
+
17
|
|
250
|
+
18
|
|
251
|
+
19
|
|
252
|
+
20
|
|
253
|
+
21
|
|
254
|
+
22
|
|
255
|
+
23
|
|
256
|
+
24
|
|
257
|
+
25
|
|
258
|
+
26
|
|
259
|
+
27</pre>
|
|
260
|
+
</td>
|
|
261
|
+
<td>
|
|
262
|
+
<pre class="code"><span class="info file"># File 'app/controller/NiveauControleur.rb', line 15</span>
|
|
263
|
+
|
|
264
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
265
|
+
<span class='comment'>#charge le modèle utilisateur
|
|
266
|
+
</span> <span class='id identifier rubyid_loadModel'>loadModel</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Utilisateur</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
267
|
+
<span class='id identifier rubyid_loadModel'>loadModel</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Jeu</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
268
|
+
<span class='id identifier rubyid_loadModel'>loadModel</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Grille</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
269
|
+
|
|
270
|
+
<span class='comment'>#paramètres fenêtre
|
|
271
|
+
</span> <span class='ivar'>@title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Sudoku - Choix difficulté</span><span class='tstring_end'>"</span></span>
|
|
272
|
+
<span class='ivar'>@width</span> <span class='op'>=</span> <span class='int'>600</span>
|
|
273
|
+
<span class='ivar'>@height</span> <span class='op'>=</span> <span class='int'>550</span>
|
|
274
|
+
<span class='ivar'>@resizable</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
275
|
+
<span class='ivar'>@position</span><span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CENTER_ALWAYS</span><span class='tstring_end'>"</span></span>
|
|
276
|
+
<span class='kw'>end</span></pre>
|
|
277
|
+
</td>
|
|
278
|
+
</tr>
|
|
279
|
+
</table>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
</div>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
<div id="instance_method_details" class="method_details_list">
|
|
286
|
+
<h2>Instance Method Details</h2>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<div class="method_details first">
|
|
290
|
+
<h3 class="signature first" id="run-instance_method">
|
|
291
|
+
|
|
292
|
+
#<strong>run</strong> ⇒ <tt>Object</tt>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
</h3><div class="docstring">
|
|
299
|
+
<div class="discussion">
|
|
300
|
+
|
|
301
|
+
<p>Méthode à définir dans tous les cas !</p>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
<div class="tags">
|
|
307
|
+
|
|
308
|
+
<p class="tag_title">Returns:</p>
|
|
309
|
+
<ul class="return">
|
|
310
|
+
|
|
311
|
+
<li>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
<span class='type'></span>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
<div class='inline'>
|
|
320
|
+
<p>self</p>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
</li>
|
|
324
|
+
|
|
325
|
+
</ul>
|
|
326
|
+
|
|
327
|
+
</div><table class="source_code">
|
|
328
|
+
<tr>
|
|
329
|
+
<td>
|
|
330
|
+
<pre class="lines">
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
51
|
|
334
|
+
52
|
|
335
|
+
53</pre>
|
|
336
|
+
</td>
|
|
337
|
+
<td>
|
|
338
|
+
<pre class="code"><span class="info file"># File 'app/controller/NiveauControleur.rb', line 51</span>
|
|
339
|
+
|
|
340
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
341
|
+
<span class='kw'>return</span> <span class='kw'>self</span>
|
|
342
|
+
<span class='kw'>end</span></pre>
|
|
343
|
+
</td>
|
|
344
|
+
</tr>
|
|
345
|
+
</table>
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
<div class="method_details ">
|
|
349
|
+
<h3 class="signature " id="supprimerPartieExistante-instance_method">
|
|
350
|
+
|
|
351
|
+
#<strong>supprimerPartieExistante</strong>(pseudo) ⇒ <tt>Object</tt>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
</h3><div class="docstring">
|
|
358
|
+
<div class="discussion">
|
|
359
|
+
|
|
360
|
+
<p>Supprime toute partie existante pour le joueur</p>
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
<div class="tags">
|
|
366
|
+
<p class="tag_title">Parameters:</p>
|
|
367
|
+
<ul class="param">
|
|
368
|
+
|
|
369
|
+
<li>
|
|
370
|
+
|
|
371
|
+
<span class='name'>pseudo</span>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
<span class='type'></span>
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
—
|
|
379
|
+
<div class='inline'>
|
|
380
|
+
<p>Pseudo utilisateur</p>
|
|
381
|
+
</div>
|
|
382
|
+
|
|
383
|
+
</li>
|
|
384
|
+
|
|
385
|
+
</ul>
|
|
386
|
+
|
|
387
|
+
<p class="tag_title">Returns:</p>
|
|
388
|
+
<ul class="return">
|
|
389
|
+
|
|
390
|
+
<li>
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
<span class='type'></span>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
<div class='inline'>
|
|
399
|
+
<p>self</p>
|
|
400
|
+
</div>
|
|
401
|
+
|
|
402
|
+
</li>
|
|
403
|
+
|
|
404
|
+
</ul>
|
|
405
|
+
|
|
406
|
+
</div><table class="source_code">
|
|
407
|
+
<tr>
|
|
408
|
+
<td>
|
|
409
|
+
<pre class="lines">
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
36
|
|
413
|
+
37
|
|
414
|
+
38
|
|
415
|
+
39
|
|
416
|
+
40
|
|
417
|
+
41
|
|
418
|
+
42
|
|
419
|
+
43
|
|
420
|
+
44</pre>
|
|
421
|
+
</td>
|
|
422
|
+
<td>
|
|
423
|
+
<pre class="code"><span class="info file"># File 'app/controller/NiveauControleur.rb', line 36</span>
|
|
424
|
+
|
|
425
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_supprimerPartieExistante'>supprimerPartieExistante</span><span class='lparen'>(</span><span class='id identifier rubyid_pseudo'>pseudo</span><span class='rparen'>)</span>
|
|
426
|
+
|
|
427
|
+
<span class='kw'>if</span><span class='lparen'>(</span><span class='ivar'>@Utilisateur</span><span class='period'>.</span><span class='id identifier rubyid_partieUtilisateur?'>partieUtilisateur?</span><span class='lparen'>(</span><span class='id identifier rubyid_pseudo'>pseudo</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
428
|
+
<span class='ivar'>@Jeu</span><span class='period'>.</span><span class='id identifier rubyid_supprimerPartie'>supprimerPartie</span><span class='lparen'>(</span><span class='id identifier rubyid_pseudo'>pseudo</span><span class='rparen'>)</span>
|
|
429
|
+
<span class='kw'>end</span>
|
|
430
|
+
<span class='ivar'>@Grille</span><span class='period'>.</span><span class='id identifier rubyid_grille'>grille</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
431
|
+
|
|
432
|
+
<span class='kw'>return</span> <span class='kw'>self</span>
|
|
433
|
+
<span class='kw'>end</span></pre>
|
|
434
|
+
</td>
|
|
435
|
+
</tr>
|
|
436
|
+
</table>
|
|
437
|
+
</div>
|
|
438
|
+
|
|
439
|
+
</div>
|
|
440
|
+
|
|
441
|
+
</div>
|
|
442
|
+
|
|
443
|
+
<div id="footer">
|
|
444
|
+
Generated on Sat Apr 22 22:47:32 2017 by
|
|
445
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
446
|
+
0.9.8 (ruby-2.3.3).
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
</div>
|
|
450
|
+
</body>
|
|
451
|
+
</html>
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Class: NouvellePartieControleur
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.8
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
pathId = "NouvellePartieControleur";
|
|
19
|
+
relpath = '';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="nav_wrap">
|
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
|
32
|
+
<div id="resizer"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="main" tabindex="-1">
|
|
36
|
+
<div id="header">
|
|
37
|
+
<div id="menu">
|
|
38
|
+
|
|
39
|
+
<a href="_index.html">Index (N)</a> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">NouvellePartieControleur</span>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div id="search">
|
|
47
|
+
|
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
|
49
|
+
href="class_list.html">
|
|
50
|
+
|
|
51
|
+
<svg width="24" height="24">
|
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
</a>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div id="content"><h1>Class: NouvellePartieControleur
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="Controller.html" title="Controller (class)">Controller</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="Controller.html" title="Controller (class)">Controller</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">NouvellePartieControleur</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>app/controller/NouvellePartieControleur.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Classe permettant de créer un contrôleur pour la vue FenetreNouvellePartie</p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<h2>
|
|
124
|
+
Instance Method Summary
|
|
125
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
126
|
+
</h2>
|
|
127
|
+
|
|
128
|
+
<ul class="summary">
|
|
129
|
+
|
|
130
|
+
<li class="public ">
|
|
131
|
+
<span class="summary_signature">
|
|
132
|
+
|
|
133
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ NouvellePartieControleur </a>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</span>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<span class="note title constructor">constructor</span>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
|
150
|
+
<p>Initialize.</p>
|
|
151
|
+
</div></span>
|
|
152
|
+
|
|
153
|
+
</li>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<li class="public ">
|
|
157
|
+
<span class="summary_signature">
|
|
158
|
+
|
|
159
|
+
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> ⇒ Object </a>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
</span>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
|
174
|
+
<p>Méthode à définir dans tous les cas !.</p>
|
|
175
|
+
</div></span>
|
|
176
|
+
|
|
177
|
+
</li>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
</ul>
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Controller.html" title="Controller (class)">Controller</a></span></h3>
|
|
193
|
+
<p class="inherited"><span class='object_link'><a href="Controller.html#inherited-class_method" title="Controller.inherited (method)">inherited</a></span>, <span class='object_link'><a href="Controller.html#loadFile-instance_method" title="Controller#loadFile (method)">#loadFile</a></span>, <span class='object_link'><a href="Controller.html#loadModel-instance_method" title="Controller#loadModel (method)">#loadModel</a></span>, <span class='object_link'><a href="Controller.html#render-instance_method" title="Controller#render (method)">#render</a></span>, <span class='object_link'><a href="Controller.html#set_properties-instance_method" title="Controller#set_properties (method)">#set_properties</a></span></p>
|
|
194
|
+
<div id="constructor_details" class="method_details_list">
|
|
195
|
+
<h2>Constructor Details</h2>
|
|
196
|
+
|
|
197
|
+
<div class="method_details first">
|
|
198
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
199
|
+
|
|
200
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="NouvellePartieControleur (class)">NouvellePartieControleur</a></span></tt>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
</h3><div class="docstring">
|
|
207
|
+
<div class="discussion">
|
|
208
|
+
|
|
209
|
+
<p>Initialize</p>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
<div class="tags">
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
</div><table class="source_code">
|
|
218
|
+
<tr>
|
|
219
|
+
<td>
|
|
220
|
+
<pre class="lines">
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
15
|
|
224
|
+
16
|
|
225
|
+
17
|
|
226
|
+
18
|
|
227
|
+
19
|
|
228
|
+
20
|
|
229
|
+
21
|
|
230
|
+
22
|
|
231
|
+
23
|
|
232
|
+
24</pre>
|
|
233
|
+
</td>
|
|
234
|
+
<td>
|
|
235
|
+
<pre class="code"><span class="info file"># File 'app/controller/NouvellePartieControleur.rb', line 15</span>
|
|
236
|
+
|
|
237
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
238
|
+
<span class='comment'>#charge le modèle utilisateur
|
|
239
|
+
</span> <span class='id identifier rubyid_loadModel'>loadModel</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Utilisateur</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
240
|
+
<span class='comment'>#paramètres fenêtre
|
|
241
|
+
</span> <span class='ivar'>@title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Sudoku - Nouvelle Partie</span><span class='tstring_end'>"</span></span>
|
|
242
|
+
<span class='ivar'>@width</span> <span class='op'>=</span> <span class='int'>600</span>
|
|
243
|
+
<span class='ivar'>@height</span> <span class='op'>=</span> <span class='int'>550</span>
|
|
244
|
+
<span class='ivar'>@resizable</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
245
|
+
<span class='ivar'>@position</span><span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CENTER_ALWAYS</span><span class='tstring_end'>"</span></span>
|
|
246
|
+
<span class='kw'>end</span></pre>
|
|
247
|
+
</td>
|
|
248
|
+
</tr>
|
|
249
|
+
</table>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<div id="instance_method_details" class="method_details_list">
|
|
256
|
+
<h2>Instance Method Details</h2>
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
<div class="method_details first">
|
|
260
|
+
<h3 class="signature first" id="run-instance_method">
|
|
261
|
+
|
|
262
|
+
#<strong>run</strong> ⇒ <tt>Object</tt>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
</h3><div class="docstring">
|
|
269
|
+
<div class="discussion">
|
|
270
|
+
|
|
271
|
+
<p>Méthode à définir dans tous les cas !</p>
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="tags">
|
|
277
|
+
|
|
278
|
+
<p class="tag_title">Returns:</p>
|
|
279
|
+
<ul class="return">
|
|
280
|
+
|
|
281
|
+
<li>
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
<span class='type'></span>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<div class='inline'>
|
|
290
|
+
<p>self</p>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
</li>
|
|
294
|
+
|
|
295
|
+
</ul>
|
|
296
|
+
|
|
297
|
+
</div><table class="source_code">
|
|
298
|
+
<tr>
|
|
299
|
+
<td>
|
|
300
|
+
<pre class="lines">
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
31
|
|
304
|
+
32
|
|
305
|
+
33</pre>
|
|
306
|
+
</td>
|
|
307
|
+
<td>
|
|
308
|
+
<pre class="code"><span class="info file"># File 'app/controller/NouvellePartieControleur.rb', line 31</span>
|
|
309
|
+
|
|
310
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
311
|
+
<span class='kw'>return</span> <span class='kw'>self</span>
|
|
312
|
+
<span class='kw'>end</span></pre>
|
|
313
|
+
</td>
|
|
314
|
+
</tr>
|
|
315
|
+
</table>
|
|
316
|
+
</div>
|
|
317
|
+
|
|
318
|
+
</div>
|
|
319
|
+
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<div id="footer">
|
|
323
|
+
Generated on Sat Apr 22 22:47:32 2017 by
|
|
324
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
325
|
+
0.9.8 (ruby-2.3.3).
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
</div>
|
|
329
|
+
</body>
|
|
330
|
+
</html>
|