zyps 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. data/README.txt +0 -14
  2. data/bin/zyps +240 -28
  3. data/bin/zyps_demo +18 -2
  4. data/doc/classes/Behavior.html +205 -0
  5. data/doc/classes/Behavior.src/M000003.html +18 -0
  6. data/doc/classes/Behavior.src/M000004.html +19 -0
  7. data/doc/classes/Clock.html +165 -0
  8. data/doc/classes/Clock.src/M000026.html +18 -0
  9. data/doc/classes/Clock.src/M000027.html +21 -0
  10. data/doc/classes/Color.html +299 -0
  11. data/doc/classes/Color.src/M000015.html +18 -0
  12. data/doc/classes/Color.src/M000016.html +16 -0
  13. data/doc/classes/Color.src/M000017.html +16 -0
  14. data/doc/classes/Color.src/M000018.html +16 -0
  15. data/doc/classes/Color.src/M000019.html +18 -0
  16. data/doc/classes/Color.src/M000020.html +22 -0
  17. data/doc/classes/Creature.html +176 -0
  18. data/doc/classes/Creature.src/M000005.html +19 -0
  19. data/doc/classes/Environment.html +203 -0
  20. data/doc/classes/Environment.src/M000028.html +19 -0
  21. data/doc/classes/Environment.src/M000029.html +45 -0
  22. data/doc/classes/EnvironmentalFactor.html +167 -0
  23. data/doc/classes/EnvironmentalFactor.src/M000021.html +18 -0
  24. data/doc/classes/GameObject.html +256 -0
  25. data/doc/classes/GameObject.src/M000022.html +20 -0
  26. data/doc/classes/GameObject.src/M000023.html +19 -0
  27. data/doc/classes/GameObject.src/M000024.html +16 -0
  28. data/doc/classes/GameObject.src/M000025.html +16 -0
  29. data/doc/classes/Location.html +167 -0
  30. data/doc/classes/Location.src/M000014.html +18 -0
  31. data/doc/classes/Responsive.html +143 -0
  32. data/doc/classes/Responsive.src/M000030.html +18 -0
  33. data/doc/classes/TrailsView.html +217 -0
  34. data/doc/classes/TrailsView.src/M000001.html +40 -0
  35. data/doc/classes/TrailsView.src/M000002.html +76 -0
  36. data/doc/classes/Utility.html +264 -0
  37. data/doc/classes/Utility.src/M000031.html +26 -0
  38. data/doc/classes/Utility.src/M000032.html +22 -0
  39. data/doc/classes/Utility.src/M000033.html +18 -0
  40. data/doc/classes/Utility.src/M000034.html +21 -0
  41. data/doc/classes/Utility.src/M000035.html +25 -0
  42. data/doc/classes/Utility.src/M000036.html +21 -0
  43. data/doc/classes/Utility.src/M000037.html +22 -0
  44. data/doc/classes/Vector.html +281 -0
  45. data/doc/classes/Vector.src/M000006.html +19 -0
  46. data/doc/classes/Vector.src/M000007.html +16 -0
  47. data/doc/classes/Vector.src/M000008.html +21 -0
  48. data/doc/classes/Vector.src/M000009.html +16 -0
  49. data/doc/classes/Vector.src/M000010.html +18 -0
  50. data/doc/classes/Vector.src/M000011.html +16 -0
  51. data/doc/classes/Vector.src/M000012.html +18 -0
  52. data/doc/classes/Vector.src/M000013.html +25 -0
  53. data/doc/created.rid +1 -0
  54. data/doc/files/COPYING_LESSER_txt.html +311 -0
  55. data/doc/files/COPYING_txt.html +1003 -0
  56. data/doc/files/README_txt.html +214 -0
  57. data/doc/files/lib/zyps/views/trails_rb.html +134 -0
  58. data/doc/files/lib/zyps_rb.html +134 -0
  59. data/doc/fr_class_index.html +38 -0
  60. data/doc/fr_file_index.html +31 -0
  61. data/doc/fr_method_index.html +63 -0
  62. data/doc/index.html +24 -0
  63. data/doc/rdoc-style.css +208 -0
  64. data/lib/zyps/views/trails.rb +3 -3
  65. metadata +81 -6
  66. data/bin/zyps_server +0 -178
@@ -0,0 +1,256 @@
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: GameObject</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">GameObject</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 in the virtual environment.
84
+ </p>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+ <div id="method-list">
92
+ <h3 class="section-bar">Methods</h3>
93
+
94
+ <div class="name-list">
95
+ <a href="#M000024">age</a>&nbsp;&nbsp;
96
+ <a href="#M000025">age=</a>&nbsp;&nbsp;
97
+ <a href="#M000023">move</a>&nbsp;&nbsp;
98
+ <a href="#M000022">new</a>&nbsp;&nbsp;
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+
104
+
105
+ <!-- if includes -->
106
+
107
+ <div id="section">
108
+
109
+
110
+
111
+
112
+
113
+ <div id="attribute-list">
114
+ <h3 class="section-bar">Attributes</h3>
115
+
116
+ <div class="name-list">
117
+ <table>
118
+ <tr class="top-aligned-row context-row">
119
+ <td class="context-item-name">color</td>
120
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
121
+ <td class="context-item-desc">
122
+ A <a href="Color.html">Color</a> that will be used to draw the object.
123
+
124
+ </td>
125
+ </tr>
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">identifier</td>
128
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
129
+ <td class="context-item-desc">
130
+ A universal identifier for the object. Needed for DRb transmission, etc.
131
+
132
+ </td>
133
+ </tr>
134
+ <tr class="top-aligned-row context-row">
135
+ <td class="context-item-name">location</td>
136
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
137
+ <td class="context-item-desc">
138
+ The object&#8216;s <a href="Location.html">Location</a> in space.
139
+
140
+ </td>
141
+ </tr>
142
+ <tr class="top-aligned-row context-row">
143
+ <td class="context-item-name">name</td>
144
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
145
+ <td class="context-item-desc">
146
+ A String with the object&#8216;s name.
147
+
148
+ </td>
149
+ </tr>
150
+ <tr class="top-aligned-row context-row">
151
+ <td class="context-item-name">tags</td>
152
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
153
+ <td class="context-item-desc">
154
+ An array of Strings with tags that determine how the object will be treated
155
+ by <a href="Creature.html">Creature</a> and <a
156
+ href="EnvironmentalFactor.html">EnvironmentalFactor</a> objects in its
157
+ environment.
158
+
159
+ </td>
160
+ </tr>
161
+ <tr class="top-aligned-row context-row">
162
+ <td class="context-item-name">vector</td>
163
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
164
+ <td class="context-item-desc">
165
+ A <a href="Vector.html">Vector</a> with the object&#8216;s current speed
166
+ and direction of travel.
167
+
168
+ </td>
169
+ </tr>
170
+ </table>
171
+ </div>
172
+ </div>
173
+
174
+
175
+
176
+ <!-- if method_list -->
177
+ <div id="methods">
178
+ <h3 class="section-bar">Public Class methods</h3>
179
+
180
+ <div id="method-M000022" class="method-detail">
181
+ <a name="M000022"></a>
182
+
183
+ <div class="method-heading">
184
+ <a href="GameObject.src/M000022.html" target="Code" class="method-signature"
185
+ onclick="popupCode('GameObject.src/M000022.html');return false;">
186
+ <span class="method-name">new</span><span class="method-args">(name = nil, location = Location.new, color = Color.new, vector = Vector.new, age = 0, tags = [])</span>
187
+ </a>
188
+ </div>
189
+
190
+ <div class="method-description">
191
+ </div>
192
+ </div>
193
+
194
+ <h3 class="section-bar">Public Instance methods</h3>
195
+
196
+ <div id="method-M000024" class="method-detail">
197
+ <a name="M000024"></a>
198
+
199
+ <div class="method-heading">
200
+ <a href="GameObject.src/M000024.html" target="Code" class="method-signature"
201
+ onclick="popupCode('GameObject.src/M000024.html');return false;">
202
+ <span class="method-name">age</span><span class="method-args">()</span>
203
+ </a>
204
+ </div>
205
+
206
+ <div class="method-description">
207
+ <p>
208
+ Time since the object was created, in seconds.
209
+ </p>
210
+ </div>
211
+ </div>
212
+
213
+ <div id="method-M000025" class="method-detail">
214
+ <a name="M000025"></a>
215
+
216
+ <div class="method-heading">
217
+ <a href="GameObject.src/M000025.html" target="Code" class="method-signature"
218
+ onclick="popupCode('GameObject.src/M000025.html');return false;">
219
+ <span class="method-name">age=</span><span class="method-args">(age)</span>
220
+ </a>
221
+ </div>
222
+
223
+ <div class="method-description">
224
+ </div>
225
+ </div>
226
+
227
+ <div id="method-M000023" class="method-detail">
228
+ <a name="M000023"></a>
229
+
230
+ <div class="method-heading">
231
+ <a href="GameObject.src/M000023.html" target="Code" class="method-signature"
232
+ onclick="popupCode('GameObject.src/M000023.html');return false;">
233
+ <span class="method-name">move</span><span class="method-args">(elapsed_time)</span>
234
+ </a>
235
+ </div>
236
+
237
+ <div class="method-description">
238
+ <p>
239
+ Move according to vector over the given number of seconds.
240
+ </p>
241
+ </div>
242
+ </div>
243
+
244
+
245
+ </div>
246
+
247
+
248
+ </div>
249
+
250
+
251
+ <div id="validator-badges">
252
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
253
+ </div>
254
+
255
+ </body>
256
+ </html>
@@ -0,0 +1,20 @@
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 (GameObject)</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 93</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">location</span> = <span class="ruby-constant">Location</span>.<span class="ruby-identifier">new</span>, <span class="ruby-identifier">color</span> = <span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>, <span class="ruby-identifier">vector</span> = <span class="ruby-constant">Vector</span>.<span class="ruby-identifier">new</span>, <span class="ruby-identifier">age</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">tags</span> = [])
15
+ <span class="ruby-ivar">@name</span>, <span class="ruby-ivar">@location</span>, <span class="ruby-ivar">@color</span>, <span class="ruby-ivar">@vector</span>, <span class="ruby-ivar">@tags</span> = <span class="ruby-identifier">name</span>, <span class="ruby-identifier">location</span>, <span class="ruby-identifier">color</span>, <span class="ruby-identifier">vector</span>, <span class="ruby-identifier">tags</span>
16
+ <span class="ruby-ivar">@identifier</span> = <span class="ruby-identifier">rand</span>(<span class="ruby-value">99999999</span>) <span class="ruby-comment cmt">#TODO: Current setup won't necessarily be unique.</span>
17
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">age</span> = <span class="ruby-identifier">age</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,19 @@
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>move (GameObject)</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 100</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move</span> (<span class="ruby-identifier">elapsed_time</span>)
15
+ <span class="ruby-ivar">@location</span>.<span class="ruby-identifier">x</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@vector</span>.<span class="ruby-identifier">x</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">elapsed_time</span>
16
+ <span class="ruby-ivar">@location</span>.<span class="ruby-identifier">y</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@vector</span>.<span class="ruby-identifier">y</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">elapsed_time</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,16 @@
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>age (GameObject)</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 106</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">age</span>; <span class="ruby-constant">Time</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@birth_time</span>; <span class="ruby-keyword kw">end</span></pre>
15
+ </body>
16
+ </html>
@@ -0,0 +1,16 @@
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>age= (GameObject)</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 107</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">age=</span>(<span class="ruby-identifier">age</span>); <span class="ruby-ivar">@birth_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">age</span>; <span class="ruby-keyword kw">end</span></pre>
15
+ </body>
16
+ </html>
@@ -0,0 +1,167 @@
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: Location</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">Location</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 location, with x and y coordinates.
84
+ </p>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+ <div id="method-list">
92
+ <h3 class="section-bar">Methods</h3>
93
+
94
+ <div class="name-list">
95
+ <a href="#M000014">new</a>&nbsp;&nbsp;
96
+ </div>
97
+ </div>
98
+
99
+ </div>
100
+
101
+
102
+ <!-- if includes -->
103
+
104
+ <div id="section">
105
+
106
+
107
+
108
+
109
+
110
+ <div id="attribute-list">
111
+ <h3 class="section-bar">Attributes</h3>
112
+
113
+ <div class="name-list">
114
+ <table>
115
+ <tr class="top-aligned-row context-row">
116
+ <td class="context-item-name">x</td>
117
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
118
+ <td class="context-item-desc">
119
+ Coordinates can be negative, and don&#8216;t have to be integers.
120
+
121
+ </td>
122
+ </tr>
123
+ <tr class="top-aligned-row context-row">
124
+ <td class="context-item-name">y</td>
125
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
126
+ <td class="context-item-desc">
127
+ Coordinates can be negative, and don&#8216;t have to be integers.
128
+
129
+ </td>
130
+ </tr>
131
+ </table>
132
+ </div>
133
+ </div>
134
+
135
+
136
+
137
+ <!-- if method_list -->
138
+ <div id="methods">
139
+ <h3 class="section-bar">Public Class methods</h3>
140
+
141
+ <div id="method-M000014" class="method-detail">
142
+ <a name="M000014"></a>
143
+
144
+ <div class="method-heading">
145
+ <a href="Location.src/M000014.html" target="Code" class="method-signature"
146
+ onclick="popupCode('Location.src/M000014.html');return false;">
147
+ <span class="method-name">new</span><span class="method-args">(x = 0, y = 0)</span>
148
+ </a>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+ </div>
153
+ </div>
154
+
155
+
156
+ </div>
157
+
158
+
159
+ </div>
160
+
161
+
162
+ <div id="validator-badges">
163
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
164
+ </div>
165
+
166
+ </body>
167
+ </html>
@@ -0,0 +1,18 @@
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 (Location)</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 234</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">x</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">y</span> = <span class="ruby-value">0</span>)
15
+ <span class="ruby-ivar">@x</span>, <span class="ruby-ivar">@y</span> = <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,143 @@
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>Module: Responsive</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>Module</strong></td>
53
+ <td class="class-name-in-header">Responsive</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
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ Mixin to have an object (usually a <a href="Creature.html">Creature</a>) <a
78
+ href="Responsive.html#M000030">act</a> on other objects.
79
+ </p>
80
+
81
+ </div>
82
+
83
+
84
+ </div>
85
+
86
+ <div id="method-list">
87
+ <h3 class="section-bar">Methods</h3>
88
+
89
+ <div class="name-list">
90
+ <a href="#M000030">act</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+
99
+ <div id="section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <!-- if method_list -->
109
+ <div id="methods">
110
+ <h3 class="section-bar">Public Instance methods</h3>
111
+
112
+ <div id="method-M000030" class="method-detail">
113
+ <a name="M000030"></a>
114
+
115
+ <div class="method-heading">
116
+ <a href="Responsive.src/M000030.html" target="Code" class="method-signature"
117
+ onclick="popupCode('Responsive.src/M000030.html');return false;">
118
+ <span class="method-name">act</span><span class="method-args">(target)</span>
119
+ </a>
120
+ </div>
121
+
122
+ <div class="method-description">
123
+ <p>
124
+ Call <a href="Behavior.html#M000004">Behavior.perform</a> on each of the
125
+ object&#8216;s assigned Behaviors, with the object and a target as
126
+ arguments.
127
+ </p>
128
+ </div>
129
+ </div>
130
+
131
+
132
+ </div>
133
+
134
+
135
+ </div>
136
+
137
+
138
+ <div id="validator-badges">
139
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
140
+ </div>
141
+
142
+ </body>
143
+ </html>