felflame 1.0.2 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.mdown +56 -1
- data/Gemfile +2 -3
- data/Gemfile.lock +4 -4
- data/README.mdown +127 -74
- data/Rakefile +30 -10
- data/bin/console +3 -3
- data/docs/FelFlame/ComponentManager.html +131 -519
- data/docs/FelFlame/Components.html +29 -119
- data/docs/FelFlame/Entities.html +125 -387
- data/docs/FelFlame/Order.html +251 -0
- data/docs/FelFlame/Scenes.html +72 -68
- data/docs/FelFlame/Stage.html +30 -56
- data/docs/FelFlame/Systems.html +208 -244
- data/docs/FelFlame.html +34 -32
- data/docs/Felflame_.html +143 -0
- data/docs/_index.html +24 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +145 -83
- data/docs/file.version.html +74 -0
- data/docs/index.html +145 -83
- data/docs/method_list.html +52 -108
- data/docs/top-level-namespace.html +5 -5
- data/felflame.gemspec +21 -21
- data/lib/felflame/component_manager.rb +99 -71
- data/lib/felflame/entity_manager.rb +84 -59
- data/lib/felflame/order.rb +24 -0
- data/lib/felflame/scene_manager.rb +23 -12
- data/lib/felflame/stage_manager.rb +10 -33
- data/lib/felflame/system_manager.rb +92 -47
- data/lib/felflame/version.rb +5 -1
- data/lib/felflame.rb +26 -15
- metadata +35 -31
- data/.yardopts +0 -13
@@ -0,0 +1,251 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: FelFlame::Order
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.26
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "FelFlame::Order";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (O)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Order</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: FelFlame::Order
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
82
|
+
lib/felflame/order.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Overview</h2><div class="docstring">
|
89
|
+
<div class="discussion">
|
90
|
+
|
91
|
+
<p>Sets the priority of a list of Systems or Scenes for you in the order you pass them to this class.</p>
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<div class="tags">
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<h2>
|
108
|
+
Class Method Summary
|
109
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
110
|
+
</h2>
|
111
|
+
|
112
|
+
<ul class="summary">
|
113
|
+
|
114
|
+
<li class="public ">
|
115
|
+
<span class="summary_signature">
|
116
|
+
|
117
|
+
<a href="#sort-class_method" title="sort (class method)">.<strong>sort</strong>(*sortables) ⇒ Boolean </a>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
132
|
+
<p>Sets the priority of all items passed into this method according to the order they were passed.</p>
|
133
|
+
</div></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
138
|
+
</ul>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<div id="class_method_details" class="method_details_list">
|
144
|
+
<h2>Class Method Details</h2>
|
145
|
+
|
146
|
+
|
147
|
+
<div class="method_details first">
|
148
|
+
<h3 class="signature first" id="sort-class_method">
|
149
|
+
|
150
|
+
.<strong>sort</strong>(*sortables) ⇒ <tt>Boolean</tt>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</h3><div class="docstring">
|
157
|
+
<div class="discussion">
|
158
|
+
|
159
|
+
<p>Sets the priority of all items passed into this method according to the order they were passed. If an array is one of the elements then it will give all of those elements in the array the same priority.</p>
|
160
|
+
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
<div class="tags">
|
165
|
+
<p class="tag_title">Parameters:</p>
|
166
|
+
<ul class="param">
|
167
|
+
|
168
|
+
<li>
|
169
|
+
|
170
|
+
<span class='name'>sortables</span>
|
171
|
+
|
172
|
+
|
173
|
+
<span class='type'>(<tt>(<span class='object_link'><a href="Systems.html" title="FelFlame::Systems (class)">Systems</a></span> and Array<<span class='object_link'><a href="Systems.html" title="FelFlame::Systems (class)">Systems</a></span>>) or (<span class='object_link'><a href="Scenes.html" title="FelFlame::Scenes (class)">Scenes</a></span> and Array<<span class='object_link'><a href="Scenes.html" title="FelFlame::Scenes (class)">Scenes</a></span>>)</tt>)</span>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
</ul>
|
180
|
+
|
181
|
+
<p class="tag_title">Returns:</p>
|
182
|
+
<ul class="return">
|
183
|
+
|
184
|
+
<li>
|
185
|
+
|
186
|
+
|
187
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
—
|
192
|
+
<div class='inline'>
|
193
|
+
<p><code>true</code>.</p>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
</li>
|
197
|
+
|
198
|
+
</ul>
|
199
|
+
|
200
|
+
</div><table class="source_code">
|
201
|
+
<tr>
|
202
|
+
<td>
|
203
|
+
<pre class="lines">
|
204
|
+
|
205
|
+
|
206
|
+
11
|
207
|
+
12
|
208
|
+
13
|
209
|
+
14
|
210
|
+
15
|
211
|
+
16
|
212
|
+
17
|
213
|
+
18
|
214
|
+
19
|
215
|
+
20
|
216
|
+
21
|
217
|
+
22</pre>
|
218
|
+
</td>
|
219
|
+
<td>
|
220
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/order.rb', line 11</span>
|
221
|
+
|
222
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_sortables'>sortables</span><span class='rparen'>)</span>
|
223
|
+
<span class='id identifier rubyid_sortables'>sortables</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_sorted'>sorted</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
|
224
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span> <span class='symbol'>:priority</span>
|
225
|
+
<span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_priority'>priority</span> <span class='op'>=</span> <span class='id identifier rubyid_index'>index</span>
|
226
|
+
<span class='kw'>else</span>
|
227
|
+
<span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span>
|
228
|
+
<span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_priority'>priority</span> <span class='op'>=</span> <span class='id identifier rubyid_index'>index</span>
|
229
|
+
<span class='kw'>end</span>
|
230
|
+
<span class='kw'>end</span>
|
231
|
+
<span class='kw'>end</span>
|
232
|
+
<span class='kw'>true</span>
|
233
|
+
<span class='kw'>end</span></pre>
|
234
|
+
</td>
|
235
|
+
</tr>
|
236
|
+
</table>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
</div>
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div id="footer">
|
244
|
+
Generated on Tue Feb 1 23:28:33 2022 by
|
245
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
246
|
+
0.9.26 (ruby-2.7.3).
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</div>
|
250
|
+
</body>
|
251
|
+
</html>
|
data/docs/FelFlame/Scenes.html
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
<div id="menu">
|
38
38
|
|
39
39
|
<a href="../_index.html">Index (S)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
40
|
+
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span>
|
41
41
|
»
|
42
42
|
<span class="title">Scenes</span>
|
43
43
|
|
@@ -94,8 +94,8 @@
|
|
94
94
|
|
95
95
|
<dl>
|
96
96
|
<dt>Defined in:</dt>
|
97
|
-
<dd>felflame.rb<span class="defines">,<br />
|
98
|
-
scene_manager.rb</span>
|
97
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
98
|
+
lib/felflame/scene_manager.rb</span>
|
99
99
|
</dd>
|
100
100
|
</dl>
|
101
101
|
|
@@ -104,9 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Creates and manages Scenes. Scenes are collections of Systems, and execute all the Systems when called upon.</p>
|
108
|
-
|
109
|
-
<p>TODO: Improve Scenes overview</p>
|
107
|
+
<p>Creates and manages Scenes. Scenes are collections of Systems, and execute all the Systems when called upon. Any scenes you create are accessable under the <span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span> namespace as Constants.</p>
|
110
108
|
|
111
109
|
|
112
110
|
</div>
|
@@ -124,7 +122,7 @@
|
|
124
122
|
<li class="public ">
|
125
123
|
<span class="summary_signature">
|
126
124
|
|
127
|
-
<a href="#
|
125
|
+
<a href="#priority-instance_method" title="#priority (instance method)">#<strong>priority</strong> ⇒ Object </a>
|
128
126
|
|
129
127
|
|
130
128
|
|
@@ -133,8 +131,6 @@
|
|
133
131
|
|
134
132
|
|
135
133
|
|
136
|
-
<span class="note title readonly">readonly</span>
|
137
|
-
|
138
134
|
|
139
135
|
|
140
136
|
|
@@ -144,7 +140,7 @@
|
|
144
140
|
|
145
141
|
|
146
142
|
<span class="summary_desc"><div class='inline'>
|
147
|
-
<p>
|
143
|
+
<p>How early this Scene should be executed in a list of Scenes.</p>
|
148
144
|
</div></span>
|
149
145
|
|
150
146
|
</li>
|
@@ -162,6 +158,8 @@
|
|
162
158
|
|
163
159
|
|
164
160
|
|
161
|
+
<span class="note title readonly">readonly</span>
|
162
|
+
|
165
163
|
|
166
164
|
|
167
165
|
|
@@ -265,7 +263,7 @@
|
|
265
263
|
<li class="public ">
|
266
264
|
<span class="summary_signature">
|
267
265
|
|
268
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name) ⇒ Scenes </a>
|
266
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, priority: 0) ⇒ Scenes </a>
|
269
267
|
|
270
268
|
|
271
269
|
|
@@ -306,7 +304,7 @@
|
|
306
304
|
|
307
305
|
|
308
306
|
<span class="summary_desc"><div class='inline'>
|
309
|
-
<p>Removes any number of
|
307
|
+
<p>Removes any number of Systems from this Scene.</p>
|
310
308
|
</div></span>
|
311
309
|
|
312
310
|
</li>
|
@@ -321,7 +319,7 @@
|
|
321
319
|
<div class="method_details first">
|
322
320
|
<h3 class="signature first" id="initialize-instance_method">
|
323
321
|
|
324
|
-
#<strong>initialize</strong>(name) ⇒ <tt><span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span></tt>
|
322
|
+
#<strong>initialize</strong>(name, priority: 0) ⇒ <tt><span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span></tt>
|
325
323
|
|
326
324
|
|
327
325
|
|
@@ -364,17 +362,17 @@
|
|
364
362
|
<pre class="lines">
|
365
363
|
|
366
364
|
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
365
|
+
22
|
366
|
+
23
|
367
|
+
24
|
368
|
+
25</pre>
|
371
369
|
</td>
|
372
370
|
<td>
|
373
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
371
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 22</span>
|
374
372
|
|
375
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
376
|
-
<span class='
|
377
|
-
<span class='
|
373
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>priority:</span> <span class='int'>0</span><span class='rparen'>)</span>
|
374
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_priority'>priority</span> <span class='op'>=</span> <span class='id identifier rubyid_priority'>priority</span>
|
375
|
+
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_set'>const_set</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='kw'>self</span><span class='rparen'>)</span>
|
378
376
|
<span class='kw'>end</span></pre>
|
379
377
|
</td>
|
380
378
|
</tr>
|
@@ -387,11 +385,11 @@
|
|
387
385
|
<h2>Instance Attribute Details</h2>
|
388
386
|
|
389
387
|
|
390
|
-
<span id=""></span>
|
388
|
+
<span id="priority=-instance_method"></span>
|
391
389
|
<div class="method_details first">
|
392
|
-
<h3 class="signature first" id="
|
390
|
+
<h3 class="signature first" id="priority-instance_method">
|
393
391
|
|
394
|
-
#<strong>
|
392
|
+
#<strong>priority</strong> ⇒ <tt>Object</tt>
|
395
393
|
|
396
394
|
|
397
395
|
|
@@ -400,7 +398,7 @@
|
|
400
398
|
</h3><div class="docstring">
|
401
399
|
<div class="discussion">
|
402
400
|
|
403
|
-
<p>
|
401
|
+
<p>How early this Scene should be executed in a list of Scenes</p>
|
404
402
|
|
405
403
|
|
406
404
|
</div>
|
@@ -414,15 +412,15 @@
|
|
414
412
|
<pre class="lines">
|
415
413
|
|
416
414
|
|
417
|
-
|
418
|
-
|
419
|
-
|
415
|
+
12
|
416
|
+
13
|
417
|
+
14</pre>
|
420
418
|
</td>
|
421
419
|
<td>
|
422
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
420
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 12</span>
|
423
421
|
|
424
|
-
<span class='kw'>def</span> <span class='id identifier
|
425
|
-
<span class='ivar'>@
|
422
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_priority'>priority</span>
|
423
|
+
<span class='ivar'>@priority</span>
|
426
424
|
<span class='kw'>end</span></pre>
|
427
425
|
</td>
|
428
426
|
</tr>
|
@@ -470,12 +468,12 @@
|
|
470
468
|
<pre class="lines">
|
471
469
|
|
472
470
|
|
473
|
-
|
474
|
-
|
475
|
-
|
471
|
+
29
|
472
|
+
30
|
473
|
+
31</pre>
|
476
474
|
</td>
|
477
475
|
<td>
|
478
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
476
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 29</span>
|
479
477
|
|
480
478
|
<span class='kw'>def</span> <span class='id identifier rubyid_systems'>systems</span>
|
481
479
|
<span class='ivar'>@systems</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -536,20 +534,24 @@
|
|
536
534
|
<pre class="lines">
|
537
535
|
|
538
536
|
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
537
|
+
42
|
538
|
+
43
|
539
|
+
44
|
540
|
+
45
|
541
|
+
46
|
542
|
+
47
|
543
|
+
48
|
544
|
+
49</pre>
|
545
545
|
</td>
|
546
546
|
<td>
|
547
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
547
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 42</span>
|
548
548
|
|
549
549
|
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_systems_to_add'>systems_to_add</span><span class='rparen'>)</span>
|
550
550
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>|=</span> <span class='id identifier rubyid_systems_to_add'>systems_to_add</span>
|
551
|
-
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by
|
552
|
-
<span class='
|
551
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>=</span> <span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by'>sort_by</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:priority</span><span class='rparen'>)</span>
|
552
|
+
<span class='id identifier rubyid_systems_to_add'>systems_to_add</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
553
|
+
<span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span> <span class='op'>|=</span> <span class='lbracket'>[</span><span class='kw'>self</span><span class='rbracket'>]</span>
|
554
|
+
<span class='kw'>end</span>
|
553
555
|
<span class='kw'>true</span>
|
554
556
|
<span class='kw'>end</span></pre>
|
555
557
|
</td>
|
@@ -601,13 +603,13 @@
|
|
601
603
|
<pre class="lines">
|
602
604
|
|
603
605
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
606
|
+
35
|
607
|
+
36
|
608
|
+
37
|
609
|
+
38</pre>
|
608
610
|
</td>
|
609
611
|
<td>
|
610
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
612
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 35</span>
|
611
613
|
|
612
614
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
|
613
615
|
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:call</span><span class='rparen'>)</span>
|
@@ -662,19 +664,25 @@
|
|
662
664
|
<pre class="lines">
|
663
665
|
|
664
666
|
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
667
|
+
60
|
668
|
+
61
|
669
|
+
62
|
670
|
+
63
|
671
|
+
64
|
672
|
+
65
|
673
|
+
66
|
674
|
+
67</pre>
|
670
675
|
</td>
|
671
676
|
<td>
|
672
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
677
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 60</span>
|
673
678
|
|
674
679
|
<span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span>
|
680
|
+
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
681
|
+
<span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
682
|
+
<span class='kw'>end</span>
|
675
683
|
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
676
|
-
<span class='
|
677
|
-
<span class='kw'>true</span>
|
684
|
+
<span class='comment'># FelFlame::Stage.update_systems_list if FelFlame::Stage.scenes.include? self
|
685
|
+
</span> <span class='kw'>true</span>
|
678
686
|
<span class='kw'>end</span></pre>
|
679
687
|
</td>
|
680
688
|
</tr>
|
@@ -693,7 +701,7 @@
|
|
693
701
|
</h3><div class="docstring">
|
694
702
|
<div class="discussion">
|
695
703
|
|
696
|
-
<p>Removes any number of
|
704
|
+
<p>Removes any number of Systems from this Scene</p>
|
697
705
|
|
698
706
|
|
699
707
|
</div>
|
@@ -725,20 +733,16 @@
|
|
725
733
|
<pre class="lines">
|
726
734
|
|
727
735
|
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
43
|
733
|
-
44</pre>
|
736
|
+
53
|
737
|
+
54
|
738
|
+
55
|
739
|
+
56</pre>
|
734
740
|
</td>
|
735
741
|
<td>
|
736
|
-
<pre class="code"><span class="info file"># File 'scene_manager.rb', line
|
742
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 53</span>
|
737
743
|
|
738
744
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_systems_to_remove'>systems_to_remove</span><span class='rparen'>)</span>
|
739
745
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>-=</span> <span class='id identifier rubyid_systems_to_remove'>systems_to_remove</span>
|
740
|
-
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by!'>sort_by!</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:priority</span><span class='rparen'>)</span>
|
741
|
-
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Stage.html" title="FelFlame::Stage (class)">Stage</a></span></span><span class='period'>.</span><span class='id identifier rubyid_update_systems_list'>update_systems_list</span> <span class='kw'>if</span> <span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Stage.html" title="FelFlame::Stage (class)">Stage</a></span></span><span class='period'>.</span><span class='id identifier rubyid_scenes'><span class='object_link'><a href="Stage.html#scenes-class_method" title="FelFlame::Stage.scenes (method)">scenes</a></span></span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='kw'>self</span>
|
742
746
|
<span class='kw'>true</span>
|
743
747
|
<span class='kw'>end</span></pre>
|
744
748
|
</td>
|
@@ -751,7 +755,7 @@
|
|
751
755
|
</div>
|
752
756
|
|
753
757
|
<div id="footer">
|
754
|
-
Generated on
|
758
|
+
Generated on Tue Feb 1 23:28:33 2022 by
|
755
759
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
756
760
|
0.9.26 (ruby-2.7.3).
|
757
761
|
</div>
|