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,190 +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::Creature</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::Creature</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
- <a href="GameObject.html">
69
- GameObject
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- A <a href="Creature.html">Creature</a> is a <a
86
- href="GameObject.html">GameObject</a> that can sense and respond to other
87
- GameObjects (including other <a href="Creature.html">Creature</a> objects).
88
- </p>
89
-
90
- </div>
91
-
92
-
93
- </div>
94
-
95
- <div id="method-list">
96
- <h3 class="section-bar">Methods</h3>
97
-
98
- <div class="name-list">
99
- <a href="#M000026">act</a>&nbsp;&nbsp;
100
- <a href="#M000025">new</a>&nbsp;&nbsp;
101
- </div>
102
- </div>
103
-
104
- </div>
105
-
106
-
107
- <!-- if includes -->
108
-
109
- <div id="section">
110
-
111
-
112
-
113
-
114
-
115
- <div id="attribute-list">
116
- <h3 class="section-bar">Attributes</h3>
117
-
118
- <div class="name-list">
119
- <table>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">behaviors</td>
122
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
123
- <td class="context-item-desc">
124
- A list of <a href="Behavior.html">Behavior</a> objects that determine the
125
- creature&#8216;s response to its environment.
126
-
127
- </td>
128
- </tr>
129
- </table>
130
- </div>
131
- </div>
132
-
133
-
134
-
135
- <!-- if method_list -->
136
- <div id="methods">
137
- <h3 class="section-bar">Public Class methods</h3>
138
-
139
- <div id="method-M000025" class="method-detail">
140
- <a name="M000025"></a>
141
-
142
- <div class="method-heading">
143
- <a href="Creature.src/M000025.html" target="Code" class="method-signature"
144
- onclick="popupCode('Creature.src/M000025.html');return false;">
145
- <span class="method-name">new</span><span class="method-args">(name = nil, location = Location.new, color = Color.new, vector = Vector.new, age = 0, size = 1, tags = [], behaviors = [])</span>
146
- </a>
147
- </div>
148
-
149
- <div class="method-description">
150
- <p>
151
- Identical to the <a href="GameObject.html">GameObject</a> constructor,
152
- except that it also takes a list of <a href="Behavior.html">Behavior</a>
153
- objects.
154
- </p>
155
- </div>
156
- </div>
157
-
158
- <h3 class="section-bar">Public Instance methods</h3>
159
-
160
- <div id="method-M000026" class="method-detail">
161
- <a name="M000026"></a>
162
-
163
- <div class="method-heading">
164
- <a href="Creature.src/M000026.html" target="Code" class="method-signature"
165
- onclick="popupCode('Creature.src/M000026.html');return false;">
166
- <span class="method-name">act</span><span class="method-args">(environment)</span>
167
- </a>
168
- </div>
169
-
170
- <div class="method-description">
171
- <p>
172
- Call <a href="Behavior.html#M000013">Behavior.perform</a>(self,
173
- environment) on each of the creature&#8216;s assigned Behaviors.
174
- </p>
175
- </div>
176
- </div>
177
-
178
-
179
- </div>
180
-
181
-
182
- </div>
183
-
184
-
185
- <div id="validator-badges">
186
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
187
- </div>
188
-
189
- </body>
190
- </html>
@@ -1,19 +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::Creature)</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 147</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">size</span> = <span class="ruby-value">1</span>, <span class="ruby-identifier">tags</span> = [], <span class="ruby-identifier">behaviors</span> = [])
15
- <span class="ruby-keyword kw">super</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">age</span>, <span class="ruby-identifier">size</span>, <span class="ruby-identifier">tags</span>)
16
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">behaviors</span> = <span class="ruby-identifier">behaviors</span>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </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>act (Zyps::Creature)</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 153</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">act</span>(<span class="ruby-identifier">environment</span>)
15
- <span class="ruby-identifier">behaviors</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">behavior</span><span class="ruby-operator">|</span> <span class="ruby-identifier">behavior</span>.<span class="ruby-identifier">perform</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">environment</span>)}
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,181 +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::DestroyAction</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::DestroyAction</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/zyps/actions_rb.html">
59
- lib/zyps/actions.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
- <a href="Action.html">
69
- Action
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- Destroy the target.
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000055">do</a>&nbsp;&nbsp;
98
- <a href="#M000054">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">environment</td>
120
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
121
- <td class="context-item-desc">
122
- The environment to remove objects from.
123
-
124
- </td>
125
- </tr>
126
- </table>
127
- </div>
128
- </div>
129
-
130
-
131
-
132
- <!-- if method_list -->
133
- <div id="methods">
134
- <h3 class="section-bar">Public Class methods</h3>
135
-
136
- <div id="method-M000054" class="method-detail">
137
- <a name="M000054"></a>
138
-
139
- <div class="method-heading">
140
- <a href="DestroyAction.src/M000054.html" target="Code" class="method-signature"
141
- onclick="popupCode('DestroyAction.src/M000054.html');return false;">
142
- <span class="method-name">new</span><span class="method-args">(environment)</span>
143
- </a>
144
- </div>
145
-
146
- <div class="method-description">
147
- </div>
148
- </div>
149
-
150
- <h3 class="section-bar">Public Instance methods</h3>
151
-
152
- <div id="method-M000055" class="method-detail">
153
- <a name="M000055"></a>
154
-
155
- <div class="method-heading">
156
- <a href="DestroyAction.src/M000055.html" target="Code" class="method-signature"
157
- onclick="popupCode('DestroyAction.src/M000055.html');return false;">
158
- <span class="method-name">do</span><span class="method-args">(actor, target)</span>
159
- </a>
160
- </div>
161
-
162
- <div class="method-description">
163
- <p>
164
- Remove the target from the environment.
165
- </p>
166
- </div>
167
- </div>
168
-
169
-
170
- </div>
171
-
172
-
173
- </div>
174
-
175
-
176
- <div id="validator-badges">
177
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
178
- </div>
179
-
180
- </body>
181
- </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::DestroyAction)</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/actions.rb, line 163</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">environment</span>)
15
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">environment</span> = <span class="ruby-identifier">environment</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,20 +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>do (Zyps::DestroyAction)</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/actions.rb, line 167</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">do</span>(<span class="ruby-identifier">actor</span>, <span class="ruby-identifier">target</span>)
15
- <span class="ruby-ivar">@environment</span>.<span class="ruby-identifier">objects</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">target</span>)
16
- <span class="ruby-comment cmt">#Discontinue action.</span>
17
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
18
- <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,149 +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::EatAction</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::EatAction</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/zyps/actions_rb.html">
59
- lib/zyps/actions.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
- <a href="DestroyAction.html">
69
- DestroyAction
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- Destroy the target and grow in size.
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000068">do</a>&nbsp;&nbsp;
98
- </div>
99
- </div>
100
-
101
- </div>
102
-
103
-
104
- <!-- if includes -->
105
-
106
- <div id="section">
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- <!-- if method_list -->
116
- <div id="methods">
117
- <h3 class="section-bar">Public Instance methods</h3>
118
-
119
- <div id="method-M000068" class="method-detail">
120
- <a name="M000068"></a>
121
-
122
- <div class="method-heading">
123
- <a href="EatAction.src/M000068.html" target="Code" class="method-signature"
124
- onclick="popupCode('EatAction.src/M000068.html');return false;">
125
- <span class="method-name">do</span><span class="method-args">(actor, target)</span>
126
- </a>
127
- </div>
128
-
129
- <div class="method-description">
130
- <p>
131
- Remove the target from the environment, and increase actor&#8216;s size by
132
- size of target.
133
- </p>
134
- </div>
135
- </div>
136
-
137
-
138
- </div>
139
-
140
-
141
- </div>
142
-
143
-
144
- <div id="validator-badges">
145
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
146
- </div>
147
-
148
- </body>
149
- </html>
@@ -1,21 +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>do (Zyps::EatAction)</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/actions.rb, line 178</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">do</span>(<span class="ruby-identifier">actor</span>, <span class="ruby-identifier">target</span>)
15
- <span class="ruby-comment cmt">#Grow in size.</span>
16
- <span class="ruby-identifier">actor</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">target</span>.<span class="ruby-identifier">size</span>
17
- <span class="ruby-comment cmt">#Remove the target from the environment.</span>
18
- <span class="ruby-keyword kw">super</span>
19
- <span class="ruby-keyword kw">end</span></pre>
20
- </body>
21
- </html>