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,1752 @@
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::Node
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/Node.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 (N)</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">Node</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::Node
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::Node</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>Node is the base class of objects in the scene graph. You should not
106
+ instantiate this class directly but use a subclass instead.</p>
107
+
108
+
109
+ </div>
110
+ </div>
111
+ <div class="tags">
112
+
113
+
114
+ </div><div id="subclasses">
115
+ <h2>Direct Known Subclasses</h2>
116
+ <p class="children"><span class='object_link'><a href="Draw.html" title="MG::Draw (class)">Draw</a></span>, <span class='object_link'><a href="Parallax.html" title="MG::Parallax (class)">Parallax</a></span>, <span class='object_link'><a href="Particle.html" title="MG::Particle (class)">Particle</a></span>, <span class='object_link'><a href="Scene.html" title="MG::Scene (class)">Scene</a></span>, <span class='object_link'><a href="Sprite.html" title="MG::Sprite (class)">Sprite</a></span>, <span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></p>
117
+ </div>
118
+
119
+
120
+
121
+
122
+ <h2>Properties <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
123
+ <ul class="summary">
124
+
125
+ <li class="public ">
126
+ <span class="summary_signature">
127
+
128
+ <a href="#alpha-instance_method" title="#alpha (instance method)">- (Float) <strong>alpha</strong> </a>
129
+
130
+
131
+
132
+ </span>
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'>
146
+ <p>The opacity (alpha) level of the node, as a Float from the <code>0.0</code>
147
+ to <code>1.0</code> range.</p>
148
+ </div></span>
149
+
150
+ </li>
151
+
152
+
153
+ <li class="public ">
154
+ <span class="summary_signature">
155
+
156
+ <a href="#anchor_point-instance_method" title="#anchor_point (instance method)">- (Point) <strong>anchor_point</strong> </a>
157
+
158
+
159
+
160
+ </span>
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <span class="summary_desc"><div class='inline'>
174
+ <p>The anchor point of the node, as a set of percentage coordinates.</p>
175
+ </div></span>
176
+
177
+ </li>
178
+
179
+
180
+ <li class="public ">
181
+ <span class="summary_signature">
182
+
183
+ <a href="#color-instance_method" title="#color (instance method)">- (Color) <strong>color</strong> </a>
184
+
185
+
186
+
187
+ </span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>The color of the node.</p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="public ">
208
+ <span class="summary_signature">
209
+
210
+ <a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
211
+
212
+
213
+
214
+ </span>
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+ <span class="summary_desc"><div class='inline'>
228
+ <p>A name to easily identify the node in the graph.</p>
229
+ </div></span>
230
+
231
+ </li>
232
+
233
+
234
+ <li class="public ">
235
+ <span class="summary_signature">
236
+
237
+ <a href="#position-instance_method" title="#position (instance method)">- (Point) <strong>position</strong> </a>
238
+
239
+
240
+
241
+ </span>
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+ <span class="summary_desc"><div class='inline'>
255
+ <p>The <tt>[x, y]</tt> position of the node in its parent&#39;s coordinate system.</p>
256
+ </div></span>
257
+
258
+ </li>
259
+
260
+
261
+ <li class="public ">
262
+ <span class="summary_signature">
263
+
264
+ <a href="#rotation-instance_method" title="#rotation (instance method)">- (Float) <strong>rotation</strong> </a>
265
+
266
+
267
+
268
+ </span>
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <span class="summary_desc"><div class='inline'>
282
+ <p>Returns the rotation of the node in degrees.</p>
283
+ </div></span>
284
+
285
+ </li>
286
+
287
+
288
+ <li class="public ">
289
+ <span class="summary_signature">
290
+
291
+ <a href="#scale-instance_method" title="#scale (instance method)">- (Float) <strong>scale</strong> </a>
292
+
293
+
294
+
295
+ </span>
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+ <span class="summary_desc"><div class='inline'>
309
+ <p>Returns the scaling factor of the node, which multiplies its width, height
310
+ and depth.</p>
311
+ </div></span>
312
+
313
+ </li>
314
+
315
+
316
+ <li class="public ">
317
+ <span class="summary_signature">
318
+
319
+ <a href="#size-instance_method" title="#size (instance method)">- (Size) <strong>size</strong> </a>
320
+
321
+
322
+
323
+ </span>
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+ <span class="summary_desc"><div class='inline'>
337
+ <p>The content size of the node.</p>
338
+ </div></span>
339
+
340
+ </li>
341
+
342
+
343
+ <li class="public ">
344
+ <span class="summary_signature">
345
+
346
+ <a href="#visible%3F-instance_method" title="#visible? (instance method)">- (Boolean) <strong>visible?</strong> </a>
347
+
348
+
349
+
350
+ </span>
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+ <span class="summary_desc"><div class='inline'>
364
+ <p>Whether the node should be visible.</p>
365
+ </div></span>
366
+
367
+ </li>
368
+
369
+
370
+ <li class="public ">
371
+ <span class="summary_signature">
372
+
373
+ <a href="#z_index-instance_method" title="#z_index (instance method)">- (Integer) <strong>z_index</strong> </a>
374
+
375
+
376
+
377
+ </span>
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+ <span class="summary_desc"><div class='inline'>
391
+ <p>The local z-order index of the receiver in the scene graph, which will
392
+ determine its priority when rendering the scene.</p>
393
+ </div></span>
394
+
395
+ </li>
396
+
397
+
398
+ </ul>
399
+
400
+
401
+
402
+
403
+
404
+ <h2>
405
+ Miscellaneous
406
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
407
+ </h2>
408
+
409
+ <ul class="summary">
410
+
411
+ <li class="public ">
412
+ <span class="summary_signature">
413
+
414
+ <a href="#intersects%3F-instance_method" title="#intersects? (instance method)">- (Boolean) <strong>intersects?</strong>(node) </a>
415
+
416
+
417
+
418
+ </span>
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ <span class="summary_desc"><div class='inline'>
429
+ <p>Whether the receiver&#39;s bounding box intersects with the given
430
+ node&#39;s bounding box.</p>
431
+ </div></span>
432
+
433
+ </li>
434
+
435
+
436
+ </ul>
437
+
438
+ <h2>
439
+ Container
440
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
441
+ </h2>
442
+
443
+ <ul class="summary">
444
+
445
+ <li class="public ">
446
+ <span class="summary_signature">
447
+
448
+ <a href="#add-instance_method" title="#add (instance method)">- (Node) <strong>add</strong>(node, zpos = 0) </a>
449
+
450
+
451
+
452
+ </span>
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+ <span class="summary_desc"><div class='inline'>
463
+ <p>Adds a child node to the receiver with a local z-order.</p>
464
+ </div></span>
465
+
466
+ </li>
467
+
468
+
469
+ <li class="public ">
470
+ <span class="summary_signature">
471
+
472
+ <a href="#children-instance_method" title="#children (instance method)">- (Array&lt;Node&gt;) <strong>children</strong> </a>
473
+
474
+
475
+
476
+ </span>
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+ <span class="summary_desc"><div class='inline'>
487
+ <p>An array of <code>Node</code> objects that have been added to the receiver.</p>
488
+ </div></span>
489
+
490
+ </li>
491
+
492
+
493
+ <li class="public ">
494
+ <span class="summary_signature">
495
+
496
+ <a href="#clear-instance_method" title="#clear (instance method)">- (Node) <strong>clear</strong>(cleanup = true) </a>
497
+
498
+
499
+
500
+ </span>
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+ <span class="summary_desc"><div class='inline'>
511
+ <p>Removes all children nodes from the receiver.</p>
512
+ </div></span>
513
+
514
+ </li>
515
+
516
+
517
+ <li class="public ">
518
+ <span class="summary_signature">
519
+
520
+ <a href="#delete-instance_method" title="#delete (instance method)">- (Node) <strong>delete</strong>(node, cleanup = true) </a>
521
+
522
+
523
+
524
+ </span>
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ <span class="summary_desc"><div class='inline'>
535
+ <p>Removes the given child node from the receiver.</p>
536
+ </div></span>
537
+
538
+ </li>
539
+
540
+
541
+ <li class="public ">
542
+ <span class="summary_signature">
543
+
544
+ <a href="#delete_from_parent-instance_method" title="#delete_from_parent (instance method)">- (Node) <strong>delete_from_parent</strong>(cleanup = true) </a>
545
+
546
+
547
+
548
+ </span>
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+ <span class="summary_desc"><div class='inline'>
559
+ <p>Removes the receiver node from its parent.</p>
560
+ </div></span>
561
+
562
+ </li>
563
+
564
+
565
+ <li class="public ">
566
+ <span class="summary_signature">
567
+
568
+ <a href="#parent-instance_method" title="#parent (instance method)">- (Node) <strong>parent</strong> </a>
569
+
570
+
571
+
572
+ </span>
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+ <span class="summary_desc"><div class='inline'>
583
+ <p>The parent node, or <code>nil</code> if there isn&#39;t one.</p>
584
+ </div></span>
585
+
586
+ </li>
587
+
588
+
589
+ </ul>
590
+
591
+
592
+
593
+ <div id="instance_attr_details" class="attr_details">
594
+ <h2>Instance Attribute Details</h2>
595
+
596
+
597
+ <span id="alpha=-instance_method"></span>
598
+ <div class="method_details first">
599
+ <h3 class="signature first" id="alpha-instance_method">
600
+
601
+ - (<tt>Float</tt>) <strong>alpha</strong>
602
+
603
+
604
+
605
+
606
+
607
+ </h3><div class="docstring">
608
+ <div class="discussion">
609
+
610
+ <p>Returns the opacity (alpha) level of the node, as a Float from the
611
+ <code>0.0</code> to <code>1.0</code> range.</p>
612
+
613
+
614
+ </div>
615
+ </div>
616
+ <div class="tags">
617
+
618
+ <p class="tag_title">Returns:</p>
619
+ <ul class="return">
620
+
621
+ <li>
622
+
623
+
624
+ <span class='type'>(<tt>Float</tt>)</span>
625
+
626
+
627
+
628
+ &mdash;
629
+ <div class='inline'>
630
+ <p>the opacity (alpha) level of the node, as a Float from the <code>0.0</code>
631
+ to <code>1.0</code> range.</p>
632
+ </div>
633
+
634
+ </li>
635
+
636
+ </ul>
637
+
638
+ </div><table class="source_code">
639
+ <tr>
640
+ <td>
641
+ <pre class="lines">
642
+
643
+
644
+ 281
645
+ 282
646
+ 283</pre>
647
+ </td>
648
+ <td>
649
+ <pre class="code"><span class="info file"># File 'motion-game', line 281</span>
650
+
651
+ <span class='kw'>def</span> <span class='id identifier rubyid_alpha'>alpha</span>
652
+ <span class='ivar'>@alpha</span>
653
+ <span class='kw'>end</span></pre>
654
+ </td>
655
+ </tr>
656
+ </table>
657
+ </div>
658
+
659
+
660
+ <span id="anchor_point=-instance_method"></span>
661
+ <div class="method_details ">
662
+ <h3 class="signature " id="anchor_point-instance_method">
663
+
664
+ - (<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>) <strong>anchor_point</strong>
665
+
666
+
667
+
668
+
669
+
670
+ </h3><div class="docstring">
671
+ <div class="discussion">
672
+
673
+ <p>The anchor point of the node, as a set of percentage coordinates. The
674
+ anchor point represents where the node will be attached to its parent, and
675
+ is normalized as a percentage. <tt>[0, 0]</tt> means the bottom-left corner, and
676
+ <tt>[1, 1]</tt> the top-right corner. You can also use values lower than
677
+ <code>0</code> and higher than <code>1</code>. The default anchor point
678
+ value is <tt>[0.5, 0.5]</tt>, which means the center of the parent.</p>
679
+
680
+
681
+ </div>
682
+ </div>
683
+ <div class="tags">
684
+
685
+ <p class="tag_title">Returns:</p>
686
+ <ul class="return">
687
+
688
+ <li>
689
+
690
+
691
+ <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
692
+
693
+
694
+
695
+ &mdash;
696
+ <div class='inline'>
697
+ <p>the anchor point of the node.</p>
698
+ </div>
699
+
700
+ </li>
701
+
702
+ </ul>
703
+
704
+ </div><table class="source_code">
705
+ <tr>
706
+ <td>
707
+ <pre class="lines">
708
+
709
+
710
+ 266
711
+ 267
712
+ 268</pre>
713
+ </td>
714
+ <td>
715
+ <pre class="code"><span class="info file"># File 'motion-game', line 266</span>
716
+
717
+ <span class='kw'>def</span> <span class='id identifier rubyid_anchor_point'>anchor_point</span>
718
+ <span class='ivar'>@anchor_point</span>
719
+ <span class='kw'>end</span></pre>
720
+ </td>
721
+ </tr>
722
+ </table>
723
+ </div>
724
+
725
+
726
+ <span id="color=-instance_method"></span>
727
+ <div class="method_details ">
728
+ <h3 class="signature " id="color-instance_method">
729
+
730
+ - (<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>) <strong>color</strong>
731
+
732
+
733
+
734
+
735
+
736
+ </h3><div class="docstring">
737
+ <div class="discussion">
738
+
739
+ <p>Returns the color of the node.</p>
740
+
741
+
742
+ </div>
743
+ </div>
744
+ <div class="tags">
745
+
746
+ <p class="tag_title">Returns:</p>
747
+ <ul class="return">
748
+
749
+ <li>
750
+
751
+
752
+ <span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
753
+
754
+
755
+
756
+ &mdash;
757
+ <div class='inline'>
758
+ <p>the color of the node.</p>
759
+ </div>
760
+
761
+ </li>
762
+
763
+ </ul>
764
+
765
+ </div><table class="source_code">
766
+ <tr>
767
+ <td>
768
+ <pre class="lines">
769
+
770
+
771
+ 288
772
+ 289
773
+ 290</pre>
774
+ </td>
775
+ <td>
776
+ <pre class="code"><span class="info file"># File 'motion-game', line 288</span>
777
+
778
+ <span class='kw'>def</span> <span class='id identifier rubyid_color'>color</span>
779
+ <span class='ivar'>@color</span>
780
+ <span class='kw'>end</span></pre>
781
+ </td>
782
+ </tr>
783
+ </table>
784
+ </div>
785
+
786
+
787
+ <span id="name=-instance_method"></span>
788
+ <div class="method_details ">
789
+ <h3 class="signature " id="name-instance_method">
790
+
791
+ - (<tt>String</tt>) <strong>name</strong>
792
+
793
+
794
+
795
+
796
+
797
+ </h3><div class="docstring">
798
+ <div class="discussion">
799
+
800
+ <p>Returns a name to easily identify the node in the graph.</p>
801
+
802
+
803
+ </div>
804
+ </div>
805
+ <div class="tags">
806
+
807
+ <p class="tag_title">Returns:</p>
808
+ <ul class="return">
809
+
810
+ <li>
811
+
812
+
813
+ <span class='type'>(<tt>String</tt>)</span>
814
+
815
+
816
+
817
+ &mdash;
818
+ <div class='inline'>
819
+ <p>a name to easily identify the node in the graph.</p>
820
+ </div>
821
+
822
+ </li>
823
+
824
+ </ul>
825
+
826
+ </div><table class="source_code">
827
+ <tr>
828
+ <td>
829
+ <pre class="lines">
830
+
831
+
832
+ 302
833
+ 303
834
+ 304</pre>
835
+ </td>
836
+ <td>
837
+ <pre class="code"><span class="info file"># File 'motion-game', line 302</span>
838
+
839
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
840
+ <span class='ivar'>@name</span>
841
+ <span class='kw'>end</span></pre>
842
+ </td>
843
+ </tr>
844
+ </table>
845
+ </div>
846
+
847
+
848
+ <span id="position=-instance_method"></span>
849
+ <div class="method_details ">
850
+ <h3 class="signature " id="position-instance_method">
851
+
852
+ - (<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>) <strong>position</strong>
853
+
854
+
855
+
856
+
857
+
858
+ </h3><div class="docstring">
859
+ <div class="discussion">
860
+
861
+ <p>Returns the <tt>[x, y]</tt> position of the node in its parent&#39;s coordinate
862
+ system.</p>
863
+
864
+
865
+ </div>
866
+ </div>
867
+ <div class="tags">
868
+
869
+ <p class="tag_title">Returns:</p>
870
+ <ul class="return">
871
+
872
+ <li>
873
+
874
+
875
+ <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
876
+
877
+
878
+
879
+ &mdash;
880
+ <div class='inline'>
881
+ <p>the <tt>[x, y]</tt> position of the node in its parent&#39;s coordinate system.</p>
882
+ </div>
883
+
884
+ </li>
885
+
886
+ </ul>
887
+
888
+ </div><table class="source_code">
889
+ <tr>
890
+ <td>
891
+ <pre class="lines">
892
+
893
+
894
+ 270
895
+ 271
896
+ 272</pre>
897
+ </td>
898
+ <td>
899
+ <pre class="code"><span class="info file"># File 'motion-game', line 270</span>
900
+
901
+ <span class='kw'>def</span> <span class='id identifier rubyid_position'>position</span>
902
+ <span class='ivar'>@position</span>
903
+ <span class='kw'>end</span></pre>
904
+ </td>
905
+ </tr>
906
+ </table>
907
+ </div>
908
+
909
+
910
+ <span id="rotation=-instance_method"></span>
911
+ <div class="method_details ">
912
+ <h3 class="signature " id="rotation-instance_method">
913
+
914
+ - (<tt>Float</tt>) <strong>rotation</strong>
915
+
916
+
917
+
918
+
919
+
920
+ </h3><div class="docstring">
921
+ <div class="discussion">
922
+
923
+ <p>Returns the rotation of the node in degrees. 0 is the default angle.
924
+ Positive values rotate node clockwise, and negative values for
925
+ anti-clockwise</p>
926
+
927
+
928
+ </div>
929
+ </div>
930
+ <div class="tags">
931
+
932
+ <p class="tag_title">Returns:</p>
933
+ <ul class="return">
934
+
935
+ <li>
936
+
937
+
938
+ <span class='type'>(<tt>Float</tt>)</span>
939
+
940
+
941
+
942
+ &mdash;
943
+ <div class='inline'>
944
+ <p>the rotation of the node in degrees.</p>
945
+ </div>
946
+
947
+ </li>
948
+
949
+ </ul>
950
+
951
+ </div><table class="source_code">
952
+ <tr>
953
+ <td>
954
+ <pre class="lines">
955
+
956
+
957
+ 294
958
+ 295
959
+ 296</pre>
960
+ </td>
961
+ <td>
962
+ <pre class="code"><span class="info file"># File 'motion-game', line 294</span>
963
+
964
+ <span class='kw'>def</span> <span class='id identifier rubyid_rotation'>rotation</span>
965
+ <span class='ivar'>@rotation</span>
966
+ <span class='kw'>end</span></pre>
967
+ </td>
968
+ </tr>
969
+ </table>
970
+ </div>
971
+
972
+
973
+ <span id="scale=-instance_method"></span>
974
+ <div class="method_details ">
975
+ <h3 class="signature " id="scale-instance_method">
976
+
977
+ - (<tt>Float</tt>) <strong>scale</strong>
978
+
979
+
980
+
981
+
982
+
983
+ </h3><div class="docstring">
984
+ <div class="discussion">
985
+
986
+ <p>Returns the scaling factor of the node, which multiplies its width, height
987
+ and depth.</p>
988
+
989
+
990
+ </div>
991
+ </div>
992
+ <div class="tags">
993
+
994
+ <p class="tag_title">Returns:</p>
995
+ <ul class="return">
996
+
997
+ <li>
998
+
999
+
1000
+ <span class='type'>(<tt>Float</tt>)</span>
1001
+
1002
+
1003
+
1004
+ &mdash;
1005
+ <div class='inline'>
1006
+ <p>the scaling factor.</p>
1007
+ </div>
1008
+
1009
+ </li>
1010
+
1011
+ </ul>
1012
+
1013
+ </div><table class="source_code">
1014
+ <tr>
1015
+ <td>
1016
+ <pre class="lines">
1017
+
1018
+
1019
+ 299
1020
+ 300
1021
+ 301</pre>
1022
+ </td>
1023
+ <td>
1024
+ <pre class="code"><span class="info file"># File 'motion-game', line 299</span>
1025
+
1026
+ <span class='kw'>def</span> <span class='id identifier rubyid_scale'>scale</span>
1027
+ <span class='ivar'>@scale</span>
1028
+ <span class='kw'>end</span></pre>
1029
+ </td>
1030
+ </tr>
1031
+ </table>
1032
+ </div>
1033
+
1034
+
1035
+ <span id="size=-instance_method"></span>
1036
+ <div class="method_details ">
1037
+ <h3 class="signature " id="size-instance_method">
1038
+
1039
+ - (<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>) <strong>size</strong>
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+ </h3><div class="docstring">
1046
+ <div class="discussion">
1047
+
1048
+ <p>Returns the content size of the node.</p>
1049
+
1050
+
1051
+ </div>
1052
+ </div>
1053
+ <div class="tags">
1054
+
1055
+ <p class="tag_title">Returns:</p>
1056
+ <ul class="return">
1057
+
1058
+ <li>
1059
+
1060
+
1061
+ <span class='type'>(<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>)</span>
1062
+
1063
+
1064
+
1065
+ &mdash;
1066
+ <div class='inline'>
1067
+ <p>the content size of the node.</p>
1068
+ </div>
1069
+
1070
+ </li>
1071
+
1072
+ </ul>
1073
+
1074
+ </div><table class="source_code">
1075
+ <tr>
1076
+ <td>
1077
+ <pre class="lines">
1078
+
1079
+
1080
+ 273
1081
+ 274
1082
+ 275</pre>
1083
+ </td>
1084
+ <td>
1085
+ <pre class="code"><span class="info file"># File 'motion-game', line 273</span>
1086
+
1087
+ <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
1088
+ <span class='ivar'>@size</span>
1089
+ <span class='kw'>end</span></pre>
1090
+ </td>
1091
+ </tr>
1092
+ </table>
1093
+ </div>
1094
+
1095
+
1096
+ <span id="visible?=-instance_method"></span>
1097
+ <div class="method_details ">
1098
+ <h3 class="signature " id="visible?-instance_method">
1099
+
1100
+ - (<tt>Boolean</tt>) <strong>visible?</strong>
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+ </h3><div class="docstring">
1107
+ <div class="discussion">
1108
+
1109
+ <p>Returns whether the node should be visible. The default value is true.</p>
1110
+
1111
+
1112
+ </div>
1113
+ </div>
1114
+ <div class="tags">
1115
+
1116
+ <p class="tag_title">Returns:</p>
1117
+ <ul class="return">
1118
+
1119
+ <li>
1120
+
1121
+
1122
+ <span class='type'>(<tt>Boolean</tt>)</span>
1123
+
1124
+
1125
+
1126
+ &mdash;
1127
+ <div class='inline'>
1128
+ <p>whether the node should be visible. The default value is true.</p>
1129
+ </div>
1130
+
1131
+ </li>
1132
+
1133
+ </ul>
1134
+
1135
+ </div><table class="source_code">
1136
+ <tr>
1137
+ <td>
1138
+ <pre class="lines">
1139
+
1140
+
1141
+ 277
1142
+ 278
1143
+ 279</pre>
1144
+ </td>
1145
+ <td>
1146
+ <pre class="code"><span class="info file"># File 'motion-game', line 277</span>
1147
+
1148
+ def visible?
1149
+ @visible?
1150
+ end</pre>
1151
+ </td>
1152
+ </tr>
1153
+ </table>
1154
+ </div>
1155
+
1156
+
1157
+ <span id="z_index=-instance_method"></span>
1158
+ <div class="method_details ">
1159
+ <h3 class="signature " id="z_index-instance_method">
1160
+
1161
+ - (<tt>Integer</tt>) <strong>z_index</strong>
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+ </h3><div class="docstring">
1168
+ <div class="discussion">
1169
+
1170
+ <p>Returns the local z-order index of the receiver in the scene graph, which
1171
+ will determine its priority when rendering the scene.</p>
1172
+
1173
+
1174
+ </div>
1175
+ </div>
1176
+ <div class="tags">
1177
+
1178
+ <p class="tag_title">Returns:</p>
1179
+ <ul class="return">
1180
+
1181
+ <li>
1182
+
1183
+
1184
+ <span class='type'>(<tt>Integer</tt>)</span>
1185
+
1186
+
1187
+
1188
+ &mdash;
1189
+ <div class='inline'>
1190
+ <p>the local z-order index of the receiver in the scene graph, which will
1191
+ determine its priority when rendering the scene.</p>
1192
+ </div>
1193
+
1194
+ </li>
1195
+
1196
+ </ul>
1197
+
1198
+ </div><table class="source_code">
1199
+ <tr>
1200
+ <td>
1201
+ <pre class="lines">
1202
+
1203
+
1204
+ 285
1205
+ 286
1206
+ 287</pre>
1207
+ </td>
1208
+ <td>
1209
+ <pre class="code"><span class="info file"># File 'motion-game', line 285</span>
1210
+
1211
+ <span class='kw'>def</span> <span class='id identifier rubyid_z_index'>z_index</span>
1212
+ <span class='ivar'>@z_index</span>
1213
+ <span class='kw'>end</span></pre>
1214
+ </td>
1215
+ </tr>
1216
+ </table>
1217
+ </div>
1218
+
1219
+ </div>
1220
+
1221
+
1222
+ <div id="instance_method_details" class="method_details_list">
1223
+ <h2>Instance Method Details</h2>
1224
+
1225
+
1226
+ <div class="method_details first">
1227
+ <h3 class="signature first" id="add-instance_method">
1228
+
1229
+ - (<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>) <strong>add</strong>(node, zpos = 0)
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+ </h3><div class="docstring">
1236
+ <div class="discussion">
1237
+
1238
+ <p>Adds a child node to the receiver with a local z-order.</p>
1239
+
1240
+
1241
+ </div>
1242
+ </div>
1243
+ <div class="tags">
1244
+ <p class="tag_title">Parameters:</p>
1245
+ <ul class="param">
1246
+
1247
+ <li>
1248
+
1249
+ <span class='name'>node</span>
1250
+
1251
+
1252
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1253
+
1254
+
1255
+
1256
+ &mdash;
1257
+ <div class='inline'>
1258
+ <p>the child to add.</p>
1259
+ </div>
1260
+
1261
+ </li>
1262
+
1263
+ <li>
1264
+
1265
+ <span class='name'>zpos</span>
1266
+
1267
+
1268
+ <span class='type'>(<tt>Integer</tt>)</span>
1269
+
1270
+
1271
+ <em class="default">(defaults to: <tt>0</tt>)</em>
1272
+
1273
+
1274
+ &mdash;
1275
+ <div class='inline'>
1276
+ <p>the local z-order.</p>
1277
+ </div>
1278
+
1279
+ </li>
1280
+
1281
+ </ul>
1282
+
1283
+ <p class="tag_title">Returns:</p>
1284
+ <ul class="return">
1285
+
1286
+ <li>
1287
+
1288
+
1289
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1290
+
1291
+
1292
+
1293
+ &mdash;
1294
+ <div class='inline'>
1295
+ <p>the receiver.</p>
1296
+ </div>
1297
+
1298
+ </li>
1299
+
1300
+ </ul>
1301
+
1302
+ </div><table class="source_code">
1303
+ <tr>
1304
+ <td>
1305
+ <pre class="lines">
1306
+
1307
+
1308
+ 319</pre>
1309
+ </td>
1310
+ <td>
1311
+ <pre class="code"><span class="info file"># File 'motion-game', line 319</span>
1312
+
1313
+ <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='comma'>,</span> <span class='id identifier rubyid_zpos'>zpos</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1314
+ </td>
1315
+ </tr>
1316
+ </table>
1317
+ </div>
1318
+
1319
+ <div class="method_details ">
1320
+ <h3 class="signature " id="children-instance_method">
1321
+
1322
+ - (<tt>Array&lt;<span class='object_link'><a href="" title="MG::Node (class)">Node</a></span>&gt;</tt>) <strong>children</strong>
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+ </h3><div class="docstring">
1329
+ <div class="discussion">
1330
+
1331
+ <p>Returns an array of <code>Node</code> objects that have been added to the
1332
+ receiver.</p>
1333
+
1334
+
1335
+ </div>
1336
+ </div>
1337
+ <div class="tags">
1338
+
1339
+ <p class="tag_title">Returns:</p>
1340
+ <ul class="return">
1341
+
1342
+ <li>
1343
+
1344
+
1345
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="" title="MG::Node (class)">Node</a></span>&gt;</tt>)</span>
1346
+
1347
+
1348
+
1349
+ &mdash;
1350
+ <div class='inline'>
1351
+ <p>an array of <code>Node</code> objects that have been added to the receiver.</p>
1352
+ </div>
1353
+
1354
+ </li>
1355
+
1356
+ </ul>
1357
+
1358
+ </div><table class="source_code">
1359
+ <tr>
1360
+ <td>
1361
+ <pre class="lines">
1362
+
1363
+
1364
+ 338</pre>
1365
+ </td>
1366
+ <td>
1367
+ <pre class="code"><span class="info file"># File 'motion-game', line 338</span>
1368
+
1369
+ <span class='kw'>def</span> <span class='id identifier rubyid_children'>children</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1370
+ </td>
1371
+ </tr>
1372
+ </table>
1373
+ </div>
1374
+
1375
+ <div class="method_details ">
1376
+ <h3 class="signature " id="clear-instance_method">
1377
+
1378
+ - (<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>) <strong>clear</strong>(cleanup = true)
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+ </h3><div class="docstring">
1385
+ <div class="discussion">
1386
+
1387
+ <p>Removes all children nodes from the receiver.</p>
1388
+
1389
+
1390
+ </div>
1391
+ </div>
1392
+ <div class="tags">
1393
+ <p class="tag_title">Parameters:</p>
1394
+ <ul class="param">
1395
+
1396
+ <li>
1397
+
1398
+ <span class='name'>cleanup</span>
1399
+
1400
+
1401
+ <span class='type'>(<tt>Boolean</tt>)</span>
1402
+
1403
+
1404
+ <em class="default">(defaults to: <tt>true</tt>)</em>
1405
+
1406
+
1407
+ &mdash;
1408
+ <div class='inline'>
1409
+ <p>cleans all running actions on children before removing them.</p>
1410
+ </div>
1411
+
1412
+ </li>
1413
+
1414
+ </ul>
1415
+
1416
+ <p class="tag_title">Returns:</p>
1417
+ <ul class="return">
1418
+
1419
+ <li>
1420
+
1421
+
1422
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1423
+
1424
+
1425
+
1426
+ &mdash;
1427
+ <div class='inline'>
1428
+ <p>the receiver.</p>
1429
+ </div>
1430
+
1431
+ </li>
1432
+
1433
+ </ul>
1434
+
1435
+ </div><table class="source_code">
1436
+ <tr>
1437
+ <td>
1438
+ <pre class="lines">
1439
+
1440
+
1441
+ 325</pre>
1442
+ </td>
1443
+ <td>
1444
+ <pre class="code"><span class="info file"># File 'motion-game', line 325</span>
1445
+
1446
+ <span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span><span class='lparen'>(</span><span class='id identifier rubyid_cleanup'>cleanup</span><span class='op'>=</span><span class='kw'>true</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1447
+ </td>
1448
+ </tr>
1449
+ </table>
1450
+ </div>
1451
+
1452
+ <div class="method_details ">
1453
+ <h3 class="signature " id="delete-instance_method">
1454
+
1455
+ - (<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>) <strong>delete</strong>(node, cleanup = true)
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+ </h3><div class="docstring">
1462
+ <div class="discussion">
1463
+
1464
+ <p>Removes the given child node from the receiver.</p>
1465
+
1466
+
1467
+ </div>
1468
+ </div>
1469
+ <div class="tags">
1470
+ <p class="tag_title">Parameters:</p>
1471
+ <ul class="param">
1472
+
1473
+ <li>
1474
+
1475
+ <span class='name'>cleanup</span>
1476
+
1477
+
1478
+ <span class='type'>(<tt>Boolean</tt>)</span>
1479
+
1480
+
1481
+ <em class="default">(defaults to: <tt>true</tt>)</em>
1482
+
1483
+
1484
+ &mdash;
1485
+ <div class='inline'>
1486
+ <p>cleans all running actions on child before removing it.</p>
1487
+ </div>
1488
+
1489
+ </li>
1490
+
1491
+ </ul>
1492
+
1493
+ <p class="tag_title">Returns:</p>
1494
+ <ul class="return">
1495
+
1496
+ <li>
1497
+
1498
+
1499
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1500
+
1501
+
1502
+
1503
+ &mdash;
1504
+ <div class='inline'>
1505
+ <p>the receiver.</p>
1506
+ </div>
1507
+
1508
+ </li>
1509
+
1510
+ </ul>
1511
+
1512
+ </div><table class="source_code">
1513
+ <tr>
1514
+ <td>
1515
+ <pre class="lines">
1516
+
1517
+
1518
+ 331</pre>
1519
+ </td>
1520
+ <td>
1521
+ <pre class="code"><span class="info file"># File 'motion-game', line 331</span>
1522
+
1523
+ <span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='comma'>,</span> <span class='id identifier rubyid_cleanup'>cleanup</span><span class='op'>=</span><span class='kw'>true</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1524
+ </td>
1525
+ </tr>
1526
+ </table>
1527
+ </div>
1528
+
1529
+ <div class="method_details ">
1530
+ <h3 class="signature " id="delete_from_parent-instance_method">
1531
+
1532
+ - (<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>) <strong>delete_from_parent</strong>(cleanup = true)
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ </h3><div class="docstring">
1539
+ <div class="discussion">
1540
+
1541
+ <p>Removes the receiver node from its parent. Same as:</p>
1542
+
1543
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='comma'>,</span> <span class='id identifier rubyid_cleanup'>cleanup</span><span class='rparen'>)</span></code></pre>
1544
+
1545
+
1546
+ </div>
1547
+ </div>
1548
+ <div class="tags">
1549
+ <p class="tag_title">Parameters:</p>
1550
+ <ul class="param">
1551
+
1552
+ <li>
1553
+
1554
+ <span class='name'>cleanup</span>
1555
+
1556
+
1557
+ <span class='type'>(<tt>Boolean</tt>)</span>
1558
+
1559
+
1560
+ <em class="default">(defaults to: <tt>true</tt>)</em>
1561
+
1562
+
1563
+ &mdash;
1564
+ <div class='inline'>
1565
+ <p>cleans all running actions on the receiver before removing it from the
1566
+ parent.</p>
1567
+ </div>
1568
+
1569
+ </li>
1570
+
1571
+ </ul>
1572
+
1573
+ <p class="tag_title">Returns:</p>
1574
+ <ul class="return">
1575
+
1576
+ <li>
1577
+
1578
+
1579
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1580
+
1581
+
1582
+
1583
+ &mdash;
1584
+ <div class='inline'>
1585
+ <p>the receiver.</p>
1586
+ </div>
1587
+
1588
+ </li>
1589
+
1590
+ </ul>
1591
+
1592
+ </div><table class="source_code">
1593
+ <tr>
1594
+ <td>
1595
+ <pre class="lines">
1596
+
1597
+
1598
+ 346</pre>
1599
+ </td>
1600
+ <td>
1601
+ <pre class="code"><span class="info file"># File 'motion-game', line 346</span>
1602
+
1603
+ <span class='kw'>def</span> <span class='id identifier rubyid_delete_from_parent'>delete_from_parent</span><span class='lparen'>(</span><span class='id identifier rubyid_cleanup'>cleanup</span><span class='op'>=</span><span class='kw'>true</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1604
+ </td>
1605
+ </tr>
1606
+ </table>
1607
+ </div>
1608
+
1609
+ <div class="method_details ">
1610
+ <h3 class="signature " id="intersects?-instance_method">
1611
+
1612
+ - (<tt>Boolean</tt>) <strong>intersects?</strong>(node)
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+ </h3><div class="docstring">
1619
+ <div class="discussion">
1620
+
1621
+ <p>Returns whether the receiver&#39;s bounding box intersects with the given
1622
+ node&#39;s bounding box.</p>
1623
+
1624
+
1625
+ </div>
1626
+ </div>
1627
+ <div class="tags">
1628
+ <p class="tag_title">Parameters:</p>
1629
+ <ul class="param">
1630
+
1631
+ <li>
1632
+
1633
+ <span class='name'>node</span>
1634
+
1635
+
1636
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1637
+
1638
+
1639
+
1640
+ &mdash;
1641
+ <div class='inline'>
1642
+ <p>a given Node object.</p>
1643
+ </div>
1644
+
1645
+ </li>
1646
+
1647
+ </ul>
1648
+
1649
+ <p class="tag_title">Returns:</p>
1650
+ <ul class="return">
1651
+
1652
+ <li>
1653
+
1654
+
1655
+ <span class='type'>(<tt>Boolean</tt>)</span>
1656
+
1657
+
1658
+
1659
+ &mdash;
1660
+ <div class='inline'>
1661
+ <p>whether the receiver&#39;s bounding box intersects with the given
1662
+ node&#39;s bounding box.</p>
1663
+ </div>
1664
+
1665
+ </li>
1666
+
1667
+ </ul>
1668
+
1669
+ </div><table class="source_code">
1670
+ <tr>
1671
+ <td>
1672
+ <pre class="lines">
1673
+
1674
+
1675
+ 310</pre>
1676
+ </td>
1677
+ <td>
1678
+ <pre class="code"><span class="info file"># File 'motion-game', line 310</span>
1679
+
1680
+ <span class='kw'>def</span> <span class='id identifier rubyid_intersects?'>intersects?</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1681
+ </td>
1682
+ </tr>
1683
+ </table>
1684
+ </div>
1685
+
1686
+ <div class="method_details ">
1687
+ <h3 class="signature " id="parent-instance_method">
1688
+
1689
+ - (<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>) <strong>parent</strong>
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+ </h3><div class="docstring">
1696
+ <div class="discussion">
1697
+
1698
+ <p>Returns the parent node, or <code>nil</code> if there isn&#39;t one.</p>
1699
+
1700
+
1701
+ </div>
1702
+ </div>
1703
+ <div class="tags">
1704
+
1705
+ <p class="tag_title">Returns:</p>
1706
+ <ul class="return">
1707
+
1708
+ <li>
1709
+
1710
+
1711
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1712
+
1713
+
1714
+
1715
+ &mdash;
1716
+ <div class='inline'>
1717
+ <p>the parent node, or <code>nil</code> if there isn&#39;t one.</p>
1718
+ </div>
1719
+
1720
+ </li>
1721
+
1722
+ </ul>
1723
+
1724
+ </div><table class="source_code">
1725
+ <tr>
1726
+ <td>
1727
+ <pre class="lines">
1728
+
1729
+
1730
+ 334</pre>
1731
+ </td>
1732
+ <td>
1733
+ <pre class="code"><span class="info file"># File 'motion-game', line 334</span>
1734
+
1735
+ <span class='kw'>def</span> <span class='id identifier rubyid_parent'>parent</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1736
+ </td>
1737
+ </tr>
1738
+ </table>
1739
+ </div>
1740
+
1741
+ </div>
1742
+
1743
+ </div>
1744
+
1745
+ <div id="footer">
1746
+ Generated on Thu Sep 3 15:12:07 2015 by
1747
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1748
+ 0.8.7.6 (ruby-2.0.0).
1749
+ </div>
1750
+
1751
+ </body>
1752
+ </html>