motion-game 1.1.7 → 1.1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/build/android/motion-cocos.jar +0 -0
  4. metadata +2 -66
  5. data/doc/MG.html +0 -131
  6. data/doc/MG/Action.html +0 -402
  7. data/doc/MG/Animate.html +0 -281
  8. data/doc/MG/Application.html +0 -335
  9. data/doc/MG/Audio.html +0 -1268
  10. data/doc/MG/Blink.html +0 -257
  11. data/doc/MG/Button.html +0 -725
  12. data/doc/MG/Color.html +0 -535
  13. data/doc/MG/DelayTime.html +0 -239
  14. data/doc/MG/Director.html +0 -1301
  15. data/doc/MG/Draw.html +0 -813
  16. data/doc/MG/Events.html +0 -129
  17. data/doc/MG/Events/Acceleration.html +0 -505
  18. data/doc/MG/Events/Touch.html +0 -235
  19. data/doc/MG/FadeIn.html +0 -240
  20. data/doc/MG/FadeOut.html +0 -240
  21. data/doc/MG/FadeTo.html +0 -256
  22. data/doc/MG/File.html +0 -219
  23. data/doc/MG/Follow.html +0 -241
  24. data/doc/MG/JumpBy.html +0 -292
  25. data/doc/MG/JumpTo.html +0 -287
  26. data/doc/MG/Layout.html +0 -516
  27. data/doc/MG/List.html +0 -1053
  28. data/doc/MG/Menu.html +0 -458
  29. data/doc/MG/MoveBy.html +0 -259
  30. data/doc/MG/MoveTo.html +0 -257
  31. data/doc/MG/Node.html +0 -2013
  32. data/doc/MG/Parallax.html +0 -297
  33. data/doc/MG/Particle.html +0 -1224
  34. data/doc/MG/Point.html +0 -543
  35. data/doc/MG/Repeat.html +0 -257
  36. data/doc/MG/RepeatForever.html +0 -239
  37. data/doc/MG/RotateBy.html +0 -259
  38. data/doc/MG/RotateTo.html +0 -257
  39. data/doc/MG/ScaleBy.html +0 -255
  40. data/doc/MG/ScaleTo.html +0 -255
  41. data/doc/MG/Scene.html +0 -1544
  42. data/doc/MG/Scroll.html +0 -533
  43. data/doc/MG/Sequence.html +0 -241
  44. data/doc/MG/Size.html +0 -741
  45. data/doc/MG/SkewBy.html +0 -273
  46. data/doc/MG/SkewTo.html +0 -273
  47. data/doc/MG/Slider.html +0 -338
  48. data/doc/MG/Spawn.html +0 -239
  49. data/doc/MG/Speed.html +0 -259
  50. data/doc/MG/Sprite.html +0 -2591
  51. data/doc/MG/Text.html +0 -921
  52. data/doc/MG/TintBy.html +0 -272
  53. data/doc/MG/TintTo.html +0 -274
  54. data/doc/MG/Web.html +0 -831
  55. data/doc/MG/Widget.html +0 -552
  56. data/doc/_index.html +0 -574
  57. data/doc/class_list.html +0 -51
  58. data/doc/css/common.css +0 -1
  59. data/doc/css/full_list.css +0 -58
  60. data/doc/css/style.css +0 -481
  61. data/doc/file.README.html +0 -192
  62. data/doc/file_list.html +0 -56
  63. data/doc/frames.html +0 -17
  64. data/doc/index.html +0 -192
  65. data/doc/js/app.js +0 -243
  66. data/doc/js/full_list.js +0 -216
  67. data/doc/js/jquery.js +0 -4
  68. data/doc/method_list.html +0 -1635
  69. data/doc/top-level-namespace.html +0 -112
data/doc/MG/Node.html DELETED
@@ -1,2013 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: MG::Node
8
-
9
- &mdash; Documentation by YARD 0.9.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "MG::Node";
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"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (N)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
41
- &raquo;
42
- <span class="title">Node</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
- <iframe id="search_frame" src="../class_list.html"></iframe>
63
-
64
- <div id="content"><h1>Class: MG::Node
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName">Object</span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next">MG::Node</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>motion-game</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Node is the base class of objects in the scene graph. You should not
108
- instantiate this class directly but use a subclass instead.</p>
109
-
110
-
111
- </div>
112
- </div>
113
- <div class="tags">
114
-
115
-
116
- </div><div id="subclasses">
117
- <h2>Direct Known Subclasses</h2>
118
- <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>
119
- </div>
120
-
121
-
122
-
123
-
124
- <h2>Properties <small><a href="#" class="summary_toggle">collapse</a></small></h2>
125
- <ul class="summary">
126
-
127
- <li class="public ">
128
- <span class="summary_signature">
129
-
130
- <a href="#alpha-instance_method" title="#alpha (instance method)">#<strong>alpha</strong> &#x21d2; Float </a>
131
-
132
-
133
-
134
- </span>
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'>
148
- <p>The opacity (alpha) level of the node, as a Float from the <code>0.0</code>
149
- to <code>1.0</code> range.</p>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- <li class="public ">
156
- <span class="summary_signature">
157
-
158
- <a href="#anchor_point-instance_method" title="#anchor_point (instance method)">#<strong>anchor_point</strong> &#x21d2; Point </a>
159
-
160
-
161
-
162
- </span>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
- <span class="summary_desc"><div class='inline'>
176
- <p>The anchor point of the node, as a set of percentage coordinates.</p>
177
- </div></span>
178
-
179
- </li>
180
-
181
-
182
- <li class="public ">
183
- <span class="summary_signature">
184
-
185
- <a href="#color-instance_method" title="#color (instance method)">#<strong>color</strong> &#x21d2; Color </a>
186
-
187
-
188
-
189
- </span>
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
- <span class="summary_desc"><div class='inline'>
203
- <p>The color of the node.</p>
204
- </div></span>
205
-
206
- </li>
207
-
208
-
209
- <li class="public ">
210
- <span class="summary_signature">
211
-
212
- <a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> &#x21d2; String </a>
213
-
214
-
215
-
216
- </span>
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
- <span class="summary_desc"><div class='inline'>
230
- <p>A name to easily identify the node in the graph.</p>
231
- </div></span>
232
-
233
- </li>
234
-
235
-
236
- <li class="public ">
237
- <span class="summary_signature">
238
-
239
- <a href="#position-instance_method" title="#position (instance method)">#<strong>position</strong> &#x21d2; Point </a>
240
-
241
-
242
-
243
- </span>
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- <span class="summary_desc"><div class='inline'>
257
- <p>The <tt>[x, y]</tt> position of the node in its parent&#39;s coordinate system.</p>
258
- </div></span>
259
-
260
- </li>
261
-
262
-
263
- <li class="public ">
264
- <span class="summary_signature">
265
-
266
- <a href="#rotation-instance_method" title="#rotation (instance method)">#<strong>rotation</strong> &#x21d2; Float </a>
267
-
268
-
269
-
270
- </span>
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
- <span class="summary_desc"><div class='inline'>
284
- <p>Returns the rotation of the node in degrees.</p>
285
- </div></span>
286
-
287
- </li>
288
-
289
-
290
- <li class="public ">
291
- <span class="summary_signature">
292
-
293
- <a href="#scale-instance_method" title="#scale (instance method)">#<strong>scale</strong> &#x21d2; Float </a>
294
-
295
-
296
-
297
- </span>
298
-
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
- <span class="summary_desc"><div class='inline'>
311
- <p>Returns the scaling factor of the node, which multiplies its width, height
312
- and depth.</p>
313
- </div></span>
314
-
315
- </li>
316
-
317
-
318
- <li class="public ">
319
- <span class="summary_signature">
320
-
321
- <a href="#size-instance_method" title="#size (instance method)">#<strong>size</strong> &#x21d2; Size </a>
322
-
323
-
324
-
325
- </span>
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
- <span class="summary_desc"><div class='inline'>
339
- <p>The content size of the node.</p>
340
- </div></span>
341
-
342
- </li>
343
-
344
-
345
- <li class="public ">
346
- <span class="summary_signature">
347
-
348
- <a href="#visible%3F-instance_method" title="#visible? (instance method)">#<strong>visible?</strong> &#x21d2; Boolean </a>
349
-
350
-
351
-
352
- </span>
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
- <span class="summary_desc"><div class='inline'>
366
- <p>Whether the node should be visible.</p>
367
- </div></span>
368
-
369
- </li>
370
-
371
-
372
- <li class="public ">
373
- <span class="summary_signature">
374
-
375
- <a href="#z_index-instance_method" title="#z_index (instance method)">#<strong>z_index</strong> &#x21d2; Integer </a>
376
-
377
-
378
-
379
- </span>
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
- <span class="summary_desc"><div class='inline'>
393
- <p>The local z-order index of the receiver in the scene graph, which will
394
- determine its priority when rendering the scene.</p>
395
- </div></span>
396
-
397
- </li>
398
-
399
-
400
- </ul>
401
-
402
-
403
-
404
-
405
-
406
- <h2>
407
- Miscellaneous
408
- <small><a href="#" class="summary_toggle">collapse</a></small>
409
- </h2>
410
-
411
- <ul class="summary">
412
-
413
- <li class="public ">
414
- <span class="summary_signature">
415
-
416
- <a href="#intersects%3F-instance_method" title="#intersects? (instance method)">#<strong>intersects?</strong>(node) &#x21d2; Boolean </a>
417
-
418
-
419
-
420
- </span>
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
- <span class="summary_desc"><div class='inline'>
431
- <p>Whether the receiver&#39;s bounding box intersects with the given
432
- node&#39;s bounding box.</p>
433
- </div></span>
434
-
435
- </li>
436
-
437
-
438
- <li class="public ">
439
- <span class="summary_signature">
440
-
441
- <a href="#run_action-instance_method" title="#run_action (instance method)">#<strong>run_action</strong>(action) &#x21d2; Node </a>
442
-
443
-
444
-
445
- </span>
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
- <span class="summary_desc"><div class='inline'>
456
- <p>Run the provided action on the receiver node.</p>
457
- </div></span>
458
-
459
- </li>
460
-
461
-
462
- <li class="public ">
463
- <span class="summary_signature">
464
-
465
- <a href="#stop_action-instance_method" title="#stop_action (instance method)">#<strong>stop_action</strong>(action) &#x21d2; Node </a>
466
-
467
-
468
-
469
- </span>
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
- <span class="summary_desc"><div class='inline'>
480
- <p>Stop the provided action.</p>
481
- </div></span>
482
-
483
- </li>
484
-
485
-
486
- <li class="public ">
487
- <span class="summary_signature">
488
-
489
- <a href="#stop_all_actions-instance_method" title="#stop_all_actions (instance method)">#<strong>stop_all_actions</strong> &#x21d2; Node </a>
490
-
491
-
492
-
493
- </span>
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
- <span class="summary_desc"><div class='inline'>
504
- <p>Stop all actions running on the node.</p>
505
- </div></span>
506
-
507
- </li>
508
-
509
-
510
- </ul>
511
-
512
- <h2>
513
- Container
514
- <small><a href="#" class="summary_toggle">collapse</a></small>
515
- </h2>
516
-
517
- <ul class="summary">
518
-
519
- <li class="public ">
520
- <span class="summary_signature">
521
-
522
- <a href="#add-instance_method" title="#add (instance method)">#<strong>add</strong>(node, zpos = 0) &#x21d2; Node </a>
523
-
524
-
525
-
526
- </span>
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
- <span class="summary_desc"><div class='inline'>
537
- <p>Adds a child node to the receiver with a local z-order.</p>
538
- </div></span>
539
-
540
- </li>
541
-
542
-
543
- <li class="public ">
544
- <span class="summary_signature">
545
-
546
- <a href="#children-instance_method" title="#children (instance method)">#<strong>children</strong> &#x21d2; Array&lt;Node&gt; </a>
547
-
548
-
549
-
550
- </span>
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
- <span class="summary_desc"><div class='inline'>
561
- <p>An array of <code>Node</code> objects that have been added to the receiver.</p>
562
- </div></span>
563
-
564
- </li>
565
-
566
-
567
- <li class="public ">
568
- <span class="summary_signature">
569
-
570
- <a href="#clear-instance_method" title="#clear (instance method)">#<strong>clear</strong>(cleanup = true) &#x21d2; Node </a>
571
-
572
-
573
-
574
- </span>
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
- <span class="summary_desc"><div class='inline'>
585
- <p>Removes all children nodes from the receiver.</p>
586
- </div></span>
587
-
588
- </li>
589
-
590
-
591
- <li class="public ">
592
- <span class="summary_signature">
593
-
594
- <a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(node, cleanup = true) &#x21d2; Node </a>
595
-
596
-
597
-
598
- </span>
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
- <span class="summary_desc"><div class='inline'>
609
- <p>Removes the given child node from the receiver.</p>
610
- </div></span>
611
-
612
- </li>
613
-
614
-
615
- <li class="public ">
616
- <span class="summary_signature">
617
-
618
- <a href="#delete_from_parent-instance_method" title="#delete_from_parent (instance method)">#<strong>delete_from_parent</strong>(cleanup = true) &#x21d2; Node </a>
619
-
620
-
621
-
622
- </span>
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
- <span class="summary_desc"><div class='inline'>
633
- <p>Removes the receiver node from its parent.</p>
634
- </div></span>
635
-
636
- </li>
637
-
638
-
639
- <li class="public ">
640
- <span class="summary_signature">
641
-
642
- <a href="#parent-instance_method" title="#parent (instance method)">#<strong>parent</strong> &#x21d2; Node </a>
643
-
644
-
645
-
646
- </span>
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
- <span class="summary_desc"><div class='inline'>
657
- <p>The parent node, or <code>nil</code> if there isn&#39;t one.</p>
658
- </div></span>
659
-
660
- </li>
661
-
662
-
663
- </ul>
664
-
665
-
666
-
667
- <div id="instance_attr_details" class="attr_details">
668
- <h2>Instance Attribute Details</h2>
669
-
670
-
671
- <span id="alpha=-instance_method"></span>
672
- <div class="method_details first">
673
- <h3 class="signature first" id="alpha-instance_method">
674
-
675
- #<strong>alpha</strong> &#x21d2; <tt>Float</tt>
676
-
677
-
678
-
679
-
680
-
681
- </h3><div class="docstring">
682
- <div class="discussion">
683
-
684
- <p>Returns the opacity (alpha) level of the node, as a Float from the
685
- <code>0.0</code> to <code>1.0</code> range.</p>
686
-
687
-
688
- </div>
689
- </div>
690
- <div class="tags">
691
-
692
- <p class="tag_title">Returns:</p>
693
- <ul class="return">
694
-
695
- <li>
696
-
697
-
698
- <span class='type'>(<tt>Float</tt>)</span>
699
-
700
-
701
-
702
- &mdash;
703
- <div class='inline'>
704
- <p>the opacity (alpha) level of the node, as a Float from the <code>0.0</code>
705
- to <code>1.0</code> range.</p>
706
- </div>
707
-
708
- </li>
709
-
710
- </ul>
711
-
712
- </div><table class="source_code">
713
- <tr>
714
- <td>
715
- <pre class="lines">
716
-
717
-
718
- 694
719
- 695
720
- 696</pre>
721
- </td>
722
- <td>
723
- <pre class="code"><span class="info file"># File 'motion-game', line 694</span>
724
-
725
- <span class='kw'>def</span> <span class='id identifier rubyid_alpha'>alpha</span>
726
- <span class='ivar'>@alpha</span>
727
- <span class='kw'>end</span></pre>
728
- </td>
729
- </tr>
730
- </table>
731
- </div>
732
-
733
-
734
- <span id="anchor_point=-instance_method"></span>
735
- <div class="method_details ">
736
- <h3 class="signature " id="anchor_point-instance_method">
737
-
738
- #<strong>anchor_point</strong> &#x21d2; <tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>
739
-
740
-
741
-
742
-
743
-
744
- </h3><div class="docstring">
745
- <div class="discussion">
746
-
747
- <p>The anchor point of the node, as a set of percentage coordinates. The
748
- anchor point represents where the node will be attached to its parent, and
749
- is normalized as a percentage. <tt>[0, 0]</tt> means the bottom-left corner, and
750
- <tt>[1, 1]</tt> the top-right corner. You can also use values lower than
751
- <code>0</code> and higher than <code>1</code>. The default anchor point
752
- value is <tt>[0.5, 0.5]</tt>, which means the center of the parent.</p>
753
-
754
-
755
- </div>
756
- </div>
757
- <div class="tags">
758
-
759
- <p class="tag_title">Returns:</p>
760
- <ul class="return">
761
-
762
- <li>
763
-
764
-
765
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
766
-
767
-
768
-
769
- &mdash;
770
- <div class='inline'>
771
- <p>the anchor point of the node.</p>
772
- </div>
773
-
774
- </li>
775
-
776
- </ul>
777
-
778
- </div><table class="source_code">
779
- <tr>
780
- <td>
781
- <pre class="lines">
782
-
783
-
784
- 679
785
- 680
786
- 681</pre>
787
- </td>
788
- <td>
789
- <pre class="code"><span class="info file"># File 'motion-game', line 679</span>
790
-
791
- <span class='kw'>def</span> <span class='id identifier rubyid_anchor_point'>anchor_point</span>
792
- <span class='ivar'>@anchor_point</span>
793
- <span class='kw'>end</span></pre>
794
- </td>
795
- </tr>
796
- </table>
797
- </div>
798
-
799
-
800
- <span id="color=-instance_method"></span>
801
- <div class="method_details ">
802
- <h3 class="signature " id="color-instance_method">
803
-
804
- #<strong>color</strong> &#x21d2; <tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>
805
-
806
-
807
-
808
-
809
-
810
- </h3><div class="docstring">
811
- <div class="discussion">
812
-
813
- <p>Returns the color of the node.</p>
814
-
815
-
816
- </div>
817
- </div>
818
- <div class="tags">
819
-
820
- <p class="tag_title">Returns:</p>
821
- <ul class="return">
822
-
823
- <li>
824
-
825
-
826
- <span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
827
-
828
-
829
-
830
- &mdash;
831
- <div class='inline'>
832
- <p>the color of the node.</p>
833
- </div>
834
-
835
- </li>
836
-
837
- </ul>
838
-
839
- </div><table class="source_code">
840
- <tr>
841
- <td>
842
- <pre class="lines">
843
-
844
-
845
- 701
846
- 702
847
- 703</pre>
848
- </td>
849
- <td>
850
- <pre class="code"><span class="info file"># File 'motion-game', line 701</span>
851
-
852
- <span class='kw'>def</span> <span class='id identifier rubyid_color'>color</span>
853
- <span class='ivar'>@color</span>
854
- <span class='kw'>end</span></pre>
855
- </td>
856
- </tr>
857
- </table>
858
- </div>
859
-
860
-
861
- <span id="name=-instance_method"></span>
862
- <div class="method_details ">
863
- <h3 class="signature " id="name-instance_method">
864
-
865
- #<strong>name</strong> &#x21d2; <tt>String</tt>
866
-
867
-
868
-
869
-
870
-
871
- </h3><div class="docstring">
872
- <div class="discussion">
873
-
874
- <p>Returns a name to easily identify the node in the graph.</p>
875
-
876
-
877
- </div>
878
- </div>
879
- <div class="tags">
880
-
881
- <p class="tag_title">Returns:</p>
882
- <ul class="return">
883
-
884
- <li>
885
-
886
-
887
- <span class='type'>(<tt>String</tt>)</span>
888
-
889
-
890
-
891
- &mdash;
892
- <div class='inline'>
893
- <p>a name to easily identify the node in the graph.</p>
894
- </div>
895
-
896
- </li>
897
-
898
- </ul>
899
-
900
- </div><table class="source_code">
901
- <tr>
902
- <td>
903
- <pre class="lines">
904
-
905
-
906
- 715
907
- 716
908
- 717</pre>
909
- </td>
910
- <td>
911
- <pre class="code"><span class="info file"># File 'motion-game', line 715</span>
912
-
913
- <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
914
- <span class='ivar'>@name</span>
915
- <span class='kw'>end</span></pre>
916
- </td>
917
- </tr>
918
- </table>
919
- </div>
920
-
921
-
922
- <span id="position=-instance_method"></span>
923
- <div class="method_details ">
924
- <h3 class="signature " id="position-instance_method">
925
-
926
- #<strong>position</strong> &#x21d2; <tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>
927
-
928
-
929
-
930
-
931
-
932
- </h3><div class="docstring">
933
- <div class="discussion">
934
-
935
- <p>Returns the <tt>[x, y]</tt> position of the node in its parent&#39;s coordinate
936
- system.</p>
937
-
938
-
939
- </div>
940
- </div>
941
- <div class="tags">
942
-
943
- <p class="tag_title">Returns:</p>
944
- <ul class="return">
945
-
946
- <li>
947
-
948
-
949
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
950
-
951
-
952
-
953
- &mdash;
954
- <div class='inline'>
955
- <p>the <tt>[x, y]</tt> position of the node in its parent&#39;s coordinate system.</p>
956
- </div>
957
-
958
- </li>
959
-
960
- </ul>
961
-
962
- </div><table class="source_code">
963
- <tr>
964
- <td>
965
- <pre class="lines">
966
-
967
-
968
- 683
969
- 684
970
- 685</pre>
971
- </td>
972
- <td>
973
- <pre class="code"><span class="info file"># File 'motion-game', line 683</span>
974
-
975
- <span class='kw'>def</span> <span class='id identifier rubyid_position'>position</span>
976
- <span class='ivar'>@position</span>
977
- <span class='kw'>end</span></pre>
978
- </td>
979
- </tr>
980
- </table>
981
- </div>
982
-
983
-
984
- <span id="rotation=-instance_method"></span>
985
- <div class="method_details ">
986
- <h3 class="signature " id="rotation-instance_method">
987
-
988
- #<strong>rotation</strong> &#x21d2; <tt>Float</tt>
989
-
990
-
991
-
992
-
993
-
994
- </h3><div class="docstring">
995
- <div class="discussion">
996
-
997
- <p>Returns the rotation of the node in degrees. 0 is the default angle.
998
- Positive values rotate node clockwise, and negative values for
999
- anti-clockwise</p>
1000
-
1001
-
1002
- </div>
1003
- </div>
1004
- <div class="tags">
1005
-
1006
- <p class="tag_title">Returns:</p>
1007
- <ul class="return">
1008
-
1009
- <li>
1010
-
1011
-
1012
- <span class='type'>(<tt>Float</tt>)</span>
1013
-
1014
-
1015
-
1016
- &mdash;
1017
- <div class='inline'>
1018
- <p>the rotation of the node in degrees.</p>
1019
- </div>
1020
-
1021
- </li>
1022
-
1023
- </ul>
1024
-
1025
- </div><table class="source_code">
1026
- <tr>
1027
- <td>
1028
- <pre class="lines">
1029
-
1030
-
1031
- 707
1032
- 708
1033
- 709</pre>
1034
- </td>
1035
- <td>
1036
- <pre class="code"><span class="info file"># File 'motion-game', line 707</span>
1037
-
1038
- <span class='kw'>def</span> <span class='id identifier rubyid_rotation'>rotation</span>
1039
- <span class='ivar'>@rotation</span>
1040
- <span class='kw'>end</span></pre>
1041
- </td>
1042
- </tr>
1043
- </table>
1044
- </div>
1045
-
1046
-
1047
- <span id="scale=-instance_method"></span>
1048
- <div class="method_details ">
1049
- <h3 class="signature " id="scale-instance_method">
1050
-
1051
- #<strong>scale</strong> &#x21d2; <tt>Float</tt>
1052
-
1053
-
1054
-
1055
-
1056
-
1057
- </h3><div class="docstring">
1058
- <div class="discussion">
1059
-
1060
- <p>Returns the scaling factor of the node, which multiplies its width, height
1061
- and depth.</p>
1062
-
1063
-
1064
- </div>
1065
- </div>
1066
- <div class="tags">
1067
-
1068
- <p class="tag_title">Returns:</p>
1069
- <ul class="return">
1070
-
1071
- <li>
1072
-
1073
-
1074
- <span class='type'>(<tt>Float</tt>)</span>
1075
-
1076
-
1077
-
1078
- &mdash;
1079
- <div class='inline'>
1080
- <p>the scaling factor.</p>
1081
- </div>
1082
-
1083
- </li>
1084
-
1085
- </ul>
1086
-
1087
- </div><table class="source_code">
1088
- <tr>
1089
- <td>
1090
- <pre class="lines">
1091
-
1092
-
1093
- 712
1094
- 713
1095
- 714</pre>
1096
- </td>
1097
- <td>
1098
- <pre class="code"><span class="info file"># File 'motion-game', line 712</span>
1099
-
1100
- <span class='kw'>def</span> <span class='id identifier rubyid_scale'>scale</span>
1101
- <span class='ivar'>@scale</span>
1102
- <span class='kw'>end</span></pre>
1103
- </td>
1104
- </tr>
1105
- </table>
1106
- </div>
1107
-
1108
-
1109
- <span id="size=-instance_method"></span>
1110
- <div class="method_details ">
1111
- <h3 class="signature " id="size-instance_method">
1112
-
1113
- #<strong>size</strong> &#x21d2; <tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>
1114
-
1115
-
1116
-
1117
-
1118
-
1119
- </h3><div class="docstring">
1120
- <div class="discussion">
1121
-
1122
- <p>Returns the content size of the node.</p>
1123
-
1124
-
1125
- </div>
1126
- </div>
1127
- <div class="tags">
1128
-
1129
- <p class="tag_title">Returns:</p>
1130
- <ul class="return">
1131
-
1132
- <li>
1133
-
1134
-
1135
- <span class='type'>(<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>)</span>
1136
-
1137
-
1138
-
1139
- &mdash;
1140
- <div class='inline'>
1141
- <p>the content size of the node.</p>
1142
- </div>
1143
-
1144
- </li>
1145
-
1146
- </ul>
1147
-
1148
- </div><table class="source_code">
1149
- <tr>
1150
- <td>
1151
- <pre class="lines">
1152
-
1153
-
1154
- 686
1155
- 687
1156
- 688</pre>
1157
- </td>
1158
- <td>
1159
- <pre class="code"><span class="info file"># File 'motion-game', line 686</span>
1160
-
1161
- <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
1162
- <span class='ivar'>@size</span>
1163
- <span class='kw'>end</span></pre>
1164
- </td>
1165
- </tr>
1166
- </table>
1167
- </div>
1168
-
1169
-
1170
- <span id="visible?=-instance_method"></span>
1171
- <div class="method_details ">
1172
- <h3 class="signature " id="visible?-instance_method">
1173
-
1174
- #<strong>visible?</strong> &#x21d2; <tt>Boolean</tt>
1175
-
1176
-
1177
-
1178
-
1179
-
1180
- </h3><div class="docstring">
1181
- <div class="discussion">
1182
-
1183
- <p>Returns whether the node should be visible. The default value is true.</p>
1184
-
1185
-
1186
- </div>
1187
- </div>
1188
- <div class="tags">
1189
-
1190
- <p class="tag_title">Returns:</p>
1191
- <ul class="return">
1192
-
1193
- <li>
1194
-
1195
-
1196
- <span class='type'>(<tt>Boolean</tt>)</span>
1197
-
1198
-
1199
-
1200
- &mdash;
1201
- <div class='inline'>
1202
- <p>whether the node should be visible. The default value is true.</p>
1203
- </div>
1204
-
1205
- </li>
1206
-
1207
- </ul>
1208
-
1209
- </div><table class="source_code">
1210
- <tr>
1211
- <td>
1212
- <pre class="lines">
1213
-
1214
-
1215
- 690
1216
- 691
1217
- 692</pre>
1218
- </td>
1219
- <td>
1220
- <pre class="code"><span class="info file"># File 'motion-game', line 690</span>
1221
-
1222
- def visible?
1223
- @visible?
1224
- end</pre>
1225
- </td>
1226
- </tr>
1227
- </table>
1228
- </div>
1229
-
1230
-
1231
- <span id="z_index=-instance_method"></span>
1232
- <div class="method_details ">
1233
- <h3 class="signature " id="z_index-instance_method">
1234
-
1235
- #<strong>z_index</strong> &#x21d2; <tt>Integer</tt>
1236
-
1237
-
1238
-
1239
-
1240
-
1241
- </h3><div class="docstring">
1242
- <div class="discussion">
1243
-
1244
- <p>Returns the local z-order index of the receiver in the scene graph, which
1245
- will determine its priority when rendering the scene.</p>
1246
-
1247
-
1248
- </div>
1249
- </div>
1250
- <div class="tags">
1251
-
1252
- <p class="tag_title">Returns:</p>
1253
- <ul class="return">
1254
-
1255
- <li>
1256
-
1257
-
1258
- <span class='type'>(<tt>Integer</tt>)</span>
1259
-
1260
-
1261
-
1262
- &mdash;
1263
- <div class='inline'>
1264
- <p>the local z-order index of the receiver in the scene graph, which will
1265
- determine its priority when rendering the scene.</p>
1266
- </div>
1267
-
1268
- </li>
1269
-
1270
- </ul>
1271
-
1272
- </div><table class="source_code">
1273
- <tr>
1274
- <td>
1275
- <pre class="lines">
1276
-
1277
-
1278
- 698
1279
- 699
1280
- 700</pre>
1281
- </td>
1282
- <td>
1283
- <pre class="code"><span class="info file"># File 'motion-game', line 698</span>
1284
-
1285
- <span class='kw'>def</span> <span class='id identifier rubyid_z_index'>z_index</span>
1286
- <span class='ivar'>@z_index</span>
1287
- <span class='kw'>end</span></pre>
1288
- </td>
1289
- </tr>
1290
- </table>
1291
- </div>
1292
-
1293
- </div>
1294
-
1295
-
1296
- <div id="instance_method_details" class="method_details_list">
1297
- <h2>Instance Method Details</h2>
1298
-
1299
-
1300
- <div class="method_details first">
1301
- <h3 class="signature first" id="add-instance_method">
1302
-
1303
- #<strong>add</strong>(node, zpos = 0) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1304
-
1305
-
1306
-
1307
-
1308
-
1309
- </h3><div class="docstring">
1310
- <div class="discussion">
1311
-
1312
- <p>Adds a child node to the receiver with a local z-order.</p>
1313
-
1314
-
1315
- </div>
1316
- </div>
1317
- <div class="tags">
1318
- <p class="tag_title">Parameters:</p>
1319
- <ul class="param">
1320
-
1321
- <li>
1322
-
1323
- <span class='name'>node</span>
1324
-
1325
-
1326
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1327
-
1328
-
1329
-
1330
- &mdash;
1331
- <div class='inline'>
1332
- <p>the child to add.</p>
1333
- </div>
1334
-
1335
- </li>
1336
-
1337
- <li>
1338
-
1339
- <span class='name'>zpos</span>
1340
-
1341
-
1342
- <span class='type'>(<tt>Integer</tt>)</span>
1343
-
1344
-
1345
- <em class="default">(defaults to: <tt>0</tt>)</em>
1346
-
1347
-
1348
- &mdash;
1349
- <div class='inline'>
1350
- <p>the local z-order.</p>
1351
- </div>
1352
-
1353
- </li>
1354
-
1355
- </ul>
1356
-
1357
- <p class="tag_title">Returns:</p>
1358
- <ul class="return">
1359
-
1360
- <li>
1361
-
1362
-
1363
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1364
-
1365
-
1366
-
1367
- &mdash;
1368
- <div class='inline'>
1369
- <p>the receiver.</p>
1370
- </div>
1371
-
1372
- </li>
1373
-
1374
- </ul>
1375
-
1376
- </div><table class="source_code">
1377
- <tr>
1378
- <td>
1379
- <pre class="lines">
1380
-
1381
-
1382
- 745</pre>
1383
- </td>
1384
- <td>
1385
- <pre class="code"><span class="info file"># File 'motion-game', line 745</span>
1386
-
1387
- <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>
1388
- </td>
1389
- </tr>
1390
- </table>
1391
- </div>
1392
-
1393
- <div class="method_details ">
1394
- <h3 class="signature " id="children-instance_method">
1395
-
1396
- #<strong>children</strong> &#x21d2; <tt>Array&lt;<span class='object_link'><a href="" title="MG::Node (class)">Node</a></span>&gt;</tt>
1397
-
1398
-
1399
-
1400
-
1401
-
1402
- </h3><div class="docstring">
1403
- <div class="discussion">
1404
-
1405
- <p>Returns an array of <code>Node</code> objects that have been added to the
1406
- receiver.</p>
1407
-
1408
-
1409
- </div>
1410
- </div>
1411
- <div class="tags">
1412
-
1413
- <p class="tag_title">Returns:</p>
1414
- <ul class="return">
1415
-
1416
- <li>
1417
-
1418
-
1419
- <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="" title="MG::Node (class)">Node</a></span>&gt;</tt>)</span>
1420
-
1421
-
1422
-
1423
- &mdash;
1424
- <div class='inline'>
1425
- <p>an array of <code>Node</code> objects that have been added to the receiver.</p>
1426
- </div>
1427
-
1428
- </li>
1429
-
1430
- </ul>
1431
-
1432
- </div><table class="source_code">
1433
- <tr>
1434
- <td>
1435
- <pre class="lines">
1436
-
1437
-
1438
- 764</pre>
1439
- </td>
1440
- <td>
1441
- <pre class="code"><span class="info file"># File 'motion-game', line 764</span>
1442
-
1443
- <span class='kw'>def</span> <span class='id identifier rubyid_children'>children</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1444
- </td>
1445
- </tr>
1446
- </table>
1447
- </div>
1448
-
1449
- <div class="method_details ">
1450
- <h3 class="signature " id="clear-instance_method">
1451
-
1452
- #<strong>clear</strong>(cleanup = true) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1453
-
1454
-
1455
-
1456
-
1457
-
1458
- </h3><div class="docstring">
1459
- <div class="discussion">
1460
-
1461
- <p>Removes all children nodes from the receiver.</p>
1462
-
1463
-
1464
- </div>
1465
- </div>
1466
- <div class="tags">
1467
- <p class="tag_title">Parameters:</p>
1468
- <ul class="param">
1469
-
1470
- <li>
1471
-
1472
- <span class='name'>cleanup</span>
1473
-
1474
-
1475
- <span class='type'>(<tt>Boolean</tt>)</span>
1476
-
1477
-
1478
- <em class="default">(defaults to: <tt>true</tt>)</em>
1479
-
1480
-
1481
- &mdash;
1482
- <div class='inline'>
1483
- <p>cleans all running actions on children before removing them.</p>
1484
- </div>
1485
-
1486
- </li>
1487
-
1488
- </ul>
1489
-
1490
- <p class="tag_title">Returns:</p>
1491
- <ul class="return">
1492
-
1493
- <li>
1494
-
1495
-
1496
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1497
-
1498
-
1499
-
1500
- &mdash;
1501
- <div class='inline'>
1502
- <p>the receiver.</p>
1503
- </div>
1504
-
1505
- </li>
1506
-
1507
- </ul>
1508
-
1509
- </div><table class="source_code">
1510
- <tr>
1511
- <td>
1512
- <pre class="lines">
1513
-
1514
-
1515
- 751</pre>
1516
- </td>
1517
- <td>
1518
- <pre class="code"><span class="info file"># File 'motion-game', line 751</span>
1519
-
1520
- <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>
1521
- </td>
1522
- </tr>
1523
- </table>
1524
- </div>
1525
-
1526
- <div class="method_details ">
1527
- <h3 class="signature " id="delete-instance_method">
1528
-
1529
- #<strong>delete</strong>(node, cleanup = true) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1530
-
1531
-
1532
-
1533
-
1534
-
1535
- </h3><div class="docstring">
1536
- <div class="discussion">
1537
-
1538
- <p>Removes the given child node from the receiver.</p>
1539
-
1540
-
1541
- </div>
1542
- </div>
1543
- <div class="tags">
1544
- <p class="tag_title">Parameters:</p>
1545
- <ul class="param">
1546
-
1547
- <li>
1548
-
1549
- <span class='name'>cleanup</span>
1550
-
1551
-
1552
- <span class='type'>(<tt>Boolean</tt>)</span>
1553
-
1554
-
1555
- <em class="default">(defaults to: <tt>true</tt>)</em>
1556
-
1557
-
1558
- &mdash;
1559
- <div class='inline'>
1560
- <p>cleans all running actions on child before removing it.</p>
1561
- </div>
1562
-
1563
- </li>
1564
-
1565
- </ul>
1566
-
1567
- <p class="tag_title">Returns:</p>
1568
- <ul class="return">
1569
-
1570
- <li>
1571
-
1572
-
1573
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1574
-
1575
-
1576
-
1577
- &mdash;
1578
- <div class='inline'>
1579
- <p>the receiver.</p>
1580
- </div>
1581
-
1582
- </li>
1583
-
1584
- </ul>
1585
-
1586
- </div><table class="source_code">
1587
- <tr>
1588
- <td>
1589
- <pre class="lines">
1590
-
1591
-
1592
- 757</pre>
1593
- </td>
1594
- <td>
1595
- <pre class="code"><span class="info file"># File 'motion-game', line 757</span>
1596
-
1597
- <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>
1598
- </td>
1599
- </tr>
1600
- </table>
1601
- </div>
1602
-
1603
- <div class="method_details ">
1604
- <h3 class="signature " id="delete_from_parent-instance_method">
1605
-
1606
- #<strong>delete_from_parent</strong>(cleanup = true) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1607
-
1608
-
1609
-
1610
-
1611
-
1612
- </h3><div class="docstring">
1613
- <div class="discussion">
1614
-
1615
- <p>Removes the receiver node from its parent. Same as:</p>
1616
-
1617
- <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>
1618
- </code></pre>
1619
-
1620
-
1621
- </div>
1622
- </div>
1623
- <div class="tags">
1624
- <p class="tag_title">Parameters:</p>
1625
- <ul class="param">
1626
-
1627
- <li>
1628
-
1629
- <span class='name'>cleanup</span>
1630
-
1631
-
1632
- <span class='type'>(<tt>Boolean</tt>)</span>
1633
-
1634
-
1635
- <em class="default">(defaults to: <tt>true</tt>)</em>
1636
-
1637
-
1638
- &mdash;
1639
- <div class='inline'>
1640
- <p>cleans all running actions on the receiver before removing it from the
1641
- parent.</p>
1642
- </div>
1643
-
1644
- </li>
1645
-
1646
- </ul>
1647
-
1648
- <p class="tag_title">Returns:</p>
1649
- <ul class="return">
1650
-
1651
- <li>
1652
-
1653
-
1654
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1655
-
1656
-
1657
-
1658
- &mdash;
1659
- <div class='inline'>
1660
- <p>the receiver.</p>
1661
- </div>
1662
-
1663
- </li>
1664
-
1665
- </ul>
1666
-
1667
- </div><table class="source_code">
1668
- <tr>
1669
- <td>
1670
- <pre class="lines">
1671
-
1672
-
1673
- 772</pre>
1674
- </td>
1675
- <td>
1676
- <pre class="code"><span class="info file"># File 'motion-game', line 772</span>
1677
-
1678
- <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>
1679
- </td>
1680
- </tr>
1681
- </table>
1682
- </div>
1683
-
1684
- <div class="method_details ">
1685
- <h3 class="signature " id="intersects?-instance_method">
1686
-
1687
- #<strong>intersects?</strong>(node) &#x21d2; <tt>Boolean</tt>
1688
-
1689
-
1690
-
1691
-
1692
-
1693
- </h3><div class="docstring">
1694
- <div class="discussion">
1695
-
1696
- <p>Returns whether the receiver&#39;s bounding box intersects with the given
1697
- node&#39;s bounding box.</p>
1698
-
1699
-
1700
- </div>
1701
- </div>
1702
- <div class="tags">
1703
- <p class="tag_title">Parameters:</p>
1704
- <ul class="param">
1705
-
1706
- <li>
1707
-
1708
- <span class='name'>node</span>
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>a given Node object.</p>
1718
- </div>
1719
-
1720
- </li>
1721
-
1722
- </ul>
1723
-
1724
- <p class="tag_title">Returns:</p>
1725
- <ul class="return">
1726
-
1727
- <li>
1728
-
1729
-
1730
- <span class='type'>(<tt>Boolean</tt>)</span>
1731
-
1732
-
1733
-
1734
- &mdash;
1735
- <div class='inline'>
1736
- <p>whether the receiver&#39;s bounding box intersects with the given
1737
- node&#39;s bounding box.</p>
1738
- </div>
1739
-
1740
- </li>
1741
-
1742
- </ul>
1743
-
1744
- </div><table class="source_code">
1745
- <tr>
1746
- <td>
1747
- <pre class="lines">
1748
-
1749
-
1750
- 736</pre>
1751
- </td>
1752
- <td>
1753
- <pre class="code"><span class="info file"># File 'motion-game', line 736</span>
1754
-
1755
- <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>
1756
- </td>
1757
- </tr>
1758
- </table>
1759
- </div>
1760
-
1761
- <div class="method_details ">
1762
- <h3 class="signature " id="parent-instance_method">
1763
-
1764
- #<strong>parent</strong> &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1765
-
1766
-
1767
-
1768
-
1769
-
1770
- </h3><div class="docstring">
1771
- <div class="discussion">
1772
-
1773
- <p>Returns the parent node, or <code>nil</code> if there isn&#39;t one.</p>
1774
-
1775
-
1776
- </div>
1777
- </div>
1778
- <div class="tags">
1779
-
1780
- <p class="tag_title">Returns:</p>
1781
- <ul class="return">
1782
-
1783
- <li>
1784
-
1785
-
1786
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1787
-
1788
-
1789
-
1790
- &mdash;
1791
- <div class='inline'>
1792
- <p>the parent node, or <code>nil</code> if there isn&#39;t one.</p>
1793
- </div>
1794
-
1795
- </li>
1796
-
1797
- </ul>
1798
-
1799
- </div><table class="source_code">
1800
- <tr>
1801
- <td>
1802
- <pre class="lines">
1803
-
1804
-
1805
- 760</pre>
1806
- </td>
1807
- <td>
1808
- <pre class="code"><span class="info file"># File 'motion-game', line 760</span>
1809
-
1810
- <span class='kw'>def</span> <span class='id identifier rubyid_parent'>parent</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1811
- </td>
1812
- </tr>
1813
- </table>
1814
- </div>
1815
-
1816
- <div class="method_details ">
1817
- <h3 class="signature " id="run_action-instance_method">
1818
-
1819
- #<strong>run_action</strong>(action) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1820
-
1821
-
1822
-
1823
-
1824
-
1825
- </h3><div class="docstring">
1826
- <div class="discussion">
1827
-
1828
- <p>Run the provided action on the receiver node.</p>
1829
-
1830
-
1831
- </div>
1832
- </div>
1833
- <div class="tags">
1834
-
1835
- <p class="tag_title">Returns:</p>
1836
- <ul class="return">
1837
-
1838
- <li>
1839
-
1840
-
1841
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1842
-
1843
-
1844
-
1845
- &mdash;
1846
- <div class='inline'>
1847
- <p>the receiver.</p>
1848
- </div>
1849
-
1850
- </li>
1851
-
1852
- </ul>
1853
-
1854
- </div><table class="source_code">
1855
- <tr>
1856
- <td>
1857
- <pre class="lines">
1858
-
1859
-
1860
- 722</pre>
1861
- </td>
1862
- <td>
1863
- <pre class="code"><span class="info file"># File 'motion-game', line 722</span>
1864
-
1865
- <span class='kw'>def</span> <span class='id identifier rubyid_run_action'>run_action</span><span class='lparen'>(</span><span class='id identifier rubyid_action'>action</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1866
- </td>
1867
- </tr>
1868
- </table>
1869
- </div>
1870
-
1871
- <div class="method_details ">
1872
- <h3 class="signature " id="stop_action-instance_method">
1873
-
1874
- #<strong>stop_action</strong>(action) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1875
-
1876
-
1877
-
1878
-
1879
-
1880
- </h3><div class="docstring">
1881
- <div class="discussion">
1882
-
1883
- <p>Stop the provided action</p>
1884
-
1885
-
1886
- </div>
1887
- </div>
1888
- <div class="tags">
1889
- <p class="tag_title">Parameters:</p>
1890
- <ul class="param">
1891
-
1892
- <li>
1893
-
1894
- <span class='name'>action</span>
1895
-
1896
-
1897
- <span class='type'>(<tt><span class='object_link'><a href="Action.html" title="MG::Action (class)">Action</a></span></tt>)</span>
1898
-
1899
-
1900
-
1901
- &mdash;
1902
- <div class='inline'>
1903
- <p>the action to stop.</p>
1904
- </div>
1905
-
1906
- </li>
1907
-
1908
- </ul>
1909
-
1910
- <p class="tag_title">Returns:</p>
1911
- <ul class="return">
1912
-
1913
- <li>
1914
-
1915
-
1916
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1917
-
1918
-
1919
-
1920
- &mdash;
1921
- <div class='inline'>
1922
- <p>the receiver.</p>
1923
- </div>
1924
-
1925
- </li>
1926
-
1927
- </ul>
1928
-
1929
- </div><table class="source_code">
1930
- <tr>
1931
- <td>
1932
- <pre class="lines">
1933
-
1934
-
1935
- 731</pre>
1936
- </td>
1937
- <td>
1938
- <pre class="code"><span class="info file"># File 'motion-game', line 731</span>
1939
-
1940
- <span class='kw'>def</span> <span class='id identifier rubyid_stop_action'>stop_action</span><span class='lparen'>(</span><span class='id identifier rubyid_action'>action</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1941
- </td>
1942
- </tr>
1943
- </table>
1944
- </div>
1945
-
1946
- <div class="method_details ">
1947
- <h3 class="signature " id="stop_all_actions-instance_method">
1948
-
1949
- #<strong>stop_all_actions</strong> &#x21d2; <tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>
1950
-
1951
-
1952
-
1953
-
1954
-
1955
- </h3><div class="docstring">
1956
- <div class="discussion">
1957
-
1958
- <p>Stop all actions running on the node</p>
1959
-
1960
-
1961
- </div>
1962
- </div>
1963
- <div class="tags">
1964
-
1965
- <p class="tag_title">Returns:</p>
1966
- <ul class="return">
1967
-
1968
- <li>
1969
-
1970
-
1971
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Node (class)">Node</a></span></tt>)</span>
1972
-
1973
-
1974
-
1975
- &mdash;
1976
- <div class='inline'>
1977
- <p>the receiver.</p>
1978
- </div>
1979
-
1980
- </li>
1981
-
1982
- </ul>
1983
-
1984
- </div><table class="source_code">
1985
- <tr>
1986
- <td>
1987
- <pre class="lines">
1988
-
1989
-
1990
- 726</pre>
1991
- </td>
1992
- <td>
1993
- <pre class="code"><span class="info file"># File 'motion-game', line 726</span>
1994
-
1995
- <span class='kw'>def</span> <span class='id identifier rubyid_stop_all_actions'>stop_all_actions</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1996
- </td>
1997
- </tr>
1998
- </table>
1999
- </div>
2000
-
2001
- </div>
2002
-
2003
- </div>
2004
-
2005
- <div id="footer">
2006
- Generated on Sun Dec 11 16:38:30 2016 by
2007
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2008
- 0.9.5 (ruby-2.3.3).
2009
- </div>
2010
-
2011
- </div>
2012
- </body>
2013
- </html>