motion-game 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/build/android/armeabi/libchipmunk.a +0 -0
  3. data/build/android/armeabi/libcrypto.a +0 -0
  4. data/build/android/armeabi/libcurl.a +0 -0
  5. data/build/android/armeabi/libfreetype.a +0 -0
  6. data/build/android/armeabi/libjpeg.a +0 -0
  7. data/build/android/armeabi/libmotion-cocos.a +0 -0
  8. data/build/android/armeabi/libpng.a +0 -0
  9. data/build/android/armeabi/libssl.a +0 -0
  10. data/build/android/armeabi/libtiff.a +0 -0
  11. data/build/android/armeabi/libwebp.a +0 -0
  12. data/build/android/armeabi/libwebsockets.a +0 -0
  13. data/build/android/motion-cocos.jar +0 -0
  14. data/build/android/x86/libchipmunk.a +0 -0
  15. data/build/android/x86/libcrypto.a +0 -0
  16. data/build/android/x86/libcurl.a +0 -0
  17. data/build/android/x86/libfreetype.a +0 -0
  18. data/build/android/x86/libjpeg.a +0 -0
  19. data/build/android/x86/libmotion-cocos.a +0 -0
  20. data/build/android/x86/libpng.a +0 -0
  21. data/build/android/x86/libssl.a +0 -0
  22. data/build/android/x86/libtiff.a +0 -0
  23. data/build/android/x86/libwebp.a +0 -0
  24. data/build/android/x86/libwebsockets.a +0 -0
  25. data/build/ios/libchipmunk.a +0 -0
  26. data/build/ios/libcurl.a +0 -0
  27. data/build/ios/libfreetype.a +0 -0
  28. data/build/ios/libjpeg.a +0 -0
  29. data/build/ios/libmotion-cocos.a +0 -0
  30. data/build/ios/libpng.a +0 -0
  31. data/build/ios/libtiff.a +0 -0
  32. data/build/ios/libwebp.a +0 -0
  33. data/build/ios/libwebsockets.a +0 -0
  34. data/doc/MG.html +129 -0
  35. data/doc/MG/Application.html +332 -0
  36. data/doc/MG/Audio.html +1049 -0
  37. data/doc/MG/Button.html +722 -0
  38. data/doc/MG/Color.html +528 -0
  39. data/doc/MG/Director.html +1140 -0
  40. data/doc/MG/Draw.html +437 -0
  41. data/doc/MG/Events.html +127 -0
  42. data/doc/MG/Events/Acceleration.html +502 -0
  43. data/doc/MG/Events/Touch.html +232 -0
  44. data/doc/MG/Layout.html +513 -0
  45. data/doc/MG/List.html +1050 -0
  46. data/doc/MG/Node.html +1752 -0
  47. data/doc/MG/Parallax.html +294 -0
  48. data/doc/MG/Particle.html +1221 -0
  49. data/doc/MG/Point.html +540 -0
  50. data/doc/MG/Scene.html +1250 -0
  51. data/doc/MG/Scroll.html +530 -0
  52. data/doc/MG/Size.html +737 -0
  53. data/doc/MG/Slider.html +335 -0
  54. data/doc/MG/Sprite.html +2066 -0
  55. data/doc/MG/Text.html +918 -0
  56. data/doc/MG/Web.html +828 -0
  57. data/doc/MG/Widget.html +460 -0
  58. data/doc/_index.html +362 -0
  59. data/doc/class_list.html +58 -0
  60. data/doc/css/common.css +1 -0
  61. data/doc/css/full_list.css +57 -0
  62. data/doc/css/style.css +339 -0
  63. data/doc/file.README.html +114 -0
  64. data/doc/file_list.html +60 -0
  65. data/doc/frames.html +26 -0
  66. data/doc/index.html +114 -0
  67. data/doc/js/app.js +219 -0
  68. data/doc/js/full_list.js +181 -0
  69. data/doc/js/jquery.js +4 -0
  70. data/doc/method_list.html +933 -0
  71. data/doc/top-level-namespace.html +112 -0
  72. data/lib/motion-game.rb +1 -0
  73. data/lib/motion-game/android.rb +23 -0
  74. data/lib/motion-game/android/main_activity.rb +2 -0
  75. data/lib/motion-game/ios.rb +14 -0
  76. data/lib/motion-game/ios/app_delegate.rb +20 -0
  77. data/lib/motion-game/ios/root_view_controller.rb +14 -0
  78. data/lib/motion-game/project.rb +1 -0
  79. data/lib/motion-game/shortcuts.rb +177 -0
  80. data/template/motion-game/files/Gemfile +5 -0
  81. data/template/motion-game/files/Rakefile +12 -0
  82. data/template/motion-game/files/app/application.rb +5 -0
  83. data/template/motion-game/files/app/main_scene.rb +7 -0
  84. data/template/motion-game/files/config/android.rb.erb +6 -0
  85. data/template/motion-game/files/config/ios.rb.erb +6 -0
  86. metadata +130 -0
@@ -0,0 +1,1140 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: MG::Director
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
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
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!MG/Director.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (D)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
36
+ &raquo;
37
+ <span class="title">Director</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: MG::Director
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">MG::Director</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">motion-game</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Director is a shared object that takes care of the scene graph.</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div>
114
+
115
+
116
+
117
+ <h2>Properties <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#origin-instance_method" title="#origin (instance method)">- (Point) <strong>origin</strong> </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+ <span class="note title readonly">readonly</span>
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>The visible origin of the director view in points.</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#show_stats%3F-instance_method" title="#show_stats? (instance method)">- (Boolean) <strong>show_stats?</strong> </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'>
170
+ <p>Controls whether the FPS (frame-per-second) statistic label is displayed in
171
+ the bottom-left corner of the director view.</p>
172
+ </div></span>
173
+
174
+ </li>
175
+
176
+
177
+ <li class="public ">
178
+ <span class="summary_signature">
179
+
180
+ <a href="#size-instance_method" title="#size (instance method)">- (Size) <strong>size</strong> </a>
181
+
182
+
183
+
184
+ </span>
185
+
186
+
187
+
188
+
189
+ <span class="note title readonly">readonly</span>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+ <span class="summary_desc"><div class='inline'>
200
+ <p>The visible size of the director view in points.</p>
201
+ </div></span>
202
+
203
+ </li>
204
+
205
+
206
+ </ul>
207
+
208
+
209
+
210
+
211
+
212
+ <h2>
213
+ Constructors
214
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
215
+ </h2>
216
+
217
+ <ul class="summary">
218
+
219
+ <li class="public ">
220
+ <span class="summary_signature">
221
+
222
+ <a href="#shared-class_method" title="shared (class method)">+ (Director) <strong>shared</strong> </a>
223
+
224
+
225
+
226
+ </span>
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+ <span class="summary_desc"><div class='inline'>
237
+ <p>The shared Director instance.</p>
238
+ </div></span>
239
+
240
+ </li>
241
+
242
+
243
+ </ul>
244
+
245
+ <h2>
246
+ Managing Scenes
247
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
248
+ </h2>
249
+
250
+ <ul class="summary">
251
+
252
+ <li class="public ">
253
+ <span class="summary_signature">
254
+
255
+ <a href="#end-instance_method" title="#end (instance method)">- (Director) <strong>end</strong> </a>
256
+
257
+
258
+
259
+ </span>
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+ <span class="summary_desc"><div class='inline'>
270
+ <p>Ends the execution of the running scene.</p>
271
+ </div></span>
272
+
273
+ </li>
274
+
275
+
276
+ <li class="public ">
277
+ <span class="summary_signature">
278
+
279
+ <a href="#pause-instance_method" title="#pause (instance method)">- (Director) <strong>pause</strong> </a>
280
+
281
+
282
+
283
+ </span>
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+ <span class="summary_desc"><div class='inline'>
294
+ <p>Pauses the execution of the running scene.</p>
295
+ </div></span>
296
+
297
+ </li>
298
+
299
+
300
+ <li class="public ">
301
+ <span class="summary_signature">
302
+
303
+ <a href="#pop-instance_method" title="#pop (instance method)">- (Director) <strong>pop</strong> </a>
304
+
305
+
306
+
307
+ </span>
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+ <span class="summary_desc"><div class='inline'>
318
+ <p>Pops the running scene from the stack, and starts running the previous
319
+ scene.</p>
320
+ </div></span>
321
+
322
+ </li>
323
+
324
+
325
+ <li class="public ">
326
+ <span class="summary_signature">
327
+
328
+ <a href="#push-instance_method" title="#push (instance method)">- (Director) <strong>push</strong>(scene) </a>
329
+
330
+
331
+
332
+ </span>
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+ <span class="summary_desc"><div class='inline'>
343
+ <p>Suspends the execution of the running scene, and starts running the given
344
+ scene instead.</p>
345
+ </div></span>
346
+
347
+ </li>
348
+
349
+
350
+ <li class="public ">
351
+ <span class="summary_signature">
352
+
353
+ <a href="#replace-instance_method" title="#replace (instance method)">- (Director) <strong>replace</strong>(scene) </a>
354
+
355
+
356
+
357
+ </span>
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+ <span class="summary_desc"><div class='inline'>
368
+ <p>Replaces the current scene with a new one.</p>
369
+ </div></span>
370
+
371
+ </li>
372
+
373
+
374
+ <li class="public ">
375
+ <span class="summary_signature">
376
+
377
+ <a href="#resume-instance_method" title="#resume (instance method)">- (Director) <strong>resume</strong> </a>
378
+
379
+
380
+
381
+ </span>
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+ <span class="summary_desc"><div class='inline'>
392
+ <p>Resumes the execution of the current paused scene.</p>
393
+ </div></span>
394
+
395
+ </li>
396
+
397
+
398
+ <li class="public ">
399
+ <span class="summary_signature">
400
+
401
+ <a href="#run-instance_method" title="#run (instance method)">- (Director) <strong>run</strong>(scene) </a>
402
+
403
+
404
+
405
+ </span>
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+ <span class="summary_desc"><div class='inline'>
416
+ <p>Runs the given scene object.</p>
417
+ </div></span>
418
+
419
+ </li>
420
+
421
+
422
+ </ul>
423
+
424
+
425
+
426
+ <div id="instance_attr_details" class="attr_details">
427
+ <h2>Instance Attribute Details</h2>
428
+
429
+
430
+ <span id=""></span>
431
+ <div class="method_details first">
432
+ <h3 class="signature first" id="origin-instance_method">
433
+
434
+ - (<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>) <strong>origin</strong> <span class="extras">(readonly)</span>
435
+
436
+
437
+
438
+
439
+
440
+ </h3><div class="docstring">
441
+ <div class="discussion">
442
+
443
+ <p>Returns the visible origin of the director view in points.</p>
444
+
445
+
446
+ </div>
447
+ </div>
448
+ <div class="tags">
449
+
450
+ <p class="tag_title">Returns:</p>
451
+ <ul class="return">
452
+
453
+ <li>
454
+
455
+
456
+ <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
457
+
458
+
459
+
460
+ &mdash;
461
+ <div class='inline'>
462
+ <p>the visible origin of the director view in points.</p>
463
+ </div>
464
+
465
+ </li>
466
+
467
+ </ul>
468
+
469
+ </div><table class="source_code">
470
+ <tr>
471
+ <td>
472
+ <pre class="lines">
473
+
474
+
475
+ 130
476
+ 131
477
+ 132</pre>
478
+ </td>
479
+ <td>
480
+ <pre class="code"><span class="info file"># File 'motion-game', line 130</span>
481
+
482
+ <span class='kw'>def</span> <span class='id identifier rubyid_origin'>origin</span>
483
+ <span class='ivar'>@origin</span>
484
+ <span class='kw'>end</span></pre>
485
+ </td>
486
+ </tr>
487
+ </table>
488
+ </div>
489
+
490
+
491
+ <span id="show_stats?=-instance_method"></span>
492
+ <div class="method_details ">
493
+ <h3 class="signature " id="show_stats?-instance_method">
494
+
495
+ - (<tt>Boolean</tt>) <strong>show_stats?</strong>
496
+
497
+
498
+
499
+
500
+
501
+ </h3><div class="docstring">
502
+ <div class="discussion">
503
+
504
+ <p>Controls whether the FPS (frame-per-second) statistic label is displayed in
505
+ the bottom-left corner of the director view. By default it is hidden.</p>
506
+
507
+
508
+ </div>
509
+ </div>
510
+ <div class="tags">
511
+
512
+ <p class="tag_title">Returns:</p>
513
+ <ul class="return">
514
+
515
+ <li>
516
+
517
+
518
+ <span class='type'>(<tt>Boolean</tt>)</span>
519
+
520
+
521
+
522
+ &mdash;
523
+ <div class='inline'>
524
+ <p>whether the FPS label is displayed.</p>
525
+ </div>
526
+
527
+ </li>
528
+
529
+ </ul>
530
+
531
+ </div><table class="source_code">
532
+ <tr>
533
+ <td>
534
+ <pre class="lines">
535
+
536
+
537
+ 138
538
+ 139
539
+ 140</pre>
540
+ </td>
541
+ <td>
542
+ <pre class="code"><span class="info file"># File 'motion-game', line 138</span>
543
+
544
+ def show_stats?
545
+ @show_stats?
546
+ end</pre>
547
+ </td>
548
+ </tr>
549
+ </table>
550
+ </div>
551
+
552
+
553
+ <span id=""></span>
554
+ <div class="method_details ">
555
+ <h3 class="signature " id="size-instance_method">
556
+
557
+ - (<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>) <strong>size</strong> <span class="extras">(readonly)</span>
558
+
559
+
560
+
561
+
562
+
563
+ </h3><div class="docstring">
564
+ <div class="discussion">
565
+
566
+ <p>Returns the visible size of the director view in points.</p>
567
+
568
+
569
+ </div>
570
+ </div>
571
+ <div class="tags">
572
+
573
+ <p class="tag_title">Returns:</p>
574
+ <ul class="return">
575
+
576
+ <li>
577
+
578
+
579
+ <span class='type'>(<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>)</span>
580
+
581
+
582
+
583
+ &mdash;
584
+ <div class='inline'>
585
+ <p>the visible size of the director view in points.</p>
586
+ </div>
587
+
588
+ </li>
589
+
590
+ </ul>
591
+
592
+ </div><table class="source_code">
593
+ <tr>
594
+ <td>
595
+ <pre class="lines">
596
+
597
+
598
+ 133
599
+ 134
600
+ 135</pre>
601
+ </td>
602
+ <td>
603
+ <pre class="code"><span class="info file"># File 'motion-game', line 133</span>
604
+
605
+ <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
606
+ <span class='ivar'>@size</span>
607
+ <span class='kw'>end</span></pre>
608
+ </td>
609
+ </tr>
610
+ </table>
611
+ </div>
612
+
613
+ </div>
614
+
615
+
616
+ <div id="class_method_details" class="method_details_list">
617
+ <h2>Class Method Details</h2>
618
+
619
+
620
+ <div class="method_details first">
621
+ <h3 class="signature first" id="shared-class_method">
622
+
623
+ + (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>shared</strong>
624
+
625
+
626
+
627
+
628
+
629
+ </h3><div class="docstring">
630
+ <div class="discussion">
631
+
632
+ <p>Returns the shared Director instance.</p>
633
+
634
+
635
+ </div>
636
+ </div>
637
+ <div class="tags">
638
+
639
+ <p class="tag_title">Returns:</p>
640
+ <ul class="return">
641
+
642
+ <li>
643
+
644
+
645
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
646
+
647
+
648
+
649
+ &mdash;
650
+ <div class='inline'>
651
+ <p>the shared Director instance.</p>
652
+ </div>
653
+
654
+ </li>
655
+
656
+ </ul>
657
+
658
+ </div><table class="source_code">
659
+ <tr>
660
+ <td>
661
+ <pre class="lines">
662
+
663
+
664
+ 87</pre>
665
+ </td>
666
+ <td>
667
+ <pre class="code"><span class="info file"># File 'motion-game', line 87</span>
668
+
669
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_shared'>shared</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
670
+ </td>
671
+ </tr>
672
+ </table>
673
+ </div>
674
+
675
+ </div>
676
+
677
+ <div id="instance_method_details" class="method_details_list">
678
+ <h2>Instance Method Details</h2>
679
+
680
+
681
+ <div class="method_details first">
682
+ <h3 class="signature first" id="end-instance_method">
683
+
684
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>end</strong>
685
+
686
+
687
+
688
+
689
+
690
+ </h3><div class="docstring">
691
+ <div class="discussion">
692
+
693
+ <p>Ends the execution of the running scene.</p>
694
+
695
+
696
+ </div>
697
+ </div>
698
+ <div class="tags">
699
+
700
+ <p class="tag_title">Returns:</p>
701
+ <ul class="return">
702
+
703
+ <li>
704
+
705
+
706
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
707
+
708
+
709
+
710
+ &mdash;
711
+ <div class='inline'>
712
+ <p>the receiver.</p>
713
+ </div>
714
+
715
+ </li>
716
+
717
+ </ul>
718
+
719
+ </div><table class="source_code">
720
+ <tr>
721
+ <td>
722
+ <pre class="lines">
723
+
724
+
725
+ 116</pre>
726
+ </td>
727
+ <td>
728
+ <pre class="code"><span class="info file"># File 'motion-game', line 116</span>
729
+
730
+ <span class='kw'>def</span> <span class='kw'>end</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
731
+ </td>
732
+ </tr>
733
+ </table>
734
+ </div>
735
+
736
+ <div class="method_details ">
737
+ <h3 class="signature " id="pause-instance_method">
738
+
739
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>pause</strong>
740
+
741
+
742
+
743
+
744
+
745
+ </h3><div class="docstring">
746
+ <div class="discussion">
747
+
748
+ <p>Pauses the execution of the running scene.</p>
749
+
750
+
751
+ </div>
752
+ </div>
753
+ <div class="tags">
754
+
755
+ <p class="tag_title">Returns:</p>
756
+ <ul class="return">
757
+
758
+ <li>
759
+
760
+
761
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
762
+
763
+
764
+
765
+ &mdash;
766
+ <div class='inline'>
767
+ <p>the receiver.</p>
768
+ </div>
769
+
770
+ </li>
771
+
772
+ </ul>
773
+
774
+ </div><table class="source_code">
775
+ <tr>
776
+ <td>
777
+ <pre class="lines">
778
+
779
+
780
+ 120</pre>
781
+ </td>
782
+ <td>
783
+ <pre class="code"><span class="info file"># File 'motion-game', line 120</span>
784
+
785
+ <span class='kw'>def</span> <span class='id identifier rubyid_pause'>pause</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
786
+ </td>
787
+ </tr>
788
+ </table>
789
+ </div>
790
+
791
+ <div class="method_details ">
792
+ <h3 class="signature " id="pop-instance_method">
793
+
794
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>pop</strong>
795
+
796
+
797
+
798
+
799
+
800
+ </h3><div class="docstring">
801
+ <div class="discussion">
802
+
803
+ <p>Pops the running scene from the stack, and starts running the previous
804
+ scene. If there are no more scenes to run, the execution will be stopped.</p>
805
+
806
+
807
+ </div>
808
+ </div>
809
+ <div class="tags">
810
+
811
+ <p class="tag_title">Returns:</p>
812
+ <ul class="return">
813
+
814
+ <li>
815
+
816
+
817
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
818
+
819
+
820
+
821
+ &mdash;
822
+ <div class='inline'>
823
+ <p>the receiver.</p>
824
+ </div>
825
+
826
+ </li>
827
+
828
+ </ul>
829
+
830
+ </div><table class="source_code">
831
+ <tr>
832
+ <td>
833
+ <pre class="lines">
834
+
835
+
836
+ 112</pre>
837
+ </td>
838
+ <td>
839
+ <pre class="code"><span class="info file"># File 'motion-game', line 112</span>
840
+
841
+ <span class='kw'>def</span> <span class='id identifier rubyid_pop'>pop</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
842
+ </td>
843
+ </tr>
844
+ </table>
845
+ </div>
846
+
847
+ <div class="method_details ">
848
+ <h3 class="signature " id="push-instance_method">
849
+
850
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>push</strong>(scene)
851
+
852
+
853
+
854
+
855
+
856
+ </h3><div class="docstring">
857
+ <div class="discussion">
858
+
859
+ <p>Suspends the execution of the running scene, and starts running the given
860
+ scene instead.</p>
861
+
862
+
863
+ </div>
864
+ </div>
865
+ <div class="tags">
866
+ <p class="tag_title">Parameters:</p>
867
+ <ul class="param">
868
+
869
+ <li>
870
+
871
+ <span class='name'>scene</span>
872
+
873
+
874
+ <span class='type'>(<tt><span class='object_link'><a href="Scene.html" title="MG::Scene (class)">Scene</a></span></tt>)</span>
875
+
876
+
877
+
878
+ &mdash;
879
+ <div class='inline'>
880
+ <p>the new scene to run.</p>
881
+ </div>
882
+
883
+ </li>
884
+
885
+ </ul>
886
+
887
+ <p class="tag_title">Returns:</p>
888
+ <ul class="return">
889
+
890
+ <li>
891
+
892
+
893
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
894
+
895
+
896
+
897
+ &mdash;
898
+ <div class='inline'>
899
+ <p>the receiver.</p>
900
+ </div>
901
+
902
+ </li>
903
+
904
+ </ul>
905
+
906
+ </div><table class="source_code">
907
+ <tr>
908
+ <td>
909
+ <pre class="lines">
910
+
911
+
912
+ 107</pre>
913
+ </td>
914
+ <td>
915
+ <pre class="code"><span class="info file"># File 'motion-game', line 107</span>
916
+
917
+ <span class='kw'>def</span> <span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_scene'>scene</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
918
+ </td>
919
+ </tr>
920
+ </table>
921
+ </div>
922
+
923
+ <div class="method_details ">
924
+ <h3 class="signature " id="replace-instance_method">
925
+
926
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>replace</strong>(scene)
927
+
928
+
929
+
930
+
931
+
932
+ </h3><div class="docstring">
933
+ <div class="discussion">
934
+
935
+ <p>Replaces the current scene with a new one. The running scene will be
936
+ terminated.</p>
937
+
938
+
939
+ </div>
940
+ </div>
941
+ <div class="tags">
942
+ <p class="tag_title">Parameters:</p>
943
+ <ul class="param">
944
+
945
+ <li>
946
+
947
+ <span class='name'>scene</span>
948
+
949
+
950
+ <span class='type'>(<tt><span class='object_link'><a href="Scene.html" title="MG::Scene (class)">Scene</a></span></tt>)</span>
951
+
952
+
953
+
954
+ &mdash;
955
+ <div class='inline'>
956
+ <p>the scene to replace the current one with.</p>
957
+ </div>
958
+
959
+ </li>
960
+
961
+ </ul>
962
+
963
+ <p class="tag_title">Returns:</p>
964
+ <ul class="return">
965
+
966
+ <li>
967
+
968
+
969
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
970
+
971
+
972
+
973
+ &mdash;
974
+ <div class='inline'>
975
+ <p>the receiver.</p>
976
+ </div>
977
+
978
+ </li>
979
+
980
+ </ul>
981
+
982
+ </div><table class="source_code">
983
+ <tr>
984
+ <td>
985
+ <pre class="lines">
986
+
987
+
988
+ 101</pre>
989
+ </td>
990
+ <td>
991
+ <pre class="code"><span class="info file"># File 'motion-game', line 101</span>
992
+
993
+ <span class='kw'>def</span> <span class='id identifier rubyid_replace'>replace</span><span class='lparen'>(</span><span class='id identifier rubyid_scene'>scene</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
994
+ </td>
995
+ </tr>
996
+ </table>
997
+ </div>
998
+
999
+ <div class="method_details ">
1000
+ <h3 class="signature " id="resume-instance_method">
1001
+
1002
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>resume</strong>
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+ </h3><div class="docstring">
1009
+ <div class="discussion">
1010
+
1011
+ <p>Resumes the execution of the current paused scene.</p>
1012
+
1013
+
1014
+ </div>
1015
+ </div>
1016
+ <div class="tags">
1017
+
1018
+ <p class="tag_title">Returns:</p>
1019
+ <ul class="return">
1020
+
1021
+ <li>
1022
+
1023
+
1024
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
1025
+
1026
+
1027
+
1028
+ &mdash;
1029
+ <div class='inline'>
1030
+ <p>the receiver.</p>
1031
+ </div>
1032
+
1033
+ </li>
1034
+
1035
+ </ul>
1036
+
1037
+ </div><table class="source_code">
1038
+ <tr>
1039
+ <td>
1040
+ <pre class="lines">
1041
+
1042
+
1043
+ 124</pre>
1044
+ </td>
1045
+ <td>
1046
+ <pre class="code"><span class="info file"># File 'motion-game', line 124</span>
1047
+
1048
+ <span class='kw'>def</span> <span class='id identifier rubyid_resume'>resume</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1049
+ </td>
1050
+ </tr>
1051
+ </table>
1052
+ </div>
1053
+
1054
+ <div class="method_details ">
1055
+ <h3 class="signature " id="run-instance_method">
1056
+
1057
+ - (<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>) <strong>run</strong>(scene)
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+ </h3><div class="docstring">
1064
+ <div class="discussion">
1065
+
1066
+ <p>Runs the given scene object.</p>
1067
+
1068
+
1069
+ </div>
1070
+ </div>
1071
+ <div class="tags">
1072
+ <p class="tag_title">Parameters:</p>
1073
+ <ul class="param">
1074
+
1075
+ <li>
1076
+
1077
+ <span class='name'>scene</span>
1078
+
1079
+
1080
+ <span class='type'>(<tt><span class='object_link'><a href="Scene.html" title="MG::Scene (class)">Scene</a></span></tt>)</span>
1081
+
1082
+
1083
+
1084
+ &mdash;
1085
+ <div class='inline'>
1086
+ <p>the scene to run.</p>
1087
+ </div>
1088
+
1089
+ </li>
1090
+
1091
+ </ul>
1092
+
1093
+ <p class="tag_title">Returns:</p>
1094
+ <ul class="return">
1095
+
1096
+ <li>
1097
+
1098
+
1099
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Director (class)">Director</a></span></tt>)</span>
1100
+
1101
+
1102
+
1103
+ &mdash;
1104
+ <div class='inline'>
1105
+ <p>the receiver.</p>
1106
+ </div>
1107
+
1108
+ </li>
1109
+
1110
+ </ul>
1111
+
1112
+ </div><table class="source_code">
1113
+ <tr>
1114
+ <td>
1115
+ <pre class="lines">
1116
+
1117
+
1118
+ 95</pre>
1119
+ </td>
1120
+ <td>
1121
+ <pre class="code"><span class="info file"># File 'motion-game', line 95</span>
1122
+
1123
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_scene'>scene</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1124
+ </td>
1125
+ </tr>
1126
+ </table>
1127
+ </div>
1128
+
1129
+ </div>
1130
+
1131
+ </div>
1132
+
1133
+ <div id="footer">
1134
+ Generated on Thu Sep 3 15:12:07 2015 by
1135
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1136
+ 0.8.7.6 (ruby-2.0.0).
1137
+ </div>
1138
+
1139
+ </body>
1140
+ </html>