fantasy 0.1.13 → 0.1.17
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 +4 -4
- data/.rubocop.yml +22 -1
- data/.yardopts +4 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +55 -0
- data/README.md +14 -6
- data/docs/Actor.html +2737 -0
- data/docs/Background.html +961 -0
- data/docs/Camera.html +791 -0
- data/docs/Clock.html +753 -0
- data/docs/Color.html +776 -0
- data/docs/Coordinates.html +730 -0
- data/docs/Cursor.html +752 -0
- data/docs/Disk.html +236 -0
- data/docs/Draggable.html +198 -0
- data/docs/Fantasy.html +121 -0
- data/docs/Game.html +904 -0
- data/docs/Global.html +2791 -0
- data/docs/Gravitier.html +179 -0
- data/docs/HudImage.html +979 -0
- data/docs/HudText.html +1151 -0
- data/docs/Image.html +506 -0
- data/docs/Jumper.html +189 -0
- data/docs/Mouse.html +226 -0
- data/docs/MoveByCursor.html +374 -0
- data/docs/MoveByDirection.html +179 -0
- data/docs/Mover.html +305 -0
- data/docs/Music.html +524 -0
- data/docs/Shape.html +1057 -0
- data/docs/Sound.html +374 -0
- data/docs/Tilemap.html +491 -0
- data/docs/Tween.html +186 -0
- data/docs/UserInputs.html +879 -0
- data/docs/Utils.html +345 -0
- data/docs/_index.html +346 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +497 -0
- data/docs/file.CHANGELOG.html +121 -0
- data/docs/file.README.html +599 -0
- data/docs/file_list.html +61 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +599 -0
- data/docs/js/app.js +314 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +1931 -0
- data/docs/top-level-namespace.html +978 -0
- data/lib/fantasy/actor.rb +455 -123
- data/lib/fantasy/background.rb +109 -13
- data/lib/fantasy/base.rb +113 -1
- data/lib/fantasy/camera.rb +95 -11
- data/lib/fantasy/clock.rb +4 -2
- data/lib/fantasy/color.rb +158 -153
- data/lib/fantasy/coordinates.rb +5 -9
- data/lib/fantasy/cursor.rb +2 -1
- data/lib/fantasy/disk.rb +12 -8
- data/lib/fantasy/draggable.rb +22 -1
- data/lib/fantasy/global.rb +59 -31
- data/lib/fantasy/hud_image.rb +5 -3
- data/lib/fantasy/hud_text.rb +6 -2
- data/lib/fantasy/image.rb +12 -4
- data/lib/fantasy/includes/gravitier.rb +2 -0
- data/lib/fantasy/includes/jumper.rb +3 -2
- data/lib/fantasy/includes/log.rb +12 -0
- data/lib/fantasy/includes/move_by_cursors.rb +24 -15
- data/lib/fantasy/includes/move_by_direction.rb +2 -0
- data/lib/fantasy/includes/mover.rb +3 -0
- data/lib/fantasy/includes/user_inputs.rb +6 -0
- data/lib/fantasy/loop.rb +41 -44
- data/lib/fantasy/mouse.rb +2 -0
- data/lib/fantasy/music.rb +4 -2
- data/lib/fantasy/shape.rb +11 -2
- data/lib/fantasy/sound.rb +3 -1
- data/lib/fantasy/tilemap.rb +19 -13
- data/lib/fantasy/tween.rb +3 -1
- data/lib/fantasy/utils.rb +7 -13
- data/lib/fantasy/version.rb +1 -1
- data/lib/fantasy.rb +2 -0
- metadata +90 -4
- data/fantasy.gemspec +0 -40
- data/fonts/VT323-Regular.ttf +0 -0
data/docs/Global.html
ADDED
@@ -0,0 +1,2791 @@
|
|
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: Global
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.27
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Global";
|
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 (G)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Global</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: Global
|
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/fantasy/global.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<h2>Class Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
91
|
+
<ul class="summary">
|
92
|
+
|
93
|
+
<li class="public ">
|
94
|
+
<span class="summary_signature">
|
95
|
+
|
96
|
+
<a href="#actors-class_method" title="actors (class method)">.<strong>actors</strong> ⇒ Object </a>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
</span>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute actors.</p>
|
114
|
+
</div></span>
|
115
|
+
|
116
|
+
</li>
|
117
|
+
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#background-class_method" title="background (class method)">.<strong>background</strong> ⇒ Object </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute background.</p>
|
140
|
+
</div></span>
|
141
|
+
|
142
|
+
</li>
|
143
|
+
|
144
|
+
|
145
|
+
<li class="public ">
|
146
|
+
<span class="summary_signature">
|
147
|
+
|
148
|
+
<a href="#backgrounds-class_method" title="backgrounds (class method)">.<strong>backgrounds</strong> ⇒ Object </a>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
</span>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute backgrounds.</p>
|
166
|
+
</div></span>
|
167
|
+
|
168
|
+
</li>
|
169
|
+
|
170
|
+
|
171
|
+
<li class="public ">
|
172
|
+
<span class="summary_signature">
|
173
|
+
|
174
|
+
<a href="#button_proc-class_method" title="button_proc (class method)">.<strong>button_proc</strong> ⇒ Object </a>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</span>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute button_proc.</p>
|
192
|
+
</div></span>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
|
196
|
+
|
197
|
+
<li class="public ">
|
198
|
+
<span class="summary_signature">
|
199
|
+
|
200
|
+
<a href="#clocks-class_method" title="clocks (class method)">.<strong>clocks</strong> ⇒ Object </a>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute clocks.</p>
|
218
|
+
</div></span>
|
219
|
+
|
220
|
+
</li>
|
221
|
+
|
222
|
+
|
223
|
+
<li class="public ">
|
224
|
+
<span class="summary_signature">
|
225
|
+
|
226
|
+
<a href="#cursor_down_proc-class_method" title="cursor_down_proc (class method)">.<strong>cursor_down_proc</strong> ⇒ Object </a>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
</span>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute cursor_down_proc.</p>
|
244
|
+
</div></span>
|
245
|
+
|
246
|
+
</li>
|
247
|
+
|
248
|
+
|
249
|
+
<li class="public ">
|
250
|
+
<span class="summary_signature">
|
251
|
+
|
252
|
+
<a href="#cursor_left_proc-class_method" title="cursor_left_proc (class method)">.<strong>cursor_left_proc</strong> ⇒ Object </a>
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
</span>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute cursor_left_proc.</p>
|
270
|
+
</div></span>
|
271
|
+
|
272
|
+
</li>
|
273
|
+
|
274
|
+
|
275
|
+
<li class="public ">
|
276
|
+
<span class="summary_signature">
|
277
|
+
|
278
|
+
<a href="#cursor_right_proc-class_method" title="cursor_right_proc (class method)">.<strong>cursor_right_proc</strong> ⇒ Object </a>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute cursor_right_proc.</p>
|
296
|
+
</div></span>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
|
301
|
+
<li class="public ">
|
302
|
+
<span class="summary_signature">
|
303
|
+
|
304
|
+
<a href="#cursor_up_proc-class_method" title="cursor_up_proc (class method)">.<strong>cursor_up_proc</strong> ⇒ Object </a>
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</span>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute cursor_up_proc.</p>
|
322
|
+
</div></span>
|
323
|
+
|
324
|
+
</li>
|
325
|
+
|
326
|
+
|
327
|
+
<li class="public ">
|
328
|
+
<span class="summary_signature">
|
329
|
+
|
330
|
+
<a href="#debug-class_method" title="debug (class method)">.<strong>debug</strong> ⇒ Object </a>
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
</span>
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute debug.</p>
|
348
|
+
</div></span>
|
349
|
+
|
350
|
+
</li>
|
351
|
+
|
352
|
+
|
353
|
+
<li class="public ">
|
354
|
+
<span class="summary_signature">
|
355
|
+
|
356
|
+
<a href="#end_proc-class_method" title="end_proc (class method)">.<strong>end_proc</strong> ⇒ Object </a>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
</span>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute end_proc.</p>
|
374
|
+
</div></span>
|
375
|
+
|
376
|
+
</li>
|
377
|
+
|
378
|
+
|
379
|
+
<li class="public ">
|
380
|
+
<span class="summary_signature">
|
381
|
+
|
382
|
+
<a href="#frame_time-class_method" title="frame_time (class method)">.<strong>frame_time</strong> ⇒ Object </a>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
</span>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
<span class="note title readonly">readonly</span>
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
<span class="summary_desc"><div class='inline'><p>delta_time.</p>
|
402
|
+
</div></span>
|
403
|
+
|
404
|
+
</li>
|
405
|
+
|
406
|
+
|
407
|
+
<li class="public ">
|
408
|
+
<span class="summary_signature">
|
409
|
+
|
410
|
+
<a href="#game-class_method" title="game (class method)">.<strong>game</strong> ⇒ Object </a>
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
</span>
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute game.</p>
|
428
|
+
</div></span>
|
429
|
+
|
430
|
+
</li>
|
431
|
+
|
432
|
+
|
433
|
+
<li class="public ">
|
434
|
+
<span class="summary_signature">
|
435
|
+
|
436
|
+
<a href="#game_proc-class_method" title="game_proc (class method)">.<strong>game_proc</strong> ⇒ Object </a>
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
</span>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute game_proc.</p>
|
454
|
+
</div></span>
|
455
|
+
|
456
|
+
</li>
|
457
|
+
|
458
|
+
|
459
|
+
<li class="public ">
|
460
|
+
<span class="summary_signature">
|
461
|
+
|
462
|
+
<a href="#game_state-class_method" title="game_state (class method)">.<strong>game_state</strong> ⇒ Object </a>
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
</span>
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
<span class="note title readonly">readonly</span>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute game_state.</p>
|
482
|
+
</div></span>
|
483
|
+
|
484
|
+
</li>
|
485
|
+
|
486
|
+
|
487
|
+
<li class="public ">
|
488
|
+
<span class="summary_signature">
|
489
|
+
|
490
|
+
<a href="#hud_images-class_method" title="hud_images (class method)">.<strong>hud_images</strong> ⇒ Object </a>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
</span>
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute hud_images.</p>
|
508
|
+
</div></span>
|
509
|
+
|
510
|
+
</li>
|
511
|
+
|
512
|
+
|
513
|
+
<li class="public ">
|
514
|
+
<span class="summary_signature">
|
515
|
+
|
516
|
+
<a href="#hud_texts-class_method" title="hud_texts (class method)">.<strong>hud_texts</strong> ⇒ Object </a>
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
</span>
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute hud_texts.</p>
|
534
|
+
</div></span>
|
535
|
+
|
536
|
+
</li>
|
537
|
+
|
538
|
+
|
539
|
+
<li class="public ">
|
540
|
+
<span class="summary_signature">
|
541
|
+
|
542
|
+
<a href="#loop_proc-class_method" title="loop_proc (class method)">.<strong>loop_proc</strong> ⇒ Object </a>
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
</span>
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute loop_proc.</p>
|
560
|
+
</div></span>
|
561
|
+
|
562
|
+
</li>
|
563
|
+
|
564
|
+
|
565
|
+
<li class="public ">
|
566
|
+
<span class="summary_signature">
|
567
|
+
|
568
|
+
<a href="#mouse_button_left_proc-class_method" title="mouse_button_left_proc (class method)">.<strong>mouse_button_left_proc</strong> ⇒ Object </a>
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
</span>
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute mouse_button_left_proc.</p>
|
586
|
+
</div></span>
|
587
|
+
|
588
|
+
</li>
|
589
|
+
|
590
|
+
|
591
|
+
<li class="public ">
|
592
|
+
<span class="summary_signature">
|
593
|
+
|
594
|
+
<a href="#mouse_button_right_proc-class_method" title="mouse_button_right_proc (class method)">.<strong>mouse_button_right_proc</strong> ⇒ Object </a>
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
</span>
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute mouse_button_right_proc.</p>
|
612
|
+
</div></span>
|
613
|
+
|
614
|
+
</li>
|
615
|
+
|
616
|
+
|
617
|
+
<li class="public ">
|
618
|
+
<span class="summary_signature">
|
619
|
+
|
620
|
+
<a href="#pixel_fonts-class_method" title="pixel_fonts (class method)">.<strong>pixel_fonts</strong> ⇒ Object </a>
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
</span>
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
<span class="note title readonly">readonly</span>
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute pixel_fonts.</p>
|
640
|
+
</div></span>
|
641
|
+
|
642
|
+
</li>
|
643
|
+
|
644
|
+
|
645
|
+
<li class="public ">
|
646
|
+
<span class="summary_signature">
|
647
|
+
|
648
|
+
<a href="#presentation_proc-class_method" title="presentation_proc (class method)">.<strong>presentation_proc</strong> ⇒ Object </a>
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
</span>
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute presentation_proc.</p>
|
666
|
+
</div></span>
|
667
|
+
|
668
|
+
</li>
|
669
|
+
|
670
|
+
|
671
|
+
<li class="public ">
|
672
|
+
<span class="summary_signature">
|
673
|
+
|
674
|
+
<a href="#references-class_method" title="references (class method)">.<strong>references</strong> ⇒ Object </a>
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
</span>
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
<span class="note title readonly">readonly</span>
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute references.</p>
|
694
|
+
</div></span>
|
695
|
+
|
696
|
+
</li>
|
697
|
+
|
698
|
+
|
699
|
+
<li class="public ">
|
700
|
+
<span class="summary_signature">
|
701
|
+
|
702
|
+
<a href="#setup_proc-class_method" title="setup_proc (class method)">.<strong>setup_proc</strong> ⇒ Object </a>
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
</span>
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute setup_proc.</p>
|
720
|
+
</div></span>
|
721
|
+
|
722
|
+
</li>
|
723
|
+
|
724
|
+
|
725
|
+
<li class="public ">
|
726
|
+
<span class="summary_signature">
|
727
|
+
|
728
|
+
<a href="#shapes-class_method" title="shapes (class method)">.<strong>shapes</strong> ⇒ Object </a>
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
</span>
|
733
|
+
|
734
|
+
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute shapes.</p>
|
746
|
+
</div></span>
|
747
|
+
|
748
|
+
</li>
|
749
|
+
|
750
|
+
|
751
|
+
<li class="public ">
|
752
|
+
<span class="summary_signature">
|
753
|
+
|
754
|
+
<a href="#space_bar_proc-class_method" title="space_bar_proc (class method)">.<strong>space_bar_proc</strong> ⇒ Object </a>
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
</span>
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute space_bar_proc.</p>
|
772
|
+
</div></span>
|
773
|
+
|
774
|
+
</li>
|
775
|
+
|
776
|
+
|
777
|
+
<li class="public ">
|
778
|
+
<span class="summary_signature">
|
779
|
+
|
780
|
+
<a href="#tile_maps-class_method" title="tile_maps (class method)">.<strong>tile_maps</strong> ⇒ Object </a>
|
781
|
+
|
782
|
+
|
783
|
+
|
784
|
+
</span>
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
|
797
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute tile_maps.</p>
|
798
|
+
</div></span>
|
799
|
+
|
800
|
+
</li>
|
801
|
+
|
802
|
+
|
803
|
+
</ul>
|
804
|
+
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
<h2>
|
810
|
+
Class Method Summary
|
811
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
812
|
+
</h2>
|
813
|
+
|
814
|
+
<ul class="summary">
|
815
|
+
|
816
|
+
<li class="public ">
|
817
|
+
<span class="summary_signature">
|
818
|
+
|
819
|
+
<a href="#add_reference-class_method" title="add_reference (class method)">.<strong>add_reference</strong>(name:, object:) ⇒ Object </a>
|
820
|
+
|
821
|
+
|
822
|
+
|
823
|
+
</span>
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
<span class="summary_desc"><div class='inline'><p>rubocop:enable Style/GuardClause.</p>
|
834
|
+
</div></span>
|
835
|
+
|
836
|
+
</li>
|
837
|
+
|
838
|
+
|
839
|
+
<li class="public ">
|
840
|
+
<span class="summary_signature">
|
841
|
+
|
842
|
+
<a href="#clear_state_elements-class_method" title="clear_state_elements (class method)">.<strong>clear_state_elements</strong> ⇒ Object </a>
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
</span>
|
847
|
+
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
|
852
|
+
|
853
|
+
|
854
|
+
|
855
|
+
|
856
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
857
|
+
|
858
|
+
</li>
|
859
|
+
|
860
|
+
|
861
|
+
<li class="public ">
|
862
|
+
<span class="summary_signature">
|
863
|
+
|
864
|
+
<a href="#default_on_end-class_method" title="default_on_end (class method)">.<strong>default_on_end</strong> ⇒ Object </a>
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
</span>
|
869
|
+
|
870
|
+
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
879
|
+
|
880
|
+
</li>
|
881
|
+
|
882
|
+
|
883
|
+
<li class="public ">
|
884
|
+
<span class="summary_signature">
|
885
|
+
|
886
|
+
<a href="#default_on_game-class_method" title="default_on_game (class method)">.<strong>default_on_game</strong> ⇒ Object </a>
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
</span>
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
901
|
+
|
902
|
+
</li>
|
903
|
+
|
904
|
+
|
905
|
+
<li class="public ">
|
906
|
+
<span class="summary_signature">
|
907
|
+
|
908
|
+
<a href="#default_on_presentation-class_method" title="default_on_presentation (class method)">.<strong>default_on_presentation</strong> ⇒ Object </a>
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
</span>
|
913
|
+
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
|
920
|
+
|
921
|
+
|
922
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
923
|
+
|
924
|
+
</li>
|
925
|
+
|
926
|
+
|
927
|
+
<li class="public ">
|
928
|
+
<span class="summary_signature">
|
929
|
+
|
930
|
+
<a href="#go_to_end-class_method" title="go_to_end (class method)">.<strong>go_to_end</strong> ⇒ Object </a>
|
931
|
+
|
932
|
+
|
933
|
+
|
934
|
+
</span>
|
935
|
+
|
936
|
+
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
|
943
|
+
|
944
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
945
|
+
|
946
|
+
</li>
|
947
|
+
|
948
|
+
|
949
|
+
<li class="public ">
|
950
|
+
<span class="summary_signature">
|
951
|
+
|
952
|
+
<a href="#go_to_game-class_method" title="go_to_game (class method)">.<strong>go_to_game</strong> ⇒ Object </a>
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
</span>
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
|
961
|
+
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
|
966
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
967
|
+
|
968
|
+
</li>
|
969
|
+
|
970
|
+
|
971
|
+
<li class="public ">
|
972
|
+
<span class="summary_signature">
|
973
|
+
|
974
|
+
<a href="#go_to_presentation-class_method" title="go_to_presentation (class method)">.<strong>go_to_presentation</strong> ⇒ Object </a>
|
975
|
+
|
976
|
+
|
977
|
+
|
978
|
+
</span>
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
|
988
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
989
|
+
|
990
|
+
</li>
|
991
|
+
|
992
|
+
|
993
|
+
<li class="public ">
|
994
|
+
<span class="summary_signature">
|
995
|
+
|
996
|
+
<a href="#initialize-class_method" title="initialize (class method)">.<strong>initialize</strong> ⇒ Object </a>
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
</span>
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
<span class="summary_desc"><div class='inline'><p>rubocop:disable Metrics/MethodLength.</p>
|
1011
|
+
</div></span>
|
1012
|
+
|
1013
|
+
</li>
|
1014
|
+
|
1015
|
+
|
1016
|
+
<li class="public ">
|
1017
|
+
<span class="summary_signature">
|
1018
|
+
|
1019
|
+
<a href="#mouse_position-class_method" title="mouse_position (class method)">.<strong>mouse_position</strong> ⇒ Object </a>
|
1020
|
+
|
1021
|
+
|
1022
|
+
|
1023
|
+
</span>
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
1034
|
+
|
1035
|
+
</li>
|
1036
|
+
|
1037
|
+
|
1038
|
+
<li class="public ">
|
1039
|
+
<span class="summary_signature">
|
1040
|
+
|
1041
|
+
<a href="#seconds_in_scene-class_method" title="seconds_in_scene (class method)">.<strong>seconds_in_scene</strong> ⇒ Object </a>
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
</span>
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
|
1054
|
+
|
1055
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
1056
|
+
|
1057
|
+
</li>
|
1058
|
+
|
1059
|
+
|
1060
|
+
<li class="public ">
|
1061
|
+
<span class="summary_signature">
|
1062
|
+
|
1063
|
+
<a href="#setup-class_method" title="setup (class method)">.<strong>setup</strong> ⇒ Object </a>
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
1067
|
+
</span>
|
1068
|
+
|
1069
|
+
|
1070
|
+
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
1078
|
+
|
1079
|
+
</li>
|
1080
|
+
|
1081
|
+
|
1082
|
+
<li class="public ">
|
1083
|
+
<span class="summary_signature">
|
1084
|
+
|
1085
|
+
<a href="#update-class_method" title="update (class method)">.<strong>update</strong> ⇒ Object </a>
|
1086
|
+
|
1087
|
+
|
1088
|
+
|
1089
|
+
</span>
|
1090
|
+
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
<span class="summary_desc"><div class='inline'><p>rubocop:disable Style/GuardClause.</p>
|
1100
|
+
</div></span>
|
1101
|
+
|
1102
|
+
</li>
|
1103
|
+
|
1104
|
+
|
1105
|
+
</ul>
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
<div id="class_attr_details" class="attr_details">
|
1110
|
+
<h2>Class Attribute Details</h2>
|
1111
|
+
|
1112
|
+
|
1113
|
+
<span id="actors=-class_method"></span>
|
1114
|
+
<div class="method_details first">
|
1115
|
+
<h3 class="signature first" id="actors-class_method">
|
1116
|
+
|
1117
|
+
.<strong>actors</strong> ⇒ <tt>Object</tt>
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
1122
|
+
|
1123
|
+
</h3><div class="docstring">
|
1124
|
+
<div class="discussion">
|
1125
|
+
<p>Returns the value of attribute actors.</p>
|
1126
|
+
|
1127
|
+
|
1128
|
+
</div>
|
1129
|
+
</div>
|
1130
|
+
<div class="tags">
|
1131
|
+
|
1132
|
+
|
1133
|
+
</div><table class="source_code">
|
1134
|
+
<tr>
|
1135
|
+
<td>
|
1136
|
+
<pre class="lines">
|
1137
|
+
|
1138
|
+
|
1139
|
+
7
|
1140
|
+
8
|
1141
|
+
9</pre>
|
1142
|
+
</td>
|
1143
|
+
<td>
|
1144
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
1145
|
+
|
1146
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_actors'>actors</span>
|
1147
|
+
<span class='ivar'>@actors</span>
|
1148
|
+
<span class='kw'>end</span></pre>
|
1149
|
+
</td>
|
1150
|
+
</tr>
|
1151
|
+
</table>
|
1152
|
+
</div>
|
1153
|
+
|
1154
|
+
|
1155
|
+
<span id="background=-class_method"></span>
|
1156
|
+
<div class="method_details ">
|
1157
|
+
<h3 class="signature " id="background-class_method">
|
1158
|
+
|
1159
|
+
.<strong>background</strong> ⇒ <tt>Object</tt>
|
1160
|
+
|
1161
|
+
|
1162
|
+
|
1163
|
+
|
1164
|
+
|
1165
|
+
</h3><div class="docstring">
|
1166
|
+
<div class="discussion">
|
1167
|
+
<p>Returns the value of attribute background.</p>
|
1168
|
+
|
1169
|
+
|
1170
|
+
</div>
|
1171
|
+
</div>
|
1172
|
+
<div class="tags">
|
1173
|
+
|
1174
|
+
|
1175
|
+
</div><table class="source_code">
|
1176
|
+
<tr>
|
1177
|
+
<td>
|
1178
|
+
<pre class="lines">
|
1179
|
+
|
1180
|
+
|
1181
|
+
16
|
1182
|
+
17
|
1183
|
+
18</pre>
|
1184
|
+
</td>
|
1185
|
+
<td>
|
1186
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 16</span>
|
1187
|
+
|
1188
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_background'>background</span>
|
1189
|
+
<span class='ivar'>@background</span>
|
1190
|
+
<span class='kw'>end</span></pre>
|
1191
|
+
</td>
|
1192
|
+
</tr>
|
1193
|
+
</table>
|
1194
|
+
</div>
|
1195
|
+
|
1196
|
+
|
1197
|
+
<span id="backgrounds=-class_method"></span>
|
1198
|
+
<div class="method_details ">
|
1199
|
+
<h3 class="signature " id="backgrounds-class_method">
|
1200
|
+
|
1201
|
+
.<strong>backgrounds</strong> ⇒ <tt>Object</tt>
|
1202
|
+
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
</h3><div class="docstring">
|
1208
|
+
<div class="discussion">
|
1209
|
+
<p>Returns the value of attribute backgrounds.</p>
|
1210
|
+
|
1211
|
+
|
1212
|
+
</div>
|
1213
|
+
</div>
|
1214
|
+
<div class="tags">
|
1215
|
+
|
1216
|
+
|
1217
|
+
</div><table class="source_code">
|
1218
|
+
<tr>
|
1219
|
+
<td>
|
1220
|
+
<pre class="lines">
|
1221
|
+
|
1222
|
+
|
1223
|
+
7
|
1224
|
+
8
|
1225
|
+
9</pre>
|
1226
|
+
</td>
|
1227
|
+
<td>
|
1228
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
1229
|
+
|
1230
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_backgrounds'>backgrounds</span>
|
1231
|
+
<span class='ivar'>@backgrounds</span>
|
1232
|
+
<span class='kw'>end</span></pre>
|
1233
|
+
</td>
|
1234
|
+
</tr>
|
1235
|
+
</table>
|
1236
|
+
</div>
|
1237
|
+
|
1238
|
+
|
1239
|
+
<span id="button_proc=-class_method"></span>
|
1240
|
+
<div class="method_details ">
|
1241
|
+
<h3 class="signature " id="button_proc-class_method">
|
1242
|
+
|
1243
|
+
.<strong>button_proc</strong> ⇒ <tt>Object</tt>
|
1244
|
+
|
1245
|
+
|
1246
|
+
|
1247
|
+
|
1248
|
+
|
1249
|
+
</h3><div class="docstring">
|
1250
|
+
<div class="discussion">
|
1251
|
+
<p>Returns the value of attribute button_proc.</p>
|
1252
|
+
|
1253
|
+
|
1254
|
+
</div>
|
1255
|
+
</div>
|
1256
|
+
<div class="tags">
|
1257
|
+
|
1258
|
+
|
1259
|
+
</div><table class="source_code">
|
1260
|
+
<tr>
|
1261
|
+
<td>
|
1262
|
+
<pre class="lines">
|
1263
|
+
|
1264
|
+
|
1265
|
+
9
|
1266
|
+
10
|
1267
|
+
11</pre>
|
1268
|
+
</td>
|
1269
|
+
<td>
|
1270
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 9</span>
|
1271
|
+
|
1272
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_button_proc'>button_proc</span>
|
1273
|
+
<span class='ivar'>@button_proc</span>
|
1274
|
+
<span class='kw'>end</span></pre>
|
1275
|
+
</td>
|
1276
|
+
</tr>
|
1277
|
+
</table>
|
1278
|
+
</div>
|
1279
|
+
|
1280
|
+
|
1281
|
+
<span id="clocks=-class_method"></span>
|
1282
|
+
<div class="method_details ">
|
1283
|
+
<h3 class="signature " id="clocks-class_method">
|
1284
|
+
|
1285
|
+
.<strong>clocks</strong> ⇒ <tt>Object</tt>
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
1289
|
+
|
1290
|
+
|
1291
|
+
</h3><div class="docstring">
|
1292
|
+
<div class="discussion">
|
1293
|
+
<p>Returns the value of attribute clocks.</p>
|
1294
|
+
|
1295
|
+
|
1296
|
+
</div>
|
1297
|
+
</div>
|
1298
|
+
<div class="tags">
|
1299
|
+
|
1300
|
+
|
1301
|
+
</div><table class="source_code">
|
1302
|
+
<tr>
|
1303
|
+
<td>
|
1304
|
+
<pre class="lines">
|
1305
|
+
|
1306
|
+
|
1307
|
+
7
|
1308
|
+
8
|
1309
|
+
9</pre>
|
1310
|
+
</td>
|
1311
|
+
<td>
|
1312
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
1313
|
+
|
1314
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_clocks'>clocks</span>
|
1315
|
+
<span class='ivar'>@clocks</span>
|
1316
|
+
<span class='kw'>end</span></pre>
|
1317
|
+
</td>
|
1318
|
+
</tr>
|
1319
|
+
</table>
|
1320
|
+
</div>
|
1321
|
+
|
1322
|
+
|
1323
|
+
<span id="cursor_down_proc=-class_method"></span>
|
1324
|
+
<div class="method_details ">
|
1325
|
+
<h3 class="signature " id="cursor_down_proc-class_method">
|
1326
|
+
|
1327
|
+
.<strong>cursor_down_proc</strong> ⇒ <tt>Object</tt>
|
1328
|
+
|
1329
|
+
|
1330
|
+
|
1331
|
+
|
1332
|
+
|
1333
|
+
</h3><div class="docstring">
|
1334
|
+
<div class="discussion">
|
1335
|
+
<p>Returns the value of attribute cursor_down_proc.</p>
|
1336
|
+
|
1337
|
+
|
1338
|
+
</div>
|
1339
|
+
</div>
|
1340
|
+
<div class="tags">
|
1341
|
+
|
1342
|
+
|
1343
|
+
</div><table class="source_code">
|
1344
|
+
<tr>
|
1345
|
+
<td>
|
1346
|
+
<pre class="lines">
|
1347
|
+
|
1348
|
+
|
1349
|
+
13
|
1350
|
+
14
|
1351
|
+
15</pre>
|
1352
|
+
</td>
|
1353
|
+
<td>
|
1354
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 13</span>
|
1355
|
+
|
1356
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cursor_down_proc'>cursor_down_proc</span>
|
1357
|
+
<span class='ivar'>@cursor_down_proc</span>
|
1358
|
+
<span class='kw'>end</span></pre>
|
1359
|
+
</td>
|
1360
|
+
</tr>
|
1361
|
+
</table>
|
1362
|
+
</div>
|
1363
|
+
|
1364
|
+
|
1365
|
+
<span id="cursor_left_proc=-class_method"></span>
|
1366
|
+
<div class="method_details ">
|
1367
|
+
<h3 class="signature " id="cursor_left_proc-class_method">
|
1368
|
+
|
1369
|
+
.<strong>cursor_left_proc</strong> ⇒ <tt>Object</tt>
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
1375
|
+
</h3><div class="docstring">
|
1376
|
+
<div class="discussion">
|
1377
|
+
<p>Returns the value of attribute cursor_left_proc.</p>
|
1378
|
+
|
1379
|
+
|
1380
|
+
</div>
|
1381
|
+
</div>
|
1382
|
+
<div class="tags">
|
1383
|
+
|
1384
|
+
|
1385
|
+
</div><table class="source_code">
|
1386
|
+
<tr>
|
1387
|
+
<td>
|
1388
|
+
<pre class="lines">
|
1389
|
+
|
1390
|
+
|
1391
|
+
13
|
1392
|
+
14
|
1393
|
+
15</pre>
|
1394
|
+
</td>
|
1395
|
+
<td>
|
1396
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 13</span>
|
1397
|
+
|
1398
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cursor_left_proc'>cursor_left_proc</span>
|
1399
|
+
<span class='ivar'>@cursor_left_proc</span>
|
1400
|
+
<span class='kw'>end</span></pre>
|
1401
|
+
</td>
|
1402
|
+
</tr>
|
1403
|
+
</table>
|
1404
|
+
</div>
|
1405
|
+
|
1406
|
+
|
1407
|
+
<span id="cursor_right_proc=-class_method"></span>
|
1408
|
+
<div class="method_details ">
|
1409
|
+
<h3 class="signature " id="cursor_right_proc-class_method">
|
1410
|
+
|
1411
|
+
.<strong>cursor_right_proc</strong> ⇒ <tt>Object</tt>
|
1412
|
+
|
1413
|
+
|
1414
|
+
|
1415
|
+
|
1416
|
+
|
1417
|
+
</h3><div class="docstring">
|
1418
|
+
<div class="discussion">
|
1419
|
+
<p>Returns the value of attribute cursor_right_proc.</p>
|
1420
|
+
|
1421
|
+
|
1422
|
+
</div>
|
1423
|
+
</div>
|
1424
|
+
<div class="tags">
|
1425
|
+
|
1426
|
+
|
1427
|
+
</div><table class="source_code">
|
1428
|
+
<tr>
|
1429
|
+
<td>
|
1430
|
+
<pre class="lines">
|
1431
|
+
|
1432
|
+
|
1433
|
+
13
|
1434
|
+
14
|
1435
|
+
15</pre>
|
1436
|
+
</td>
|
1437
|
+
<td>
|
1438
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 13</span>
|
1439
|
+
|
1440
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cursor_right_proc'>cursor_right_proc</span>
|
1441
|
+
<span class='ivar'>@cursor_right_proc</span>
|
1442
|
+
<span class='kw'>end</span></pre>
|
1443
|
+
</td>
|
1444
|
+
</tr>
|
1445
|
+
</table>
|
1446
|
+
</div>
|
1447
|
+
|
1448
|
+
|
1449
|
+
<span id="cursor_up_proc=-class_method"></span>
|
1450
|
+
<div class="method_details ">
|
1451
|
+
<h3 class="signature " id="cursor_up_proc-class_method">
|
1452
|
+
|
1453
|
+
.<strong>cursor_up_proc</strong> ⇒ <tt>Object</tt>
|
1454
|
+
|
1455
|
+
|
1456
|
+
|
1457
|
+
|
1458
|
+
|
1459
|
+
</h3><div class="docstring">
|
1460
|
+
<div class="discussion">
|
1461
|
+
<p>Returns the value of attribute cursor_up_proc.</p>
|
1462
|
+
|
1463
|
+
|
1464
|
+
</div>
|
1465
|
+
</div>
|
1466
|
+
<div class="tags">
|
1467
|
+
|
1468
|
+
|
1469
|
+
</div><table class="source_code">
|
1470
|
+
<tr>
|
1471
|
+
<td>
|
1472
|
+
<pre class="lines">
|
1473
|
+
|
1474
|
+
|
1475
|
+
13
|
1476
|
+
14
|
1477
|
+
15</pre>
|
1478
|
+
</td>
|
1479
|
+
<td>
|
1480
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 13</span>
|
1481
|
+
|
1482
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cursor_up_proc'>cursor_up_proc</span>
|
1483
|
+
<span class='ivar'>@cursor_up_proc</span>
|
1484
|
+
<span class='kw'>end</span></pre>
|
1485
|
+
</td>
|
1486
|
+
</tr>
|
1487
|
+
</table>
|
1488
|
+
</div>
|
1489
|
+
|
1490
|
+
|
1491
|
+
<span id="debug=-class_method"></span>
|
1492
|
+
<div class="method_details ">
|
1493
|
+
<h3 class="signature " id="debug-class_method">
|
1494
|
+
|
1495
|
+
.<strong>debug</strong> ⇒ <tt>Object</tt>
|
1496
|
+
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
</h3><div class="docstring">
|
1502
|
+
<div class="discussion">
|
1503
|
+
<p>Returns the value of attribute debug.</p>
|
1504
|
+
|
1505
|
+
|
1506
|
+
</div>
|
1507
|
+
</div>
|
1508
|
+
<div class="tags">
|
1509
|
+
|
1510
|
+
|
1511
|
+
</div><table class="source_code">
|
1512
|
+
<tr>
|
1513
|
+
<td>
|
1514
|
+
<pre class="lines">
|
1515
|
+
|
1516
|
+
|
1517
|
+
8
|
1518
|
+
9
|
1519
|
+
10</pre>
|
1520
|
+
</td>
|
1521
|
+
<td>
|
1522
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 8</span>
|
1523
|
+
|
1524
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_debug'>debug</span>
|
1525
|
+
<span class='ivar'>@debug</span>
|
1526
|
+
<span class='kw'>end</span></pre>
|
1527
|
+
</td>
|
1528
|
+
</tr>
|
1529
|
+
</table>
|
1530
|
+
</div>
|
1531
|
+
|
1532
|
+
|
1533
|
+
<span id="end_proc=-class_method"></span>
|
1534
|
+
<div class="method_details ">
|
1535
|
+
<h3 class="signature " id="end_proc-class_method">
|
1536
|
+
|
1537
|
+
.<strong>end_proc</strong> ⇒ <tt>Object</tt>
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
|
1542
|
+
|
1543
|
+
</h3><div class="docstring">
|
1544
|
+
<div class="discussion">
|
1545
|
+
<p>Returns the value of attribute end_proc.</p>
|
1546
|
+
|
1547
|
+
|
1548
|
+
</div>
|
1549
|
+
</div>
|
1550
|
+
<div class="tags">
|
1551
|
+
|
1552
|
+
|
1553
|
+
</div><table class="source_code">
|
1554
|
+
<tr>
|
1555
|
+
<td>
|
1556
|
+
<pre class="lines">
|
1557
|
+
|
1558
|
+
|
1559
|
+
10
|
1560
|
+
11
|
1561
|
+
12</pre>
|
1562
|
+
</td>
|
1563
|
+
<td>
|
1564
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 10</span>
|
1565
|
+
|
1566
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_end_proc'>end_proc</span>
|
1567
|
+
<span class='ivar'>@end_proc</span>
|
1568
|
+
<span class='kw'>end</span></pre>
|
1569
|
+
</td>
|
1570
|
+
</tr>
|
1571
|
+
</table>
|
1572
|
+
</div>
|
1573
|
+
|
1574
|
+
|
1575
|
+
<span id=""></span>
|
1576
|
+
<div class="method_details ">
|
1577
|
+
<h3 class="signature " id="frame_time-class_method">
|
1578
|
+
|
1579
|
+
.<strong>frame_time</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1580
|
+
|
1581
|
+
|
1582
|
+
|
1583
|
+
|
1584
|
+
|
1585
|
+
</h3><div class="docstring">
|
1586
|
+
<div class="discussion">
|
1587
|
+
<p>delta_time</p>
|
1588
|
+
|
1589
|
+
|
1590
|
+
</div>
|
1591
|
+
</div>
|
1592
|
+
<div class="tags">
|
1593
|
+
|
1594
|
+
|
1595
|
+
</div><table class="source_code">
|
1596
|
+
<tr>
|
1597
|
+
<td>
|
1598
|
+
<pre class="lines">
|
1599
|
+
|
1600
|
+
|
1601
|
+
19
|
1602
|
+
20
|
1603
|
+
21</pre>
|
1604
|
+
</td>
|
1605
|
+
<td>
|
1606
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 19</span>
|
1607
|
+
|
1608
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_frame_time'>frame_time</span>
|
1609
|
+
<span class='ivar'>@frame_time</span>
|
1610
|
+
<span class='kw'>end</span></pre>
|
1611
|
+
</td>
|
1612
|
+
</tr>
|
1613
|
+
</table>
|
1614
|
+
</div>
|
1615
|
+
|
1616
|
+
|
1617
|
+
<span id="game=-class_method"></span>
|
1618
|
+
<div class="method_details ">
|
1619
|
+
<h3 class="signature " id="game-class_method">
|
1620
|
+
|
1621
|
+
.<strong>game</strong> ⇒ <tt>Object</tt>
|
1622
|
+
|
1623
|
+
|
1624
|
+
|
1625
|
+
|
1626
|
+
|
1627
|
+
</h3><div class="docstring">
|
1628
|
+
<div class="discussion">
|
1629
|
+
<p>Returns the value of attribute game.</p>
|
1630
|
+
|
1631
|
+
|
1632
|
+
</div>
|
1633
|
+
</div>
|
1634
|
+
<div class="tags">
|
1635
|
+
|
1636
|
+
|
1637
|
+
</div><table class="source_code">
|
1638
|
+
<tr>
|
1639
|
+
<td>
|
1640
|
+
<pre class="lines">
|
1641
|
+
|
1642
|
+
|
1643
|
+
18
|
1644
|
+
19
|
1645
|
+
20</pre>
|
1646
|
+
</td>
|
1647
|
+
<td>
|
1648
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 18</span>
|
1649
|
+
|
1650
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_game'>game</span>
|
1651
|
+
<span class='ivar'>@game</span>
|
1652
|
+
<span class='kw'>end</span></pre>
|
1653
|
+
</td>
|
1654
|
+
</tr>
|
1655
|
+
</table>
|
1656
|
+
</div>
|
1657
|
+
|
1658
|
+
|
1659
|
+
<span id="game_proc=-class_method"></span>
|
1660
|
+
<div class="method_details ">
|
1661
|
+
<h3 class="signature " id="game_proc-class_method">
|
1662
|
+
|
1663
|
+
.<strong>game_proc</strong> ⇒ <tt>Object</tt>
|
1664
|
+
|
1665
|
+
|
1666
|
+
|
1667
|
+
|
1668
|
+
|
1669
|
+
</h3><div class="docstring">
|
1670
|
+
<div class="discussion">
|
1671
|
+
<p>Returns the value of attribute game_proc.</p>
|
1672
|
+
|
1673
|
+
|
1674
|
+
</div>
|
1675
|
+
</div>
|
1676
|
+
<div class="tags">
|
1677
|
+
|
1678
|
+
|
1679
|
+
</div><table class="source_code">
|
1680
|
+
<tr>
|
1681
|
+
<td>
|
1682
|
+
<pre class="lines">
|
1683
|
+
|
1684
|
+
|
1685
|
+
10
|
1686
|
+
11
|
1687
|
+
12</pre>
|
1688
|
+
</td>
|
1689
|
+
<td>
|
1690
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 10</span>
|
1691
|
+
|
1692
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_game_proc'>game_proc</span>
|
1693
|
+
<span class='ivar'>@game_proc</span>
|
1694
|
+
<span class='kw'>end</span></pre>
|
1695
|
+
</td>
|
1696
|
+
</tr>
|
1697
|
+
</table>
|
1698
|
+
</div>
|
1699
|
+
|
1700
|
+
|
1701
|
+
<span id=""></span>
|
1702
|
+
<div class="method_details ">
|
1703
|
+
<h3 class="signature " id="game_state-class_method">
|
1704
|
+
|
1705
|
+
.<strong>game_state</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1706
|
+
|
1707
|
+
|
1708
|
+
|
1709
|
+
|
1710
|
+
|
1711
|
+
</h3><div class="docstring">
|
1712
|
+
<div class="discussion">
|
1713
|
+
<p>Returns the value of attribute game_state.</p>
|
1714
|
+
|
1715
|
+
|
1716
|
+
</div>
|
1717
|
+
</div>
|
1718
|
+
<div class="tags">
|
1719
|
+
|
1720
|
+
|
1721
|
+
</div><table class="source_code">
|
1722
|
+
<tr>
|
1723
|
+
<td>
|
1724
|
+
<pre class="lines">
|
1725
|
+
|
1726
|
+
|
1727
|
+
22
|
1728
|
+
23
|
1729
|
+
24</pre>
|
1730
|
+
</td>
|
1731
|
+
<td>
|
1732
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 22</span>
|
1733
|
+
|
1734
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_game_state'>game_state</span>
|
1735
|
+
<span class='ivar'>@game_state</span>
|
1736
|
+
<span class='kw'>end</span></pre>
|
1737
|
+
</td>
|
1738
|
+
</tr>
|
1739
|
+
</table>
|
1740
|
+
</div>
|
1741
|
+
|
1742
|
+
|
1743
|
+
<span id="hud_images=-class_method"></span>
|
1744
|
+
<div class="method_details ">
|
1745
|
+
<h3 class="signature " id="hud_images-class_method">
|
1746
|
+
|
1747
|
+
.<strong>hud_images</strong> ⇒ <tt>Object</tt>
|
1748
|
+
|
1749
|
+
|
1750
|
+
|
1751
|
+
|
1752
|
+
|
1753
|
+
</h3><div class="docstring">
|
1754
|
+
<div class="discussion">
|
1755
|
+
<p>Returns the value of attribute hud_images.</p>
|
1756
|
+
|
1757
|
+
|
1758
|
+
</div>
|
1759
|
+
</div>
|
1760
|
+
<div class="tags">
|
1761
|
+
|
1762
|
+
|
1763
|
+
</div><table class="source_code">
|
1764
|
+
<tr>
|
1765
|
+
<td>
|
1766
|
+
<pre class="lines">
|
1767
|
+
|
1768
|
+
|
1769
|
+
7
|
1770
|
+
8
|
1771
|
+
9</pre>
|
1772
|
+
</td>
|
1773
|
+
<td>
|
1774
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
1775
|
+
|
1776
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_hud_images'>hud_images</span>
|
1777
|
+
<span class='ivar'>@hud_images</span>
|
1778
|
+
<span class='kw'>end</span></pre>
|
1779
|
+
</td>
|
1780
|
+
</tr>
|
1781
|
+
</table>
|
1782
|
+
</div>
|
1783
|
+
|
1784
|
+
|
1785
|
+
<span id="hud_texts=-class_method"></span>
|
1786
|
+
<div class="method_details ">
|
1787
|
+
<h3 class="signature " id="hud_texts-class_method">
|
1788
|
+
|
1789
|
+
.<strong>hud_texts</strong> ⇒ <tt>Object</tt>
|
1790
|
+
|
1791
|
+
|
1792
|
+
|
1793
|
+
|
1794
|
+
|
1795
|
+
</h3><div class="docstring">
|
1796
|
+
<div class="discussion">
|
1797
|
+
<p>Returns the value of attribute hud_texts.</p>
|
1798
|
+
|
1799
|
+
|
1800
|
+
</div>
|
1801
|
+
</div>
|
1802
|
+
<div class="tags">
|
1803
|
+
|
1804
|
+
|
1805
|
+
</div><table class="source_code">
|
1806
|
+
<tr>
|
1807
|
+
<td>
|
1808
|
+
<pre class="lines">
|
1809
|
+
|
1810
|
+
|
1811
|
+
7
|
1812
|
+
8
|
1813
|
+
9</pre>
|
1814
|
+
</td>
|
1815
|
+
<td>
|
1816
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
1817
|
+
|
1818
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_hud_texts'>hud_texts</span>
|
1819
|
+
<span class='ivar'>@hud_texts</span>
|
1820
|
+
<span class='kw'>end</span></pre>
|
1821
|
+
</td>
|
1822
|
+
</tr>
|
1823
|
+
</table>
|
1824
|
+
</div>
|
1825
|
+
|
1826
|
+
|
1827
|
+
<span id="loop_proc=-class_method"></span>
|
1828
|
+
<div class="method_details ">
|
1829
|
+
<h3 class="signature " id="loop_proc-class_method">
|
1830
|
+
|
1831
|
+
.<strong>loop_proc</strong> ⇒ <tt>Object</tt>
|
1832
|
+
|
1833
|
+
|
1834
|
+
|
1835
|
+
|
1836
|
+
|
1837
|
+
</h3><div class="docstring">
|
1838
|
+
<div class="discussion">
|
1839
|
+
<p>Returns the value of attribute loop_proc.</p>
|
1840
|
+
|
1841
|
+
|
1842
|
+
</div>
|
1843
|
+
</div>
|
1844
|
+
<div class="tags">
|
1845
|
+
|
1846
|
+
|
1847
|
+
</div><table class="source_code">
|
1848
|
+
<tr>
|
1849
|
+
<td>
|
1850
|
+
<pre class="lines">
|
1851
|
+
|
1852
|
+
|
1853
|
+
9
|
1854
|
+
10
|
1855
|
+
11</pre>
|
1856
|
+
</td>
|
1857
|
+
<td>
|
1858
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 9</span>
|
1859
|
+
|
1860
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_loop_proc'>loop_proc</span>
|
1861
|
+
<span class='ivar'>@loop_proc</span>
|
1862
|
+
<span class='kw'>end</span></pre>
|
1863
|
+
</td>
|
1864
|
+
</tr>
|
1865
|
+
</table>
|
1866
|
+
</div>
|
1867
|
+
|
1868
|
+
|
1869
|
+
<span id="mouse_button_left_proc=-class_method"></span>
|
1870
|
+
<div class="method_details ">
|
1871
|
+
<h3 class="signature " id="mouse_button_left_proc-class_method">
|
1872
|
+
|
1873
|
+
.<strong>mouse_button_left_proc</strong> ⇒ <tt>Object</tt>
|
1874
|
+
|
1875
|
+
|
1876
|
+
|
1877
|
+
|
1878
|
+
|
1879
|
+
</h3><div class="docstring">
|
1880
|
+
<div class="discussion">
|
1881
|
+
<p>Returns the value of attribute mouse_button_left_proc.</p>
|
1882
|
+
|
1883
|
+
|
1884
|
+
</div>
|
1885
|
+
</div>
|
1886
|
+
<div class="tags">
|
1887
|
+
|
1888
|
+
|
1889
|
+
</div><table class="source_code">
|
1890
|
+
<tr>
|
1891
|
+
<td>
|
1892
|
+
<pre class="lines">
|
1893
|
+
|
1894
|
+
|
1895
|
+
14
|
1896
|
+
15
|
1897
|
+
16</pre>
|
1898
|
+
</td>
|
1899
|
+
<td>
|
1900
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 14</span>
|
1901
|
+
|
1902
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mouse_button_left_proc'>mouse_button_left_proc</span>
|
1903
|
+
<span class='ivar'>@mouse_button_left_proc</span>
|
1904
|
+
<span class='kw'>end</span></pre>
|
1905
|
+
</td>
|
1906
|
+
</tr>
|
1907
|
+
</table>
|
1908
|
+
</div>
|
1909
|
+
|
1910
|
+
|
1911
|
+
<span id="mouse_button_right_proc=-class_method"></span>
|
1912
|
+
<div class="method_details ">
|
1913
|
+
<h3 class="signature " id="mouse_button_right_proc-class_method">
|
1914
|
+
|
1915
|
+
.<strong>mouse_button_right_proc</strong> ⇒ <tt>Object</tt>
|
1916
|
+
|
1917
|
+
|
1918
|
+
|
1919
|
+
|
1920
|
+
|
1921
|
+
</h3><div class="docstring">
|
1922
|
+
<div class="discussion">
|
1923
|
+
<p>Returns the value of attribute mouse_button_right_proc.</p>
|
1924
|
+
|
1925
|
+
|
1926
|
+
</div>
|
1927
|
+
</div>
|
1928
|
+
<div class="tags">
|
1929
|
+
|
1930
|
+
|
1931
|
+
</div><table class="source_code">
|
1932
|
+
<tr>
|
1933
|
+
<td>
|
1934
|
+
<pre class="lines">
|
1935
|
+
|
1936
|
+
|
1937
|
+
14
|
1938
|
+
15
|
1939
|
+
16</pre>
|
1940
|
+
</td>
|
1941
|
+
<td>
|
1942
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 14</span>
|
1943
|
+
|
1944
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mouse_button_right_proc'>mouse_button_right_proc</span>
|
1945
|
+
<span class='ivar'>@mouse_button_right_proc</span>
|
1946
|
+
<span class='kw'>end</span></pre>
|
1947
|
+
</td>
|
1948
|
+
</tr>
|
1949
|
+
</table>
|
1950
|
+
</div>
|
1951
|
+
|
1952
|
+
|
1953
|
+
<span id=""></span>
|
1954
|
+
<div class="method_details ">
|
1955
|
+
<h3 class="signature " id="pixel_fonts-class_method">
|
1956
|
+
|
1957
|
+
.<strong>pixel_fonts</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1958
|
+
|
1959
|
+
|
1960
|
+
|
1961
|
+
|
1962
|
+
|
1963
|
+
</h3><div class="docstring">
|
1964
|
+
<div class="discussion">
|
1965
|
+
<p>Returns the value of attribute pixel_fonts.</p>
|
1966
|
+
|
1967
|
+
|
1968
|
+
</div>
|
1969
|
+
</div>
|
1970
|
+
<div class="tags">
|
1971
|
+
|
1972
|
+
|
1973
|
+
</div><table class="source_code">
|
1974
|
+
<tr>
|
1975
|
+
<td>
|
1976
|
+
<pre class="lines">
|
1977
|
+
|
1978
|
+
|
1979
|
+
20
|
1980
|
+
21
|
1981
|
+
22</pre>
|
1982
|
+
</td>
|
1983
|
+
<td>
|
1984
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 20</span>
|
1985
|
+
|
1986
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pixel_fonts'>pixel_fonts</span>
|
1987
|
+
<span class='ivar'>@pixel_fonts</span>
|
1988
|
+
<span class='kw'>end</span></pre>
|
1989
|
+
</td>
|
1990
|
+
</tr>
|
1991
|
+
</table>
|
1992
|
+
</div>
|
1993
|
+
|
1994
|
+
|
1995
|
+
<span id="presentation_proc=-class_method"></span>
|
1996
|
+
<div class="method_details ">
|
1997
|
+
<h3 class="signature " id="presentation_proc-class_method">
|
1998
|
+
|
1999
|
+
.<strong>presentation_proc</strong> ⇒ <tt>Object</tt>
|
2000
|
+
|
2001
|
+
|
2002
|
+
|
2003
|
+
|
2004
|
+
|
2005
|
+
</h3><div class="docstring">
|
2006
|
+
<div class="discussion">
|
2007
|
+
<p>Returns the value of attribute presentation_proc.</p>
|
2008
|
+
|
2009
|
+
|
2010
|
+
</div>
|
2011
|
+
</div>
|
2012
|
+
<div class="tags">
|
2013
|
+
|
2014
|
+
|
2015
|
+
</div><table class="source_code">
|
2016
|
+
<tr>
|
2017
|
+
<td>
|
2018
|
+
<pre class="lines">
|
2019
|
+
|
2020
|
+
|
2021
|
+
10
|
2022
|
+
11
|
2023
|
+
12</pre>
|
2024
|
+
</td>
|
2025
|
+
<td>
|
2026
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 10</span>
|
2027
|
+
|
2028
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_presentation_proc'>presentation_proc</span>
|
2029
|
+
<span class='ivar'>@presentation_proc</span>
|
2030
|
+
<span class='kw'>end</span></pre>
|
2031
|
+
</td>
|
2032
|
+
</tr>
|
2033
|
+
</table>
|
2034
|
+
</div>
|
2035
|
+
|
2036
|
+
|
2037
|
+
<span id=""></span>
|
2038
|
+
<div class="method_details ">
|
2039
|
+
<h3 class="signature " id="references-class_method">
|
2040
|
+
|
2041
|
+
.<strong>references</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
2042
|
+
|
2043
|
+
|
2044
|
+
|
2045
|
+
|
2046
|
+
|
2047
|
+
</h3><div class="docstring">
|
2048
|
+
<div class="discussion">
|
2049
|
+
<p>Returns the value of attribute references.</p>
|
2050
|
+
|
2051
|
+
|
2052
|
+
</div>
|
2053
|
+
</div>
|
2054
|
+
<div class="tags">
|
2055
|
+
|
2056
|
+
|
2057
|
+
</div><table class="source_code">
|
2058
|
+
<tr>
|
2059
|
+
<td>
|
2060
|
+
<pre class="lines">
|
2061
|
+
|
2062
|
+
|
2063
|
+
21
|
2064
|
+
22
|
2065
|
+
23</pre>
|
2066
|
+
</td>
|
2067
|
+
<td>
|
2068
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 21</span>
|
2069
|
+
|
2070
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_references'>references</span>
|
2071
|
+
<span class='ivar'>@references</span>
|
2072
|
+
<span class='kw'>end</span></pre>
|
2073
|
+
</td>
|
2074
|
+
</tr>
|
2075
|
+
</table>
|
2076
|
+
</div>
|
2077
|
+
|
2078
|
+
|
2079
|
+
<span id="setup_proc=-class_method"></span>
|
2080
|
+
<div class="method_details ">
|
2081
|
+
<h3 class="signature " id="setup_proc-class_method">
|
2082
|
+
|
2083
|
+
.<strong>setup_proc</strong> ⇒ <tt>Object</tt>
|
2084
|
+
|
2085
|
+
|
2086
|
+
|
2087
|
+
|
2088
|
+
|
2089
|
+
</h3><div class="docstring">
|
2090
|
+
<div class="discussion">
|
2091
|
+
<p>Returns the value of attribute setup_proc.</p>
|
2092
|
+
|
2093
|
+
|
2094
|
+
</div>
|
2095
|
+
</div>
|
2096
|
+
<div class="tags">
|
2097
|
+
|
2098
|
+
|
2099
|
+
</div><table class="source_code">
|
2100
|
+
<tr>
|
2101
|
+
<td>
|
2102
|
+
<pre class="lines">
|
2103
|
+
|
2104
|
+
|
2105
|
+
9
|
2106
|
+
10
|
2107
|
+
11</pre>
|
2108
|
+
</td>
|
2109
|
+
<td>
|
2110
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 9</span>
|
2111
|
+
|
2112
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setup_proc'>setup_proc</span>
|
2113
|
+
<span class='ivar'>@setup_proc</span>
|
2114
|
+
<span class='kw'>end</span></pre>
|
2115
|
+
</td>
|
2116
|
+
</tr>
|
2117
|
+
</table>
|
2118
|
+
</div>
|
2119
|
+
|
2120
|
+
|
2121
|
+
<span id="shapes=-class_method"></span>
|
2122
|
+
<div class="method_details ">
|
2123
|
+
<h3 class="signature " id="shapes-class_method">
|
2124
|
+
|
2125
|
+
.<strong>shapes</strong> ⇒ <tt>Object</tt>
|
2126
|
+
|
2127
|
+
|
2128
|
+
|
2129
|
+
|
2130
|
+
|
2131
|
+
</h3><div class="docstring">
|
2132
|
+
<div class="discussion">
|
2133
|
+
<p>Returns the value of attribute shapes.</p>
|
2134
|
+
|
2135
|
+
|
2136
|
+
</div>
|
2137
|
+
</div>
|
2138
|
+
<div class="tags">
|
2139
|
+
|
2140
|
+
|
2141
|
+
</div><table class="source_code">
|
2142
|
+
<tr>
|
2143
|
+
<td>
|
2144
|
+
<pre class="lines">
|
2145
|
+
|
2146
|
+
|
2147
|
+
7
|
2148
|
+
8
|
2149
|
+
9</pre>
|
2150
|
+
</td>
|
2151
|
+
<td>
|
2152
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
2153
|
+
|
2154
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_shapes'>shapes</span>
|
2155
|
+
<span class='ivar'>@shapes</span>
|
2156
|
+
<span class='kw'>end</span></pre>
|
2157
|
+
</td>
|
2158
|
+
</tr>
|
2159
|
+
</table>
|
2160
|
+
</div>
|
2161
|
+
|
2162
|
+
|
2163
|
+
<span id="space_bar_proc=-class_method"></span>
|
2164
|
+
<div class="method_details ">
|
2165
|
+
<h3 class="signature " id="space_bar_proc-class_method">
|
2166
|
+
|
2167
|
+
.<strong>space_bar_proc</strong> ⇒ <tt>Object</tt>
|
2168
|
+
|
2169
|
+
|
2170
|
+
|
2171
|
+
|
2172
|
+
|
2173
|
+
</h3><div class="docstring">
|
2174
|
+
<div class="discussion">
|
2175
|
+
<p>Returns the value of attribute space_bar_proc.</p>
|
2176
|
+
|
2177
|
+
|
2178
|
+
</div>
|
2179
|
+
</div>
|
2180
|
+
<div class="tags">
|
2181
|
+
|
2182
|
+
|
2183
|
+
</div><table class="source_code">
|
2184
|
+
<tr>
|
2185
|
+
<td>
|
2186
|
+
<pre class="lines">
|
2187
|
+
|
2188
|
+
|
2189
|
+
12
|
2190
|
+
13
|
2191
|
+
14</pre>
|
2192
|
+
</td>
|
2193
|
+
<td>
|
2194
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 12</span>
|
2195
|
+
|
2196
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_space_bar_proc'>space_bar_proc</span>
|
2197
|
+
<span class='ivar'>@space_bar_proc</span>
|
2198
|
+
<span class='kw'>end</span></pre>
|
2199
|
+
</td>
|
2200
|
+
</tr>
|
2201
|
+
</table>
|
2202
|
+
</div>
|
2203
|
+
|
2204
|
+
|
2205
|
+
<span id="tile_maps=-class_method"></span>
|
2206
|
+
<div class="method_details ">
|
2207
|
+
<h3 class="signature " id="tile_maps-class_method">
|
2208
|
+
|
2209
|
+
.<strong>tile_maps</strong> ⇒ <tt>Object</tt>
|
2210
|
+
|
2211
|
+
|
2212
|
+
|
2213
|
+
|
2214
|
+
|
2215
|
+
</h3><div class="docstring">
|
2216
|
+
<div class="discussion">
|
2217
|
+
<p>Returns the value of attribute tile_maps.</p>
|
2218
|
+
|
2219
|
+
|
2220
|
+
</div>
|
2221
|
+
</div>
|
2222
|
+
<div class="tags">
|
2223
|
+
|
2224
|
+
|
2225
|
+
</div><table class="source_code">
|
2226
|
+
<tr>
|
2227
|
+
<td>
|
2228
|
+
<pre class="lines">
|
2229
|
+
|
2230
|
+
|
2231
|
+
7
|
2232
|
+
8
|
2233
|
+
9</pre>
|
2234
|
+
</td>
|
2235
|
+
<td>
|
2236
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 7</span>
|
2237
|
+
|
2238
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_tile_maps'>tile_maps</span>
|
2239
|
+
<span class='ivar'>@tile_maps</span>
|
2240
|
+
<span class='kw'>end</span></pre>
|
2241
|
+
</td>
|
2242
|
+
</tr>
|
2243
|
+
</table>
|
2244
|
+
</div>
|
2245
|
+
|
2246
|
+
</div>
|
2247
|
+
|
2248
|
+
|
2249
|
+
<div id="class_method_details" class="method_details_list">
|
2250
|
+
<h2>Class Method Details</h2>
|
2251
|
+
|
2252
|
+
|
2253
|
+
<div class="method_details first">
|
2254
|
+
<h3 class="signature first" id="add_reference-class_method">
|
2255
|
+
|
2256
|
+
.<strong>add_reference</strong>(name:, object:) ⇒ <tt>Object</tt>
|
2257
|
+
|
2258
|
+
|
2259
|
+
|
2260
|
+
|
2261
|
+
|
2262
|
+
</h3><div class="docstring">
|
2263
|
+
<div class="discussion">
|
2264
|
+
<p>rubocop:enable Style/GuardClause</p>
|
2265
|
+
|
2266
|
+
|
2267
|
+
</div>
|
2268
|
+
</div>
|
2269
|
+
<div class="tags">
|
2270
|
+
|
2271
|
+
|
2272
|
+
</div><table class="source_code">
|
2273
|
+
<tr>
|
2274
|
+
<td>
|
2275
|
+
<pre class="lines">
|
2276
|
+
|
2277
|
+
|
2278
|
+
75
|
2279
|
+
76
|
2280
|
+
77</pre>
|
2281
|
+
</td>
|
2282
|
+
<td>
|
2283
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 75</span>
|
2284
|
+
|
2285
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_reference'>add_reference</span><span class='lparen'>(</span><span class='label'>name:</span><span class='comma'>,</span> <span class='label'>object:</span><span class='rparen'>)</span>
|
2286
|
+
<span class='ivar'>@references</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_object'>object</span>
|
2287
|
+
<span class='kw'>end</span></pre>
|
2288
|
+
</td>
|
2289
|
+
</tr>
|
2290
|
+
</table>
|
2291
|
+
</div>
|
2292
|
+
|
2293
|
+
<div class="method_details ">
|
2294
|
+
<h3 class="signature " id="clear_state_elements-class_method">
|
2295
|
+
|
2296
|
+
.<strong>clear_state_elements</strong> ⇒ <tt>Object</tt>
|
2297
|
+
|
2298
|
+
|
2299
|
+
|
2300
|
+
|
2301
|
+
|
2302
|
+
</h3><table class="source_code">
|
2303
|
+
<tr>
|
2304
|
+
<td>
|
2305
|
+
<pre class="lines">
|
2306
|
+
|
2307
|
+
|
2308
|
+
112
|
2309
|
+
113
|
2310
|
+
114
|
2311
|
+
115
|
2312
|
+
116
|
2313
|
+
117</pre>
|
2314
|
+
</td>
|
2315
|
+
<td>
|
2316
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 112</span>
|
2317
|
+
|
2318
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_clear_state_elements'>clear_state_elements</span>
|
2319
|
+
<span class='ivar'>@scene_started_at</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
2320
|
+
|
2321
|
+
<span class='id identifier rubyid_clear_entities'>clear_entities</span>
|
2322
|
+
<span class='id identifier rubyid_clear_callbacks'>clear_callbacks</span>
|
2323
|
+
<span class='kw'>end</span></pre>
|
2324
|
+
</td>
|
2325
|
+
</tr>
|
2326
|
+
</table>
|
2327
|
+
</div>
|
2328
|
+
|
2329
|
+
<div class="method_details ">
|
2330
|
+
<h3 class="signature " id="default_on_end-class_method">
|
2331
|
+
|
2332
|
+
.<strong>default_on_end</strong> ⇒ <tt>Object</tt>
|
2333
|
+
|
2334
|
+
|
2335
|
+
|
2336
|
+
|
2337
|
+
|
2338
|
+
</h3><table class="source_code">
|
2339
|
+
<tr>
|
2340
|
+
<td>
|
2341
|
+
<pre class="lines">
|
2342
|
+
|
2343
|
+
|
2344
|
+
87
|
2345
|
+
88
|
2346
|
+
89</pre>
|
2347
|
+
</td>
|
2348
|
+
<td>
|
2349
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 87</span>
|
2350
|
+
|
2351
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_default_on_end'>default_on_end</span>
|
2352
|
+
<span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_go_to_presentation'><span class='object_link'><a href="#go_to_presentation-class_method" title="Global.go_to_presentation (method)">go_to_presentation</a></span></span>
|
2353
|
+
<span class='kw'>end</span></pre>
|
2354
|
+
</td>
|
2355
|
+
</tr>
|
2356
|
+
</table>
|
2357
|
+
</div>
|
2358
|
+
|
2359
|
+
<div class="method_details ">
|
2360
|
+
<h3 class="signature " id="default_on_game-class_method">
|
2361
|
+
|
2362
|
+
.<strong>default_on_game</strong> ⇒ <tt>Object</tt>
|
2363
|
+
|
2364
|
+
|
2365
|
+
|
2366
|
+
|
2367
|
+
|
2368
|
+
</h3><table class="source_code">
|
2369
|
+
<tr>
|
2370
|
+
<td>
|
2371
|
+
<pre class="lines">
|
2372
|
+
|
2373
|
+
|
2374
|
+
83
|
2375
|
+
84
|
2376
|
+
85</pre>
|
2377
|
+
</td>
|
2378
|
+
<td>
|
2379
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 83</span>
|
2380
|
+
|
2381
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_default_on_game'>default_on_game</span>
|
2382
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>You have to define a 'on_game' block</span><span class='tstring_end'>"</span></span>
|
2383
|
+
<span class='kw'>end</span></pre>
|
2384
|
+
</td>
|
2385
|
+
</tr>
|
2386
|
+
</table>
|
2387
|
+
</div>
|
2388
|
+
|
2389
|
+
<div class="method_details ">
|
2390
|
+
<h3 class="signature " id="default_on_presentation-class_method">
|
2391
|
+
|
2392
|
+
.<strong>default_on_presentation</strong> ⇒ <tt>Object</tt>
|
2393
|
+
|
2394
|
+
|
2395
|
+
|
2396
|
+
|
2397
|
+
|
2398
|
+
</h3><table class="source_code">
|
2399
|
+
<tr>
|
2400
|
+
<td>
|
2401
|
+
<pre class="lines">
|
2402
|
+
|
2403
|
+
|
2404
|
+
79
|
2405
|
+
80
|
2406
|
+
81</pre>
|
2407
|
+
</td>
|
2408
|
+
<td>
|
2409
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 79</span>
|
2410
|
+
|
2411
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_default_on_presentation'>default_on_presentation</span>
|
2412
|
+
<span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_go_to_game'><span class='object_link'><a href="#go_to_game-class_method" title="Global.go_to_game (method)">go_to_game</a></span></span>
|
2413
|
+
<span class='kw'>end</span></pre>
|
2414
|
+
</td>
|
2415
|
+
</tr>
|
2416
|
+
</table>
|
2417
|
+
</div>
|
2418
|
+
|
2419
|
+
<div class="method_details ">
|
2420
|
+
<h3 class="signature " id="go_to_end-class_method">
|
2421
|
+
|
2422
|
+
.<strong>go_to_end</strong> ⇒ <tt>Object</tt>
|
2423
|
+
|
2424
|
+
|
2425
|
+
|
2426
|
+
|
2427
|
+
|
2428
|
+
</h3><table class="source_code">
|
2429
|
+
<tr>
|
2430
|
+
<td>
|
2431
|
+
<pre class="lines">
|
2432
|
+
|
2433
|
+
|
2434
|
+
105
|
2435
|
+
106
|
2436
|
+
107
|
2437
|
+
108
|
2438
|
+
109
|
2439
|
+
110</pre>
|
2440
|
+
</td>
|
2441
|
+
<td>
|
2442
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 105</span>
|
2443
|
+
|
2444
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_go_to_end'>go_to_end</span>
|
2445
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Game stage 'end'</span><span class='tstring_end'>"</span></span>
|
2446
|
+
|
2447
|
+
<span class='id identifier rubyid_clear_state_elements'>clear_state_elements</span>
|
2448
|
+
<span class='id identifier rubyid_end_proc'>end_proc</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
2449
|
+
<span class='kw'>end</span></pre>
|
2450
|
+
</td>
|
2451
|
+
</tr>
|
2452
|
+
</table>
|
2453
|
+
</div>
|
2454
|
+
|
2455
|
+
<div class="method_details ">
|
2456
|
+
<h3 class="signature " id="go_to_game-class_method">
|
2457
|
+
|
2458
|
+
.<strong>go_to_game</strong> ⇒ <tt>Object</tt>
|
2459
|
+
|
2460
|
+
|
2461
|
+
|
2462
|
+
|
2463
|
+
|
2464
|
+
</h3><table class="source_code">
|
2465
|
+
<tr>
|
2466
|
+
<td>
|
2467
|
+
<pre class="lines">
|
2468
|
+
|
2469
|
+
|
2470
|
+
98
|
2471
|
+
99
|
2472
|
+
100
|
2473
|
+
101
|
2474
|
+
102
|
2475
|
+
103</pre>
|
2476
|
+
</td>
|
2477
|
+
<td>
|
2478
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 98</span>
|
2479
|
+
|
2480
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_go_to_game'>go_to_game</span>
|
2481
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Game stage 'game'</span><span class='tstring_end'>"</span></span>
|
2482
|
+
|
2483
|
+
<span class='id identifier rubyid_clear_state_elements'>clear_state_elements</span>
|
2484
|
+
<span class='id identifier rubyid_game_proc'>game_proc</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
2485
|
+
<span class='kw'>end</span></pre>
|
2486
|
+
</td>
|
2487
|
+
</tr>
|
2488
|
+
</table>
|
2489
|
+
</div>
|
2490
|
+
|
2491
|
+
<div class="method_details ">
|
2492
|
+
<h3 class="signature " id="go_to_presentation-class_method">
|
2493
|
+
|
2494
|
+
.<strong>go_to_presentation</strong> ⇒ <tt>Object</tt>
|
2495
|
+
|
2496
|
+
|
2497
|
+
|
2498
|
+
|
2499
|
+
|
2500
|
+
</h3><table class="source_code">
|
2501
|
+
<tr>
|
2502
|
+
<td>
|
2503
|
+
<pre class="lines">
|
2504
|
+
|
2505
|
+
|
2506
|
+
91
|
2507
|
+
92
|
2508
|
+
93
|
2509
|
+
94
|
2510
|
+
95
|
2511
|
+
96</pre>
|
2512
|
+
</td>
|
2513
|
+
<td>
|
2514
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 91</span>
|
2515
|
+
|
2516
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_go_to_presentation'>go_to_presentation</span>
|
2517
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Game stage 'presentation'</span><span class='tstring_end'>"</span></span>
|
2518
|
+
|
2519
|
+
<span class='id identifier rubyid_clear_state_elements'>clear_state_elements</span>
|
2520
|
+
<span class='ivar'>@presentation_proc</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
2521
|
+
<span class='kw'>end</span></pre>
|
2522
|
+
</td>
|
2523
|
+
</tr>
|
2524
|
+
</table>
|
2525
|
+
</div>
|
2526
|
+
|
2527
|
+
<div class="method_details ">
|
2528
|
+
<h3 class="signature " id="initialize-class_method">
|
2529
|
+
|
2530
|
+
.<strong>initialize</strong> ⇒ <tt>Object</tt>
|
2531
|
+
|
2532
|
+
|
2533
|
+
|
2534
|
+
|
2535
|
+
|
2536
|
+
</h3><div class="docstring">
|
2537
|
+
<div class="discussion">
|
2538
|
+
<p>rubocop:disable Metrics/MethodLength</p>
|
2539
|
+
|
2540
|
+
|
2541
|
+
</div>
|
2542
|
+
</div>
|
2543
|
+
<div class="tags">
|
2544
|
+
|
2545
|
+
|
2546
|
+
</div><table class="source_code">
|
2547
|
+
<tr>
|
2548
|
+
<td>
|
2549
|
+
<pre class="lines">
|
2550
|
+
|
2551
|
+
|
2552
|
+
25
|
2553
|
+
26
|
2554
|
+
27
|
2555
|
+
28
|
2556
|
+
29
|
2557
|
+
30
|
2558
|
+
31
|
2559
|
+
32
|
2560
|
+
33
|
2561
|
+
34
|
2562
|
+
35
|
2563
|
+
36
|
2564
|
+
37
|
2565
|
+
38
|
2566
|
+
39
|
2567
|
+
40
|
2568
|
+
41
|
2569
|
+
42
|
2570
|
+
43
|
2571
|
+
44
|
2572
|
+
45
|
2573
|
+
46
|
2574
|
+
47
|
2575
|
+
48
|
2576
|
+
49
|
2577
|
+
50
|
2578
|
+
51
|
2579
|
+
52
|
2580
|
+
53
|
2581
|
+
54
|
2582
|
+
55
|
2583
|
+
56</pre>
|
2584
|
+
</td>
|
2585
|
+
<td>
|
2586
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 25</span>
|
2587
|
+
|
2588
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
2589
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Global.initialize</span><span class='tstring_end'>"</span></span>
|
2590
|
+
<span class='ivar'>@actors</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2591
|
+
<span class='ivar'>@hud_texts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2592
|
+
<span class='ivar'>@hud_images</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2593
|
+
<span class='ivar'>@backgrounds</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2594
|
+
<span class='ivar'>@tile_maps</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2595
|
+
<span class='ivar'>@clocks</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2596
|
+
<span class='ivar'>@shapes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2597
|
+
<span class='ivar'>@last_frame_at</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
2598
|
+
<span class='ivar'>@debug</span> <span class='op'>=</span> <span class='kw'>false</span>
|
2599
|
+
|
2600
|
+
<span class='ivar'>@pixel_fonts</span> <span class='op'>=</span> <span class='id identifier rubyid_load_fonts'>load_fonts</span>
|
2601
|
+
|
2602
|
+
<span class='ivar'>@d_key_pressed</span> <span class='op'>=</span> <span class='kw'>false</span>
|
2603
|
+
<span class='ivar'>@references</span> <span class='op'>=</span> <span class='const'>OpenStruct</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
2604
|
+
<span class='ivar'>@game_state</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_presentation_proc'><span class='object_link'><a href="#presentation_proc-class_method" title="Global.presentation_proc (method)">presentation_proc</a></span></span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>game</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>presentation</span><span class='tstring_end'>"</span></span>
|
2605
|
+
<span class='ivar'>@scene_started_at</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
2606
|
+
<span class='ivar'>@background</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Color.html" title="Color (class)">Color</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Color.html#initialize-instance_method" title="Color#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>r:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='label'>g:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='label'>b:</span> <span class='int'>0</span><span class='rparen'>)</span>
|
2607
|
+
|
2608
|
+
<span class='kw'>if</span> <span class='ivar'>@presentation_proc</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2609
|
+
<span class='id identifier rubyid_on_presentation'><span class='object_link'><a href="top-level-namespace.html#on_presentation-instance_method" title="#on_presentation (method)">on_presentation</a></span></span> <span class='lbrace'>{</span> <span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default_on_presentation'><span class='object_link'><a href="#default_on_presentation-class_method" title="Global.default_on_presentation (method)">default_on_presentation</a></span></span> <span class='rbrace'>}</span>
|
2610
|
+
<span class='kw'>end</span>
|
2611
|
+
|
2612
|
+
<span class='kw'>if</span> <span class='ivar'>@game_proc</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2613
|
+
<span class='id identifier rubyid_on_game'><span class='object_link'><a href="top-level-namespace.html#on_game-instance_method" title="#on_game (method)">on_game</a></span></span> <span class='lbrace'>{</span> <span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default_on_game'><span class='object_link'><a href="#default_on_game-class_method" title="Global.default_on_game (method)">default_on_game</a></span></span> <span class='rbrace'>}</span>
|
2614
|
+
<span class='kw'>end</span>
|
2615
|
+
|
2616
|
+
<span class='kw'>if</span> <span class='ivar'>@end_proc</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2617
|
+
<span class='id identifier rubyid_on_end'><span class='object_link'><a href="top-level-namespace.html#on_end-instance_method" title="#on_end (method)">on_end</a></span></span> <span class='lbrace'>{</span> <span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default_on_end'><span class='object_link'><a href="#default_on_end-class_method" title="Global.default_on_end (method)">default_on_end</a></span></span> <span class='rbrace'>}</span>
|
2618
|
+
<span class='kw'>end</span>
|
2619
|
+
<span class='kw'>end</span></pre>
|
2620
|
+
</td>
|
2621
|
+
</tr>
|
2622
|
+
</table>
|
2623
|
+
</div>
|
2624
|
+
|
2625
|
+
<div class="method_details ">
|
2626
|
+
<h3 class="signature " id="mouse_position-class_method">
|
2627
|
+
|
2628
|
+
.<strong>mouse_position</strong> ⇒ <tt>Object</tt>
|
2629
|
+
|
2630
|
+
|
2631
|
+
|
2632
|
+
|
2633
|
+
|
2634
|
+
</h3><table class="source_code">
|
2635
|
+
<tr>
|
2636
|
+
<td>
|
2637
|
+
<pre class="lines">
|
2638
|
+
|
2639
|
+
|
2640
|
+
119
|
2641
|
+
120
|
2642
|
+
121</pre>
|
2643
|
+
</td>
|
2644
|
+
<td>
|
2645
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 119</span>
|
2646
|
+
|
2647
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mouse_position'>mouse_position</span>
|
2648
|
+
<span class='const'><span class='object_link'><a href="Coordinates.html" title="Coordinates (class)">Coordinates</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_game'><span class='object_link'><a href="#game-class_method" title="Global.game (method)">game</a></span></span><span class='period'>.</span><span class='id identifier rubyid_mouse_x'>mouse_x</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="Global (module)">Global</a></span></span><span class='period'>.</span><span class='id identifier rubyid_game'><span class='object_link'><a href="#game-class_method" title="Global.game (method)">game</a></span></span><span class='period'>.</span><span class='id identifier rubyid_mouse_y'>mouse_y</span><span class='rparen'>)</span>
|
2649
|
+
<span class='kw'>end</span></pre>
|
2650
|
+
</td>
|
2651
|
+
</tr>
|
2652
|
+
</table>
|
2653
|
+
</div>
|
2654
|
+
|
2655
|
+
<div class="method_details ">
|
2656
|
+
<h3 class="signature " id="seconds_in_scene-class_method">
|
2657
|
+
|
2658
|
+
.<strong>seconds_in_scene</strong> ⇒ <tt>Object</tt>
|
2659
|
+
|
2660
|
+
|
2661
|
+
|
2662
|
+
|
2663
|
+
|
2664
|
+
</h3><table class="source_code">
|
2665
|
+
<tr>
|
2666
|
+
<td>
|
2667
|
+
<pre class="lines">
|
2668
|
+
|
2669
|
+
|
2670
|
+
129
|
2671
|
+
130
|
2672
|
+
131</pre>
|
2673
|
+
</td>
|
2674
|
+
<td>
|
2675
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 129</span>
|
2676
|
+
|
2677
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_seconds_in_scene'>seconds_in_scene</span>
|
2678
|
+
<span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='ivar'>@scene_started_at</span>
|
2679
|
+
<span class='kw'>end</span></pre>
|
2680
|
+
</td>
|
2681
|
+
</tr>
|
2682
|
+
</table>
|
2683
|
+
</div>
|
2684
|
+
|
2685
|
+
<div class="method_details ">
|
2686
|
+
<h3 class="signature " id="setup-class_method">
|
2687
|
+
|
2688
|
+
.<strong>setup</strong> ⇒ <tt>Object</tt>
|
2689
|
+
|
2690
|
+
|
2691
|
+
|
2692
|
+
|
2693
|
+
|
2694
|
+
</h3><table class="source_code">
|
2695
|
+
<tr>
|
2696
|
+
<td>
|
2697
|
+
<pre class="lines">
|
2698
|
+
|
2699
|
+
|
2700
|
+
123
|
2701
|
+
124
|
2702
|
+
125
|
2703
|
+
126
|
2704
|
+
127</pre>
|
2705
|
+
</td>
|
2706
|
+
<td>
|
2707
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 123</span>
|
2708
|
+
|
2709
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
|
2710
|
+
<span class='const'><span class='object_link'><a href="Sound.html" title="Sound (module)">Sound</a></span></span><span class='period'>.</span><span class='id identifier rubyid_preload_sounds'><span class='object_link'><a href="Sound.html#preload_sounds-class_method" title="Sound.preload_sounds (method)">preload_sounds</a></span></span>
|
2711
|
+
<span class='const'><span class='object_link'><a href="Image.html" title="Image (class)">Image</a></span></span><span class='period'>.</span><span class='id identifier rubyid_preload_images'><span class='object_link'><a href="Image.html#preload_images-class_method" title="Image.preload_images (method)">preload_images</a></span></span>
|
2712
|
+
<span class='const'><span class='object_link'><a href="Music.html" title="Music (module)">Music</a></span></span><span class='period'>.</span><span class='id identifier rubyid_preload_musics'><span class='object_link'><a href="Music.html#preload_musics-class_method" title="Music.preload_musics (method)">preload_musics</a></span></span>
|
2713
|
+
<span class='kw'>end</span></pre>
|
2714
|
+
</td>
|
2715
|
+
</tr>
|
2716
|
+
</table>
|
2717
|
+
</div>
|
2718
|
+
|
2719
|
+
<div class="method_details ">
|
2720
|
+
<h3 class="signature " id="update-class_method">
|
2721
|
+
|
2722
|
+
.<strong>update</strong> ⇒ <tt>Object</tt>
|
2723
|
+
|
2724
|
+
|
2725
|
+
|
2726
|
+
|
2727
|
+
|
2728
|
+
</h3><div class="docstring">
|
2729
|
+
<div class="discussion">
|
2730
|
+
<p>rubocop:disable Style/GuardClause</p>
|
2731
|
+
|
2732
|
+
|
2733
|
+
</div>
|
2734
|
+
</div>
|
2735
|
+
<div class="tags">
|
2736
|
+
|
2737
|
+
|
2738
|
+
</div><table class="source_code">
|
2739
|
+
<tr>
|
2740
|
+
<td>
|
2741
|
+
<pre class="lines">
|
2742
|
+
|
2743
|
+
|
2744
|
+
60
|
2745
|
+
61
|
2746
|
+
62
|
2747
|
+
63
|
2748
|
+
64
|
2749
|
+
65
|
2750
|
+
66
|
2751
|
+
67
|
2752
|
+
68
|
2753
|
+
69
|
2754
|
+
70
|
2755
|
+
71
|
2756
|
+
72</pre>
|
2757
|
+
</td>
|
2758
|
+
<td>
|
2759
|
+
<pre class="code"><span class="info file"># File 'lib/fantasy/global.rb', line 60</span>
|
2760
|
+
|
2761
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span>
|
2762
|
+
<span class='ivar'>@frame_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='ivar'>@last_frame_at</span>
|
2763
|
+
<span class='ivar'>@last_frame_at</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
2764
|
+
|
2765
|
+
<span class='kw'>if</span> <span class='const'>Gosu</span><span class='period'>.</span><span class='id identifier rubyid_button_down?'>button_down?</span><span class='lparen'>(</span><span class='const'>Gosu</span><span class='op'>::</span><span class='const'>KB_D</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='op'>!</span><span class='ivar'>@d_key_pressed</span>
|
2766
|
+
<span class='ivar'>@debug</span> <span class='op'>=</span> <span class='op'>!</span><span class='ivar'>@debug</span>
|
2767
|
+
<span class='ivar'>@d_key_pressed</span> <span class='op'>=</span> <span class='kw'>true</span>
|
2768
|
+
<span class='kw'>end</span>
|
2769
|
+
|
2770
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='const'>Gosu</span><span class='period'>.</span><span class='id identifier rubyid_button_down?'>button_down?</span><span class='lparen'>(</span><span class='const'>Gosu</span><span class='op'>::</span><span class='const'>KB_D</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='ivar'>@d_key_pressed</span>
|
2771
|
+
<span class='ivar'>@d_key_pressed</span> <span class='op'>=</span> <span class='kw'>false</span>
|
2772
|
+
<span class='kw'>end</span>
|
2773
|
+
<span class='kw'>end</span></pre>
|
2774
|
+
</td>
|
2775
|
+
</tr>
|
2776
|
+
</table>
|
2777
|
+
</div>
|
2778
|
+
|
2779
|
+
</div>
|
2780
|
+
|
2781
|
+
</div>
|
2782
|
+
|
2783
|
+
<div id="footer">
|
2784
|
+
Generated on Sat Apr 2 14:24:12 2022 by
|
2785
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2786
|
+
0.9.27 (ruby-3.0.2).
|
2787
|
+
</div>
|
2788
|
+
|
2789
|
+
</div>
|
2790
|
+
</body>
|
2791
|
+
</html>
|