the-swarm 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/.yardopts +8 -0
  4. data/Gemfile +24 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +35 -0
  7. data/Rakefile +26 -0
  8. data/bin/swarm +11 -0
  9. data/docs/Swarm.html +296 -0
  10. data/docs/Swarm/Catalog.html +819 -0
  11. data/docs/Swarm/Console.html +1050 -0
  12. data/docs/Swarm/Console/Color.html +160 -0
  13. data/docs/Swarm/Console/NormalKey.html +410 -0
  14. data/docs/Swarm/Console/PopUp.html +236 -0
  15. data/docs/Swarm/Console/VIKey.html +410 -0
  16. data/docs/Swarm/Five.html +421 -0
  17. data/docs/Swarm/Four.html +389 -0
  18. data/docs/Swarm/Game.html +1197 -0
  19. data/docs/Swarm/Intro.html +419 -0
  20. data/docs/Swarm/Level.html +700 -0
  21. data/docs/Swarm/Map.html +2336 -0
  22. data/docs/Swarm/One.html +353 -0
  23. data/docs/Swarm/Three.html +383 -0
  24. data/docs/Swarm/Tile.html +3823 -0
  25. data/docs/Swarm/Two.html +355 -0
  26. data/docs/_index.html +313 -0
  27. data/docs/class_list.html +51 -0
  28. data/docs/css/common.css +1 -0
  29. data/docs/css/full_list.css +58 -0
  30. data/docs/css/style.css +492 -0
  31. data/docs/file.LICENSE.html +70 -0
  32. data/docs/file.README.html +101 -0
  33. data/docs/file_list.html +61 -0
  34. data/docs/frames.html +17 -0
  35. data/docs/index.html +101 -0
  36. data/docs/js/app.js +248 -0
  37. data/docs/js/full_list.js +216 -0
  38. data/docs/js/jquery.js +4 -0
  39. data/docs/method_list.html +1195 -0
  40. data/docs/top-level-namespace.html +110 -0
  41. data/lib/swarm.rb +60 -0
  42. data/lib/swarm/catalog.rb +71 -0
  43. data/lib/swarm/console.rb +165 -0
  44. data/lib/swarm/game.rb +173 -0
  45. data/lib/swarm/level.rb +58 -0
  46. data/lib/swarm/levels/five.rb +71 -0
  47. data/lib/swarm/levels/four.rb +55 -0
  48. data/lib/swarm/levels/intro.rb +36 -0
  49. data/lib/swarm/levels/one.rb +35 -0
  50. data/lib/swarm/levels/three.rb +51 -0
  51. data/lib/swarm/levels/two.rb +38 -0
  52. data/lib/swarm/map.rb +254 -0
  53. data/lib/swarm/tile.rb +149 -0
  54. data/lib/swarm/version.rb +5 -0
  55. data/swarm.gemspec +24 -0
  56. metadata +112 -0
@@ -0,0 +1,160 @@
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
+ Module: Swarm::Console::Color
8
+
9
+ &mdash; &quot;Swarm&quot; Source Code Documentation
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 = "Swarm::Console::Color";
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 (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Swarm.html" title="Swarm (module)">Swarm</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Console.html" title="Swarm::Console (module)">Console</a></span></span>
41
+ &raquo;
42
+ <span class="title">Color</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>Module: Swarm::Console::Color
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ <dl>
78
+ <dt>Included in:</dt>
79
+ <dd><span class='object_link'><a href="../Console.html" title="Swarm::Console (module)">Swarm::Console</a></span>, <span class='object_link'><a href="../Tile.html" title="Swarm::Tile (class)">Tile</a></span></dd>
80
+ </dl>
81
+
82
+
83
+
84
+ <dl>
85
+ <dt>Defined in:</dt>
86
+ <dd>lib/swarm/console.rb</dd>
87
+ </dl>
88
+
89
+ </div>
90
+
91
+
92
+ <h2>Constant Summary</h2>
93
+ <dl class="constants">
94
+
95
+ <dt id="BLACK-constant" class="">BLACK =
96
+
97
+ </dt>
98
+ <dd><pre class="code"><span class='int'>234</span></pre></dd>
99
+
100
+ <dt id="SILVER-constant" class="">SILVER =
101
+
102
+ </dt>
103
+ <dd><pre class="code"><span class='int'>240</span></pre></dd>
104
+
105
+ <dt id="WHITE-constant" class="">WHITE =
106
+
107
+ </dt>
108
+ <dd><pre class="code"><span class='int'>248</span></pre></dd>
109
+
110
+ <dt id="GREY-constant" class="">GREY =
111
+
112
+ </dt>
113
+ <dd><pre class="code"><span class='int'>237</span></pre></dd>
114
+
115
+ <dt id="RED-constant" class="">RED =
116
+
117
+ </dt>
118
+ <dd><pre class="code"><span class='int'>167</span></pre></dd>
119
+
120
+ <dt id="PURPLE-constant" class="">PURPLE =
121
+
122
+ </dt>
123
+ <dd><pre class="code"><span class='int'>104</span></pre></dd>
124
+
125
+ <dt id="GREEN-constant" class="">GREEN =
126
+
127
+ </dt>
128
+ <dd><pre class="code"><span class='int'>120</span></pre></dd>
129
+
130
+ <dt id="BLUE-constant" class="">BLUE =
131
+
132
+ </dt>
133
+ <dd><pre class="code"><span class='int'>39</span></pre></dd>
134
+
135
+ <dt id="YELLOW-constant" class="">YELLOW =
136
+
137
+ </dt>
138
+ <dd><pre class="code"><span class='int'>186</span></pre></dd>
139
+
140
+ </dl>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ </div>
151
+
152
+ <div id="footer">
153
+ Generated on Wed Aug 30 07:17:58 2017 by
154
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
155
+ 0.9.9 (ruby-2.4.1).
156
+ </div>
157
+
158
+ </div>
159
+ </body>
160
+ </html>
@@ -0,0 +1,410 @@
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
+ Module: Swarm::Console::NormalKey
8
+
9
+ &mdash; &quot;Swarm&quot; Source Code Documentation
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 = "Swarm::Console::NormalKey";
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> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Swarm.html" title="Swarm (module)">Swarm</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Console.html" title="Swarm::Console (module)">Console</a></span></span>
41
+ &raquo;
42
+ <span class="title">NormalKey</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>Module: Swarm::Console::NormalKey
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/swarm/console.rb</dd>
82
+ </dl>
83
+
84
+ </div>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <h2>
95
+ Instance Method Summary
96
+ <small><a href="#" class="summary_toggle">collapse</a></small>
97
+ </h2>
98
+
99
+ <ul class="summary">
100
+
101
+ <li class="public ">
102
+ <span class="summary_signature">
103
+
104
+ <a href="#down-instance_method" title="#down (instance method)">#<strong>down</strong> &#x21d2; Object </a>
105
+
106
+
107
+
108
+ </span>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <span class="summary_desc"><div class='inline'></div></span>
119
+
120
+ </li>
121
+
122
+
123
+ <li class="public ">
124
+ <span class="summary_signature">
125
+
126
+ <a href="#left-instance_method" title="#left (instance method)">#<strong>left</strong> &#x21d2; Object </a>
127
+
128
+
129
+
130
+ </span>
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <span class="summary_desc"><div class='inline'></div></span>
141
+
142
+ </li>
143
+
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature">
147
+
148
+ <a href="#pause-instance_method" title="#pause (instance method)">#<strong>pause</strong> &#x21d2; Object </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <span class="summary_desc"><div class='inline'></div></span>
163
+
164
+ </li>
165
+
166
+
167
+ <li class="public ">
168
+ <span class="summary_signature">
169
+
170
+ <a href="#quit-instance_method" title="#quit (instance method)">#<strong>quit</strong> &#x21d2; Object </a>
171
+
172
+
173
+
174
+ </span>
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <span class="summary_desc"><div class='inline'></div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#right-instance_method" title="#right (instance method)">#<strong>right</strong> &#x21d2; Object </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+ <span class="summary_desc"><div class='inline'></div></span>
207
+
208
+ </li>
209
+
210
+
211
+ <li class="public ">
212
+ <span class="summary_signature">
213
+
214
+ <a href="#up-instance_method" title="#up (instance method)">#<strong>up</strong> &#x21d2; Object </a>
215
+
216
+
217
+
218
+ </span>
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+ <span class="summary_desc"><div class='inline'></div></span>
229
+
230
+ </li>
231
+
232
+
233
+ </ul>
234
+
235
+
236
+
237
+
238
+ <div id="instance_method_details" class="method_details_list">
239
+ <h2>Instance Method Details</h2>
240
+
241
+
242
+ <div class="method_details first">
243
+ <h3 class="signature first" id="down-instance_method">
244
+
245
+ #<strong>down</strong> &#x21d2; <tt>Object</tt>
246
+
247
+
248
+
249
+
250
+
251
+ </h3><table class="source_code">
252
+ <tr>
253
+ <td>
254
+ <pre class="lines">
255
+
256
+
257
+ 19</pre>
258
+ </td>
259
+ <td>
260
+ <pre class="code"><span class="info file"># File 'lib/swarm/console.rb', line 19</span>
261
+
262
+ <span class='kw'>def</span> <span class='id identifier rubyid_down'>down</span><span class='semicolon'>;</span> <span class='ivar'>@down</span> <span class='op'>||=</span> <span class='const'>Curses</span><span class='op'>::</span><span class='const'>Key</span><span class='op'>::</span><span class='const'>DOWN</span> <span class='kw'>end</span></pre>
263
+ </td>
264
+ </tr>
265
+ </table>
266
+ </div>
267
+
268
+ <div class="method_details ">
269
+ <h3 class="signature " id="left-instance_method">
270
+
271
+ #<strong>left</strong> &#x21d2; <tt>Object</tt>
272
+
273
+
274
+
275
+
276
+
277
+ </h3><table class="source_code">
278
+ <tr>
279
+ <td>
280
+ <pre class="lines">
281
+
282
+
283
+ 20</pre>
284
+ </td>
285
+ <td>
286
+ <pre class="code"><span class="info file"># File 'lib/swarm/console.rb', line 20</span>
287
+
288
+ <span class='kw'>def</span> <span class='id identifier rubyid_left'>left</span><span class='semicolon'>;</span> <span class='ivar'>@left</span> <span class='op'>||=</span> <span class='const'>Curses</span><span class='op'>::</span><span class='const'>Key</span><span class='op'>::</span><span class='const'>LEFT</span> <span class='kw'>end</span></pre>
289
+ </td>
290
+ </tr>
291
+ </table>
292
+ </div>
293
+
294
+ <div class="method_details ">
295
+ <h3 class="signature " id="pause-instance_method">
296
+
297
+ #<strong>pause</strong> &#x21d2; <tt>Object</tt>
298
+
299
+
300
+
301
+
302
+
303
+ </h3><table class="source_code">
304
+ <tr>
305
+ <td>
306
+ <pre class="lines">
307
+
308
+
309
+ 23</pre>
310
+ </td>
311
+ <td>
312
+ <pre class="code"><span class="info file"># File 'lib/swarm/console.rb', line 23</span>
313
+
314
+ <span class='kw'>def</span> <span class='id identifier rubyid_pause'>pause</span><span class='semicolon'>;</span> <span class='ivar'>@pause</span> <span class='op'>||=</span> <span class='CHAR'>?\s</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span> <span class='kw'>end</span></pre>
315
+ </td>
316
+ </tr>
317
+ </table>
318
+ </div>
319
+
320
+ <div class="method_details ">
321
+ <h3 class="signature " id="quit-instance_method">
322
+
323
+ #<strong>quit</strong> &#x21d2; <tt>Object</tt>
324
+
325
+
326
+
327
+
328
+
329
+ </h3><table class="source_code">
330
+ <tr>
331
+ <td>
332
+ <pre class="lines">
333
+
334
+
335
+ 24</pre>
336
+ </td>
337
+ <td>
338
+ <pre class="code"><span class="info file"># File 'lib/swarm/console.rb', line 24</span>
339
+
340
+ <span class='kw'>def</span> <span class='id identifier rubyid_quit'>quit</span><span class='semicolon'>;</span> <span class='ivar'>@quit</span> <span class='op'>||=</span> <span class='CHAR'>?q</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span> <span class='kw'>end</span></pre>
341
+ </td>
342
+ </tr>
343
+ </table>
344
+ </div>
345
+
346
+ <div class="method_details ">
347
+ <h3 class="signature " id="right-instance_method">
348
+
349
+ #<strong>right</strong> &#x21d2; <tt>Object</tt>
350
+
351
+
352
+
353
+
354
+
355
+ </h3><table class="source_code">
356
+ <tr>
357
+ <td>
358
+ <pre class="lines">
359
+
360
+
361
+ 21</pre>
362
+ </td>
363
+ <td>
364
+ <pre class="code"><span class="info file"># File 'lib/swarm/console.rb', line 21</span>
365
+
366
+ <span class='kw'>def</span> <span class='id identifier rubyid_right'>right</span><span class='semicolon'>;</span> <span class='ivar'>@right</span> <span class='op'>||=</span> <span class='const'>Curses</span><span class='op'>::</span><span class='const'>Key</span><span class='op'>::</span><span class='const'>RIGHT</span> <span class='kw'>end</span></pre>
367
+ </td>
368
+ </tr>
369
+ </table>
370
+ </div>
371
+
372
+ <div class="method_details ">
373
+ <h3 class="signature " id="up-instance_method">
374
+
375
+ #<strong>up</strong> &#x21d2; <tt>Object</tt>
376
+
377
+
378
+
379
+
380
+
381
+ </h3><table class="source_code">
382
+ <tr>
383
+ <td>
384
+ <pre class="lines">
385
+
386
+
387
+ 18</pre>
388
+ </td>
389
+ <td>
390
+ <pre class="code"><span class="info file"># File 'lib/swarm/console.rb', line 18</span>
391
+
392
+ <span class='kw'>def</span> <span class='id identifier rubyid_up'>up</span><span class='semicolon'>;</span> <span class='ivar'>@up</span> <span class='op'>||=</span> <span class='const'>Curses</span><span class='op'>::</span><span class='const'>Key</span><span class='op'>::</span><span class='const'>UP</span> <span class='kw'>end</span></pre>
393
+ </td>
394
+ </tr>
395
+ </table>
396
+ </div>
397
+
398
+ </div>
399
+
400
+ </div>
401
+
402
+ <div id="footer">
403
+ Generated on Wed Aug 30 07:17:58 2017 by
404
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
405
+ 0.9.9 (ruby-2.4.1).
406
+ </div>
407
+
408
+ </div>
409
+ </body>
410
+ </html>