zyps 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/README.txt +2 -2
  2. data/bin/zyps_demo +2 -8
  3. data/bin/zyps_server +14 -41
  4. data/lib/zyps/environmental_factors.rb +33 -5
  5. data/lib/zyps/remote.rb +103 -0
  6. data/test/zyps/test_actions.rb +2 -1
  7. data/test/zyps/test_conditions.rb +0 -6
  8. data/test/zyps/test_environmental_factors.rb +1 -2
  9. data/test/zyps/test_remote.rb +113 -0
  10. metadata +11 -183
  11. data/doc/classes/Zyps/AccelerateAction.html +0 -200
  12. data/doc/classes/Zyps/AccelerateAction.src/M000020.html +0 -19
  13. data/doc/classes/Zyps/AccelerateAction.src/M000021.html +0 -19
  14. data/doc/classes/Zyps/AccelerateAction.src/M000022.html +0 -18
  15. data/doc/classes/Zyps/Accelerator.html +0 -181
  16. data/doc/classes/Zyps/Accelerator.src/M000044.html +0 -19
  17. data/doc/classes/Zyps/Accelerator.src/M000045.html +0 -18
  18. data/doc/classes/Zyps/Action.html +0 -217
  19. data/doc/classes/Zyps/Action.src/M000014.html +0 -18
  20. data/doc/classes/Zyps/Action.src/M000015.html +0 -18
  21. data/doc/classes/Zyps/Action.src/M000016.html +0 -17
  22. data/doc/classes/Zyps/Action.src/M000017.html +0 -18
  23. data/doc/classes/Zyps/AgeCondition.html +0 -181
  24. data/doc/classes/Zyps/AgeCondition.src/M000058.html +0 -18
  25. data/doc/classes/Zyps/AgeCondition.src/M000059.html +0 -18
  26. data/doc/classes/Zyps/ApproachAction.html +0 -207
  27. data/doc/classes/Zyps/ApproachAction.src/M000074.html +0 -19
  28. data/doc/classes/Zyps/ApproachAction.src/M000075.html +0 -19
  29. data/doc/classes/Zyps/ApproachAction.src/M000076.html +0 -38
  30. data/doc/classes/Zyps/Behavior.html +0 -206
  31. data/doc/classes/Zyps/Behavior.src/M000012.html +0 -20
  32. data/doc/classes/Zyps/Behavior.src/M000013.html +0 -31
  33. data/doc/classes/Zyps/BlendAction.html +0 -181
  34. data/doc/classes/Zyps/BlendAction.src/M000066.html +0 -18
  35. data/doc/classes/Zyps/BlendAction.src/M000067.html +0 -18
  36. data/doc/classes/Zyps/Clock.html +0 -180
  37. data/doc/classes/Zyps/Clock.src/M000069.html +0 -18
  38. data/doc/classes/Zyps/Clock.src/M000070.html +0 -21
  39. data/doc/classes/Zyps/Clock.src/M000071.html +0 -18
  40. data/doc/classes/Zyps/CollisionCondition.html +0 -148
  41. data/doc/classes/Zyps/CollisionCondition.src/M000083.html +0 -18
  42. data/doc/classes/Zyps/Color.html +0 -299
  43. data/doc/classes/Zyps/Color.src/M000038.html +0 -18
  44. data/doc/classes/Zyps/Color.src/M000039.html +0 -16
  45. data/doc/classes/Zyps/Color.src/M000040.html +0 -16
  46. data/doc/classes/Zyps/Color.src/M000041.html +0 -16
  47. data/doc/classes/Zyps/Color.src/M000042.html +0 -18
  48. data/doc/classes/Zyps/Color.src/M000043.html +0 -22
  49. data/doc/classes/Zyps/Condition.html +0 -118
  50. data/doc/classes/Zyps/Creature.html +0 -190
  51. data/doc/classes/Zyps/Creature.src/M000025.html +0 -19
  52. data/doc/classes/Zyps/Creature.src/M000026.html +0 -18
  53. data/doc/classes/Zyps/DestroyAction.html +0 -181
  54. data/doc/classes/Zyps/DestroyAction.src/M000054.html +0 -18
  55. data/doc/classes/Zyps/DestroyAction.src/M000055.html +0 -20
  56. data/doc/classes/Zyps/EatAction.html +0 -149
  57. data/doc/classes/Zyps/EatAction.src/M000068.html +0 -21
  58. data/doc/classes/Zyps/Enclosure.html +0 -206
  59. data/doc/classes/Zyps/Enclosure.src/M000010.html +0 -18
  60. data/doc/classes/Zyps/Enclosure.src/M000011.html +0 -31
  61. data/doc/classes/Zyps/Environment.html +0 -203
  62. data/doc/classes/Zyps/Environment.src/M000081.html +0 -19
  63. data/doc/classes/Zyps/Environment.src/M000082.html +0 -67
  64. data/doc/classes/Zyps/EnvironmentalFactor.html +0 -118
  65. data/doc/classes/Zyps/FaceAction.html +0 -148
  66. data/doc/classes/Zyps/FaceAction.src/M000080.html +0 -18
  67. data/doc/classes/Zyps/FleeAction.html +0 -207
  68. data/doc/classes/Zyps/FleeAction.src/M000084.html +0 -19
  69. data/doc/classes/Zyps/FleeAction.src/M000085.html +0 -19
  70. data/doc/classes/Zyps/FleeAction.src/M000086.html +0 -38
  71. data/doc/classes/Zyps/Friction.html +0 -181
  72. data/doc/classes/Zyps/Friction.src/M000072.html +0 -19
  73. data/doc/classes/Zyps/Friction.src/M000073.html +0 -18
  74. data/doc/classes/Zyps/GameObject.html +0 -282
  75. data/doc/classes/Zyps/GameObject.src/M000060.html +0 -19
  76. data/doc/classes/Zyps/GameObject.src/M000061.html +0 -16
  77. data/doc/classes/Zyps/GameObject.src/M000062.html +0 -19
  78. data/doc/classes/Zyps/GameObject.src/M000063.html +0 -16
  79. data/doc/classes/Zyps/GameObject.src/M000064.html +0 -16
  80. data/doc/classes/Zyps/Gravity.html +0 -145
  81. data/doc/classes/Zyps/Gravity.src/M000065.html +0 -16
  82. data/doc/classes/Zyps/Location.html +0 -167
  83. data/doc/classes/Zyps/Location.src/M000037.html +0 -18
  84. data/doc/classes/Zyps/NoMatchException.html +0 -111
  85. data/doc/classes/Zyps/PopulationLimit.html +0 -183
  86. data/doc/classes/Zyps/PopulationLimit.src/M000027.html +0 -19
  87. data/doc/classes/Zyps/PopulationLimit.src/M000028.html +0 -20
  88. data/doc/classes/Zyps/ProximityCondition.html +0 -182
  89. data/doc/classes/Zyps/ProximityCondition.src/M000056.html +0 -18
  90. data/doc/classes/Zyps/ProximityCondition.src/M000057.html +0 -18
  91. data/doc/classes/Zyps/PullAction.html +0 -199
  92. data/doc/classes/Zyps/PullAction.src/M000046.html +0 -19
  93. data/doc/classes/Zyps/PullAction.src/M000047.html +0 -19
  94. data/doc/classes/Zyps/PullAction.src/M000048.html +0 -23
  95. data/doc/classes/Zyps/PushAction.html +0 -199
  96. data/doc/classes/Zyps/PushAction.src/M000049.html +0 -19
  97. data/doc/classes/Zyps/PushAction.src/M000050.html +0 -19
  98. data/doc/classes/Zyps/PushAction.src/M000051.html +0 -23
  99. data/doc/classes/Zyps/SpeedLimit.html +0 -181
  100. data/doc/classes/Zyps/SpeedLimit.src/M000023.html +0 -18
  101. data/doc/classes/Zyps/SpeedLimit.src/M000024.html +0 -18
  102. data/doc/classes/Zyps/TagAction.html +0 -181
  103. data/doc/classes/Zyps/TagAction.src/M000052.html +0 -18
  104. data/doc/classes/Zyps/TagAction.src/M000053.html +0 -18
  105. data/doc/classes/Zyps/TagCondition.html +0 -181
  106. data/doc/classes/Zyps/TagCondition.src/M000018.html +0 -18
  107. data/doc/classes/Zyps/TagCondition.src/M000019.html +0 -18
  108. data/doc/classes/Zyps/TrailsView.html +0 -209
  109. data/doc/classes/Zyps/TrailsView.src/M000008.html +0 -40
  110. data/doc/classes/Zyps/TrailsView.src/M000009.html +0 -78
  111. data/doc/classes/Zyps/TurnAction.html +0 -200
  112. data/doc/classes/Zyps/TurnAction.src/M000077.html +0 -19
  113. data/doc/classes/Zyps/TurnAction.src/M000078.html +0 -19
  114. data/doc/classes/Zyps/TurnAction.src/M000079.html +0 -18
  115. data/doc/classes/Zyps/Utility.html +0 -251
  116. data/doc/classes/Zyps/Utility.src/M000001.html +0 -26
  117. data/doc/classes/Zyps/Utility.src/M000002.html +0 -22
  118. data/doc/classes/Zyps/Utility.src/M000003.html +0 -18
  119. data/doc/classes/Zyps/Utility.src/M000004.html +0 -21
  120. data/doc/classes/Zyps/Utility.src/M000005.html +0 -25
  121. data/doc/classes/Zyps/Utility.src/M000006.html +0 -21
  122. data/doc/classes/Zyps/Utility.src/M000007.html +0 -21
  123. data/doc/classes/Zyps/Vector.html +0 -281
  124. data/doc/classes/Zyps/Vector.src/M000029.html +0 -19
  125. data/doc/classes/Zyps/Vector.src/M000030.html +0 -16
  126. data/doc/classes/Zyps/Vector.src/M000031.html +0 -21
  127. data/doc/classes/Zyps/Vector.src/M000032.html +0 -16
  128. data/doc/classes/Zyps/Vector.src/M000033.html +0 -18
  129. data/doc/classes/Zyps/Vector.src/M000034.html +0 -16
  130. data/doc/classes/Zyps/Vector.src/M000035.html +0 -18
  131. data/doc/classes/Zyps/Vector.src/M000036.html +0 -25
  132. data/doc/classes/Zyps.html +0 -161
  133. data/doc/created.rid +0 -1
  134. data/doc/files/COPYING_LESSER_txt.html +0 -311
  135. data/doc/files/COPYING_txt.html +0 -1003
  136. data/doc/files/README_txt.html +0 -236
  137. data/doc/files/lib/zyps/actions_rb.html +0 -134
  138. data/doc/files/lib/zyps/conditions_rb.html +0 -134
  139. data/doc/files/lib/zyps/environmental_factors_rb.html +0 -134
  140. data/doc/files/lib/zyps/views/trails_rb.html +0 -134
  141. data/doc/files/lib/zyps_rb.html +0 -134
  142. data/doc/fr_class_index.html +0 -62
  143. data/doc/fr_file_index.html +0 -34
  144. data/doc/fr_method_index.html +0 -112
  145. data/doc/index.html +0 -24
  146. data/doc/rdoc-style.css +0 -208
@@ -1,299 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Zyps::Color</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Zyps::Color</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/zyps_rb.html">
59
- lib/zyps.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- An object&#8216;s color. Has red, green, and blue components, each ranging
84
- from 0 to 1.
85
- </p>
86
- <ul>
87
- <li>Red: <tt><a href="Color.html#M000038">Color.new</a>(1, 0, 0)</tt>
88
-
89
- </li>
90
- <li>Green: <tt><a href="Color.html#M000038">Color.new</a>(0, 1, 0)</tt>
91
-
92
- </li>
93
- <li>Blue: <tt><a href="Color.html#M000038">Color.new</a>(0, 0, 1)</tt>
94
-
95
- </li>
96
- <li>White: <tt><a href="Color.html#M000038">Color.new</a>(1, 1, 1)</tt>
97
-
98
- </li>
99
- <li>Black: <tt><a href="Color.html#M000038">Color.new</a>(0, 0, 0)</tt>
100
-
101
- </li>
102
- </ul>
103
-
104
- </div>
105
-
106
-
107
- </div>
108
-
109
- <div id="method-list">
110
- <h3 class="section-bar">Methods</h3>
111
-
112
- <div class="name-list">
113
- <a href="#M000043">+</a>&nbsp;&nbsp;
114
- <a href="#M000042">&lt;=&gt;</a>&nbsp;&nbsp;
115
- <a href="#M000041">blue=</a>&nbsp;&nbsp;
116
- <a href="#M000040">green=</a>&nbsp;&nbsp;
117
- <a href="#M000038">new</a>&nbsp;&nbsp;
118
- <a href="#M000039">red=</a>&nbsp;&nbsp;
119
- </div>
120
- </div>
121
-
122
- </div>
123
-
124
-
125
- <!-- if includes -->
126
- <div id="includes">
127
- <h3 class="section-bar">Included Modules</h3>
128
-
129
- <div id="includes-list">
130
- <span class="include-name">Comparable</span>
131
- </div>
132
- </div>
133
-
134
- <div id="section">
135
-
136
-
137
-
138
-
139
-
140
- <div id="attribute-list">
141
- <h3 class="section-bar">Attributes</h3>
142
-
143
- <div class="name-list">
144
- <table>
145
- <tr class="top-aligned-row context-row">
146
- <td class="context-item-name">blue</td>
147
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
148
- <td class="context-item-desc">
149
- Components which range from 0 to 1, which combine to form the <a
150
- href="Color.html">Color</a>.
151
-
152
- </td>
153
- </tr>
154
- <tr class="top-aligned-row context-row">
155
- <td class="context-item-name">green</td>
156
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
157
- <td class="context-item-desc">
158
- Components which range from 0 to 1, which combine to form the <a
159
- href="Color.html">Color</a>.
160
-
161
- </td>
162
- </tr>
163
- <tr class="top-aligned-row context-row">
164
- <td class="context-item-name">red</td>
165
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
166
- <td class="context-item-desc">
167
- Components which range from 0 to 1, which combine to form the <a
168
- href="Color.html">Color</a>.
169
-
170
- </td>
171
- </tr>
172
- </table>
173
- </div>
174
- </div>
175
-
176
-
177
-
178
- <!-- if method_list -->
179
- <div id="methods">
180
- <h3 class="section-bar">Public Class methods</h3>
181
-
182
- <div id="method-M000038" class="method-detail">
183
- <a name="M000038"></a>
184
-
185
- <div class="method-heading">
186
- <a href="Color.src/M000038.html" target="Code" class="method-signature"
187
- onclick="popupCode('Color.src/M000038.html');return false;">
188
- <span class="method-name">new</span><span class="method-args">(red = 1, green = 1, blue = 1)</span>
189
- </a>
190
- </div>
191
-
192
- <div class="method-description">
193
- </div>
194
- </div>
195
-
196
- <h3 class="section-bar">Public Instance methods</h3>
197
-
198
- <div id="method-M000043" class="method-detail">
199
- <a name="M000043"></a>
200
-
201
- <div class="method-heading">
202
- <a href="Color.src/M000043.html" target="Code" class="method-signature"
203
- onclick="popupCode('Color.src/M000043.html');return false;">
204
- <span class="method-name">+</span><span class="method-args">(color2)</span>
205
- </a>
206
- </div>
207
-
208
- <div class="method-description">
209
- <p>
210
- Averages each component of this <a href="Color.html">Color</a> with the
211
- corresponding component of color2, returning a <a
212
- href="Color.html#M000038">new</a> <a href="Color.html">Color</a>.
213
- </p>
214
- </div>
215
- </div>
216
-
217
- <div id="method-M000042" class="method-detail">
218
- <a name="M000042"></a>
219
-
220
- <div class="method-heading">
221
- <a href="Color.src/M000042.html" target="Code" class="method-signature"
222
- onclick="popupCode('Color.src/M000042.html');return false;">
223
- <span class="method-name">&lt;=&gt;</span><span class="method-args">(other)</span>
224
- </a>
225
- </div>
226
-
227
- <div class="method-description">
228
- <p>
229
- Compares this <a href="Color.html">Color</a> with another to see which is
230
- brighter. The sum of all components (red + green + blue) for each color
231
- determines which is greater.
232
- </p>
233
- </div>
234
- </div>
235
-
236
- <div id="method-M000041" class="method-detail">
237
- <a name="M000041"></a>
238
-
239
- <div class="method-heading">
240
- <a href="Color.src/M000041.html" target="Code" class="method-signature"
241
- onclick="popupCode('Color.src/M000041.html');return false;">
242
- <span class="method-name">blue=</span><span class="method-args">(v)</span>
243
- </a>
244
- </div>
245
-
246
- <div class="method-description">
247
- <p>
248
- Automatically constrains value to the range 0 - 1.
249
- </p>
250
- </div>
251
- </div>
252
-
253
- <div id="method-M000040" class="method-detail">
254
- <a name="M000040"></a>
255
-
256
- <div class="method-heading">
257
- <a href="Color.src/M000040.html" target="Code" class="method-signature"
258
- onclick="popupCode('Color.src/M000040.html');return false;">
259
- <span class="method-name">green=</span><span class="method-args">(v)</span>
260
- </a>
261
- </div>
262
-
263
- <div class="method-description">
264
- <p>
265
- Automatically constrains value to the range 0 - 1.
266
- </p>
267
- </div>
268
- </div>
269
-
270
- <div id="method-M000039" class="method-detail">
271
- <a name="M000039"></a>
272
-
273
- <div class="method-heading">
274
- <a href="Color.src/M000039.html" target="Code" class="method-signature"
275
- onclick="popupCode('Color.src/M000039.html');return false;">
276
- <span class="method-name">red=</span><span class="method-args">(v)</span>
277
- </a>
278
- </div>
279
-
280
- <div class="method-description">
281
- <p>
282
- Automatically constrains value to the range 0 - 1.
283
- </p>
284
- </div>
285
- </div>
286
-
287
-
288
- </div>
289
-
290
-
291
- </div>
292
-
293
-
294
- <div id="validator-badges">
295
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
296
- </div>
297
-
298
- </body>
299
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>new (Zyps::Color)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 293</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">red</span> = <span class="ruby-value">1</span>, <span class="ruby-identifier">green</span> = <span class="ruby-value">1</span>, <span class="ruby-identifier">blue</span> = <span class="ruby-value">1</span>)
15
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">red</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">green</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">blue</span> = <span class="ruby-identifier">red</span>, <span class="ruby-identifier">green</span>, <span class="ruby-identifier">blue</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>red= (Zyps::Color)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 298</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">red=</span>(<span class="ruby-identifier">v</span>); <span class="ruby-identifier">v</span> = <span class="ruby-value">0</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>; <span class="ruby-identifier">v</span> = <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>; <span class="ruby-ivar">@red</span> = <span class="ruby-identifier">v</span>; <span class="ruby-keyword kw">end</span></pre>
15
- </body>
16
- </html>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>green= (Zyps::Color)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 300</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">green=</span>(<span class="ruby-identifier">v</span>); <span class="ruby-identifier">v</span> = <span class="ruby-value">0</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>; <span class="ruby-identifier">v</span> = <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>; <span class="ruby-ivar">@green</span> = <span class="ruby-identifier">v</span>; <span class="ruby-keyword kw">end</span></pre>
15
- </body>
16
- </html>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>blue= (Zyps::Color)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 302</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blue=</span>(<span class="ruby-identifier">v</span>); <span class="ruby-identifier">v</span> = <span class="ruby-value">0</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>; <span class="ruby-identifier">v</span> = <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>; <span class="ruby-ivar">@blue</span> = <span class="ruby-identifier">v</span>; <span class="ruby-keyword kw">end</span></pre>
15
- </body>
16
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>&lt;=&gt; (Zyps::Color)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 306</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
15
- <span class="ruby-ivar">@red</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@green</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@blue</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">red</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">green</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">blue</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,22 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>+ (Zyps::Color)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 311</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">color2</span>)
15
- <span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(
16
- (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">red</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">color2</span>.<span class="ruby-identifier">red</span>) <span class="ruby-operator">/</span> <span class="ruby-value">2.0</span>,
17
- (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">green</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">color2</span>.<span class="ruby-identifier">green</span>) <span class="ruby-operator">/</span> <span class="ruby-value">2.0</span>,
18
- (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">blue</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">color2</span>.<span class="ruby-identifier">blue</span>) <span class="ruby-operator">/</span> <span class="ruby-value">2.0</span>
19
- )
20
- <span class="ruby-keyword kw">end</span></pre>
21
- </body>
22
- </html>
@@ -1,118 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Zyps::Condition</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Zyps::Condition</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/zyps_rb.html">
59
- lib/zyps.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- A condition for one <a href="Creature.html">Creature</a> to act on another.
84
- Conditions must implement a met?(actor, target) instance method.
85
- </p>
86
-
87
- </div>
88
-
89
-
90
- </div>
91
-
92
-
93
- </div>
94
-
95
-
96
- <!-- if includes -->
97
-
98
- <div id="section">
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <!-- if method_list -->
108
-
109
-
110
- </div>
111
-
112
-
113
- <div id="validator-badges">
114
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
115
- </div>
116
-
117
- </body>
118
- </html>