zyps 0.5.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +18 -0
- data/bin/zyps +13 -9
- data/bin/zyps_demo +3 -0
- data/bin/zyps_server +262 -0
- data/doc/classes/Zyps.html +161 -0
- data/doc/classes/Zyps/AccelerateAction.html +200 -0
- data/doc/classes/Zyps/AccelerateAction.src/M000020.html +19 -0
- data/doc/classes/Zyps/AccelerateAction.src/M000021.html +19 -0
- data/doc/classes/Zyps/AccelerateAction.src/M000022.html +18 -0
- data/doc/classes/Zyps/Accelerator.html +181 -0
- data/doc/classes/Zyps/Accelerator.src/M000044.html +19 -0
- data/doc/classes/Zyps/Accelerator.src/M000045.html +18 -0
- data/doc/classes/Zyps/Action.html +217 -0
- data/doc/classes/Zyps/Action.src/M000014.html +18 -0
- data/doc/classes/Zyps/Action.src/M000015.html +18 -0
- data/doc/classes/Zyps/Action.src/M000016.html +17 -0
- data/doc/classes/Zyps/Action.src/M000017.html +18 -0
- data/doc/classes/Zyps/AgeCondition.html +181 -0
- data/doc/classes/Zyps/AgeCondition.src/M000058.html +18 -0
- data/doc/classes/Zyps/AgeCondition.src/M000059.html +18 -0
- data/doc/classes/Zyps/ApproachAction.html +207 -0
- data/doc/classes/Zyps/ApproachAction.src/M000074.html +19 -0
- data/doc/classes/Zyps/ApproachAction.src/M000075.html +19 -0
- data/doc/classes/Zyps/ApproachAction.src/M000076.html +38 -0
- data/doc/classes/Zyps/Behavior.html +206 -0
- data/doc/classes/Zyps/Behavior.src/M000012.html +20 -0
- data/doc/classes/Zyps/Behavior.src/M000013.html +31 -0
- data/doc/classes/Zyps/BlendAction.html +181 -0
- data/doc/classes/Zyps/BlendAction.src/M000066.html +18 -0
- data/doc/classes/Zyps/BlendAction.src/M000067.html +18 -0
- data/doc/classes/Zyps/Clock.html +180 -0
- data/doc/classes/Zyps/Clock.src/M000069.html +18 -0
- data/doc/classes/Zyps/Clock.src/M000070.html +21 -0
- data/doc/classes/Zyps/Clock.src/M000071.html +18 -0
- data/doc/classes/Zyps/CollisionCondition.html +148 -0
- data/doc/classes/Zyps/CollisionCondition.src/M000083.html +18 -0
- data/doc/classes/Zyps/Color.html +299 -0
- data/doc/classes/Zyps/Color.src/M000038.html +18 -0
- data/doc/classes/Zyps/Color.src/M000039.html +16 -0
- data/doc/classes/Zyps/Color.src/M000040.html +16 -0
- data/doc/classes/Zyps/Color.src/M000041.html +16 -0
- data/doc/classes/Zyps/Color.src/M000042.html +18 -0
- data/doc/classes/Zyps/Color.src/M000043.html +22 -0
- data/doc/classes/Zyps/Condition.html +118 -0
- data/doc/classes/Zyps/Creature.html +190 -0
- data/doc/classes/Zyps/Creature.src/M000025.html +19 -0
- data/doc/classes/Zyps/Creature.src/M000026.html +18 -0
- data/doc/classes/Zyps/DestroyAction.html +181 -0
- data/doc/classes/Zyps/DestroyAction.src/M000054.html +18 -0
- data/doc/classes/Zyps/DestroyAction.src/M000055.html +20 -0
- data/doc/classes/Zyps/EatAction.html +149 -0
- data/doc/classes/Zyps/EatAction.src/M000068.html +21 -0
- data/doc/classes/Zyps/Enclosure.html +206 -0
- data/doc/classes/Zyps/Enclosure.src/M000010.html +18 -0
- data/doc/classes/Zyps/Enclosure.src/M000011.html +31 -0
- data/doc/classes/Zyps/Environment.html +203 -0
- data/doc/classes/Zyps/Environment.src/M000081.html +19 -0
- data/doc/classes/Zyps/Environment.src/M000082.html +67 -0
- data/doc/classes/Zyps/EnvironmentalFactor.html +118 -0
- data/doc/classes/Zyps/FaceAction.html +148 -0
- data/doc/classes/Zyps/FaceAction.src/M000080.html +18 -0
- data/doc/classes/Zyps/FleeAction.html +207 -0
- data/doc/classes/Zyps/FleeAction.src/M000084.html +19 -0
- data/doc/classes/Zyps/FleeAction.src/M000085.html +19 -0
- data/doc/classes/Zyps/FleeAction.src/M000086.html +38 -0
- data/doc/classes/Zyps/Friction.html +181 -0
- data/doc/classes/Zyps/Friction.src/M000072.html +19 -0
- data/doc/classes/Zyps/Friction.src/M000073.html +18 -0
- data/doc/classes/Zyps/GameObject.html +282 -0
- data/doc/classes/Zyps/GameObject.src/M000060.html +19 -0
- data/doc/classes/Zyps/GameObject.src/M000061.html +16 -0
- data/doc/classes/Zyps/GameObject.src/M000062.html +19 -0
- data/doc/classes/Zyps/GameObject.src/M000063.html +16 -0
- data/doc/classes/Zyps/GameObject.src/M000064.html +16 -0
- data/doc/classes/Zyps/Gravity.html +145 -0
- data/doc/classes/Zyps/Gravity.src/M000065.html +16 -0
- data/doc/classes/Zyps/Location.html +167 -0
- data/doc/classes/Zyps/Location.src/M000037.html +18 -0
- data/doc/classes/Zyps/NoMatchException.html +111 -0
- data/doc/classes/Zyps/PopulationLimit.html +183 -0
- data/doc/classes/Zyps/PopulationLimit.src/M000027.html +19 -0
- data/doc/classes/Zyps/PopulationLimit.src/M000028.html +20 -0
- data/doc/classes/Zyps/ProximityCondition.html +182 -0
- data/doc/classes/Zyps/ProximityCondition.src/M000056.html +18 -0
- data/doc/classes/Zyps/ProximityCondition.src/M000057.html +18 -0
- data/doc/classes/Zyps/PullAction.html +199 -0
- data/doc/classes/Zyps/PullAction.src/M000046.html +19 -0
- data/doc/classes/Zyps/PullAction.src/M000047.html +19 -0
- data/doc/classes/Zyps/PullAction.src/M000048.html +23 -0
- data/doc/classes/Zyps/PushAction.html +199 -0
- data/doc/classes/Zyps/PushAction.src/M000049.html +19 -0
- data/doc/classes/Zyps/PushAction.src/M000050.html +19 -0
- data/doc/classes/Zyps/PushAction.src/M000051.html +23 -0
- data/doc/classes/Zyps/SpeedLimit.html +181 -0
- data/doc/classes/Zyps/SpeedLimit.src/M000023.html +18 -0
- data/doc/classes/Zyps/SpeedLimit.src/M000024.html +18 -0
- data/doc/classes/Zyps/TagAction.html +181 -0
- data/doc/classes/Zyps/TagAction.src/M000052.html +18 -0
- data/doc/classes/Zyps/TagAction.src/M000053.html +18 -0
- data/doc/classes/Zyps/TagCondition.html +181 -0
- data/doc/classes/Zyps/TagCondition.src/M000018.html +18 -0
- data/doc/classes/Zyps/TagCondition.src/M000019.html +18 -0
- data/doc/classes/Zyps/TrailsView.html +209 -0
- data/doc/classes/Zyps/TrailsView.src/M000008.html +40 -0
- data/doc/classes/Zyps/TrailsView.src/M000009.html +78 -0
- data/doc/classes/Zyps/TurnAction.html +200 -0
- data/doc/classes/Zyps/TurnAction.src/M000077.html +19 -0
- data/doc/classes/Zyps/TurnAction.src/M000078.html +19 -0
- data/doc/classes/Zyps/TurnAction.src/M000079.html +18 -0
- data/doc/classes/Zyps/Utility.html +251 -0
- data/doc/classes/Zyps/Utility.src/M000001.html +26 -0
- data/doc/classes/Zyps/Utility.src/M000002.html +22 -0
- data/doc/classes/Zyps/Utility.src/M000003.html +18 -0
- data/doc/classes/Zyps/Utility.src/M000004.html +21 -0
- data/doc/classes/Zyps/Utility.src/M000005.html +25 -0
- data/doc/classes/Zyps/Utility.src/M000006.html +21 -0
- data/doc/classes/Zyps/Utility.src/M000007.html +21 -0
- data/doc/classes/Zyps/Vector.html +281 -0
- data/doc/classes/Zyps/Vector.src/M000029.html +19 -0
- data/doc/classes/Zyps/Vector.src/M000030.html +16 -0
- data/doc/classes/Zyps/Vector.src/M000031.html +21 -0
- data/doc/classes/Zyps/Vector.src/M000032.html +16 -0
- data/doc/classes/Zyps/Vector.src/M000033.html +18 -0
- data/doc/classes/Zyps/Vector.src/M000034.html +16 -0
- data/doc/classes/Zyps/Vector.src/M000035.html +18 -0
- data/doc/classes/Zyps/Vector.src/M000036.html +25 -0
- data/doc/created.rid +1 -0
- data/doc/files/COPYING_LESSER_txt.html +311 -0
- data/doc/files/COPYING_txt.html +1003 -0
- data/doc/files/README_txt.html +236 -0
- data/doc/files/lib/zyps/actions_rb.html +134 -0
- data/doc/files/lib/zyps/conditions_rb.html +134 -0
- data/doc/files/lib/zyps/environmental_factors_rb.html +134 -0
- data/doc/files/lib/zyps/views/trails_rb.html +134 -0
- data/doc/files/lib/zyps_rb.html +134 -0
- data/doc/fr_class_index.html +62 -0
- data/doc/fr_file_index.html +34 -0
- data/doc/fr_method_index.html +112 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/zyps.rb +40 -9
- data/lib/zyps/actions.rb +8 -1
- data/lib/zyps/conditions.rb +6 -0
- data/lib/zyps/environmental_factors.rb +74 -0
- data/lib/zyps/views/trails.rb +6 -0
- data/test/test_zyps.rb +3 -0
- data/test/zyps/test_actions.rb +3 -0
- data/test/zyps/test_conditions.rb +3 -0
- data/test/zyps/test_environmental_factors.rb +90 -7
- metadata +185 -9
data/lib/zyps/actions.rb
CHANGED
@@ -18,6 +18,9 @@
|
|
18
18
|
require 'zyps'
|
19
19
|
|
20
20
|
|
21
|
+
module Zyps
|
22
|
+
|
23
|
+
|
21
24
|
#Head toward a target.
|
22
25
|
class FaceAction < Action
|
23
26
|
#Set the actor's heading to point directly at target.
|
@@ -26,6 +29,7 @@ class FaceAction < Action
|
|
26
29
|
end
|
27
30
|
end
|
28
31
|
|
32
|
+
|
29
33
|
#Increase/decrease speed over time.
|
30
34
|
class AccelerateAction < Action
|
31
35
|
#Units per second to accelerate.
|
@@ -221,7 +225,7 @@ class PushAction < Action
|
|
221
225
|
super
|
222
226
|
@clock.reset_elapsed_time
|
223
227
|
end
|
224
|
-
#Accelerate away from the
|
228
|
+
#Accelerate the target away from the actor, but limited by elapsed time.
|
225
229
|
def do(actor, target)
|
226
230
|
#Angle to target is also angle of push force.
|
227
231
|
push_angle = Utility.find_angle(actor.location, target.location)
|
@@ -256,3 +260,6 @@ class PullAction < Action
|
|
256
260
|
target.vector += Vector.new(pull_force, pull_angle)
|
257
261
|
end
|
258
262
|
end
|
263
|
+
|
264
|
+
|
265
|
+
end #module Zyps
|
data/lib/zyps/conditions.rb
CHANGED
@@ -18,6 +18,9 @@
|
|
18
18
|
require 'zyps'
|
19
19
|
|
20
20
|
|
21
|
+
module Zyps
|
22
|
+
|
23
|
+
|
21
24
|
#Act only on objects with the correct tag.
|
22
25
|
class TagCondition < Condition
|
23
26
|
#The tag to look for on the target.
|
@@ -67,3 +70,6 @@ class CollisionCondition < Condition
|
|
67
70
|
Utility.collided?(actor, target)
|
68
71
|
end
|
69
72
|
end
|
73
|
+
|
74
|
+
|
75
|
+
end #module Zyps
|
@@ -18,6 +18,9 @@
|
|
18
18
|
require 'zyps'
|
19
19
|
|
20
20
|
|
21
|
+
module Zyps
|
22
|
+
|
23
|
+
|
21
24
|
#Keeps all objects within a set of walls.
|
22
25
|
class Enclosure < EnvironmentalFactor
|
23
26
|
|
@@ -29,9 +32,11 @@ class Enclosure < EnvironmentalFactor
|
|
29
32
|
attr_accessor :right
|
30
33
|
#Y coordinate of bottom boundary.
|
31
34
|
attr_accessor :bottom
|
35
|
+
|
32
36
|
def initialize(left = 0, top = 0, right = 0, bottom = 0)
|
33
37
|
self.left, self.top, self.right, self.bottom = left, top, right, bottom
|
34
38
|
end
|
39
|
+
|
35
40
|
#If object is beyond a boundary, set its position equal to the boundary and reflect it.
|
36
41
|
def act(object)
|
37
42
|
if (object.location.x < @left) then
|
@@ -49,6 +54,7 @@ class Enclosure < EnvironmentalFactor
|
|
49
54
|
object.vector.pitch = Utility.find_reflection_angle(180, object.vector.pitch)
|
50
55
|
end
|
51
56
|
end
|
57
|
+
|
52
58
|
end
|
53
59
|
|
54
60
|
|
@@ -58,14 +64,82 @@ class SpeedLimit < EnvironmentalFactor
|
|
58
64
|
|
59
65
|
#Maximum allowed speed in units.
|
60
66
|
attr_accessor :maximum
|
67
|
+
|
61
68
|
def initialize(units)
|
62
69
|
self.maximum = units
|
63
70
|
end
|
71
|
+
|
64
72
|
#If object is over the speed, reduce its speed.
|
65
73
|
def act(object)
|
66
74
|
object.vector.speed = Utility.constrain_value(object.vector.speed, @maximum)
|
67
75
|
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
#A force that pushes on all objects.
|
81
|
+
class Accelerator < EnvironmentalFactor
|
82
|
+
|
83
|
+
#Vector to apply to objects.
|
84
|
+
attr_accessor :vector
|
85
|
+
|
86
|
+
def initialize(vector)
|
87
|
+
self.vector = vector
|
88
|
+
@clock = Clock.new
|
89
|
+
end
|
90
|
+
|
91
|
+
#Accelerate the target away from the actor, but limited by elapsed time.
|
92
|
+
def act(object)
|
93
|
+
object.vector += Vector.new(@vector.speed * @clock.elapsed_time, @vector.pitch)
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
97
|
+
|
98
|
+
#Gravity pulls all objects downward.
|
99
|
+
class Gravity < Accelerator
|
100
|
+
def initialize; super(Vector.new(9.8, 270)); end
|
101
|
+
end
|
102
|
+
|
103
|
+
|
104
|
+
#A force that slows all objects.
|
105
|
+
class Friction < EnvironmentalFactor
|
106
|
+
|
107
|
+
#Rate of slowing.
|
108
|
+
attr_accessor :force
|
109
|
+
|
110
|
+
def initialize(force)
|
111
|
+
self.force = force
|
112
|
+
@clock = Clock.new
|
113
|
+
end
|
114
|
+
|
115
|
+
#Reduce the target's speed at the given rate.
|
116
|
+
def act(object)
|
117
|
+
object.vector.speed -= @force * @clock.elapsed_time
|
118
|
+
end
|
119
|
+
|
68
120
|
end
|
69
121
|
|
70
122
|
|
123
|
+
class PopulationLimit < EnvironmentalFactor
|
124
|
+
|
125
|
+
#Environment to remove objects from.
|
126
|
+
attr_accessor :environment
|
127
|
+
#Maximum allowed population.
|
128
|
+
attr_accessor :count
|
129
|
+
|
130
|
+
def initialize(environment, count)
|
131
|
+
self.environment = environment
|
132
|
+
self.count = count
|
133
|
+
end
|
134
|
+
|
135
|
+
#Remove target if there are too many objects in environment.
|
136
|
+
def act(object)
|
137
|
+
if environment.objects.length > @count
|
138
|
+
environment.objects.delete(object)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
end
|
143
|
+
|
71
144
|
|
145
|
+
end #module Zyps
|
data/lib/zyps/views/trails.rb
CHANGED
data/test/test_zyps.rb
CHANGED
data/test/zyps/test_actions.rb
CHANGED
@@ -21,15 +21,18 @@ require 'zyps/environmental_factors'
|
|
21
21
|
require 'test/unit'
|
22
22
|
|
23
23
|
|
24
|
+
include Zyps
|
25
|
+
|
26
|
+
|
24
27
|
#Redefine Clock to return a predictable time.
|
28
|
+
ELAPSED_TIME = 0.1
|
25
29
|
class Clock
|
26
|
-
def elapsed_time;
|
30
|
+
def elapsed_time; ELAPSED_TIME; end
|
27
31
|
end
|
28
32
|
|
29
33
|
|
30
34
|
class TestEnclosure < Test::Unit::TestCase
|
31
35
|
|
32
|
-
|
33
36
|
def test_enclosure
|
34
37
|
|
35
38
|
creature = Creature.new
|
@@ -81,14 +84,12 @@ class TestEnclosure < Test::Unit::TestCase
|
|
81
84
|
|
82
85
|
end
|
83
86
|
|
84
|
-
|
85
87
|
end
|
86
88
|
|
87
89
|
|
88
90
|
|
89
91
|
class TestSpeedLimit < Test::Unit::TestCase
|
90
92
|
|
91
|
-
|
92
93
|
def test_speed_limit
|
93
94
|
|
94
95
|
creature = Creature.new
|
@@ -110,12 +111,94 @@ class TestSpeedLimit < Test::Unit::TestCase
|
|
110
111
|
creature.vector.speed = -11
|
111
112
|
limit.act(creature)
|
112
113
|
assert_equal(-10, creature.vector.speed)
|
113
|
-
|
114
|
-
|
114
|
+
|
115
115
|
end
|
116
116
|
|
117
|
-
|
118
117
|
end
|
119
118
|
|
120
119
|
|
121
120
|
|
121
|
+
class TestAccelerator < Test::Unit::TestCase
|
122
|
+
|
123
|
+
def test_standing_start
|
124
|
+
creature = Creature.new
|
125
|
+
creature.vector = Vector.new(0, 0)
|
126
|
+
#Create an accelerator that pushes downwards by 1 unit/sec.
|
127
|
+
accelerator = Accelerator.new(Vector.new(1, 270))
|
128
|
+
#Act on a creature, and ensure its vector is modified appropriately.
|
129
|
+
accelerator.act(creature)
|
130
|
+
assert_equal(ELAPSED_TIME, creature.vector.speed)
|
131
|
+
assert_equal(270, creature.vector.pitch)
|
132
|
+
end
|
133
|
+
|
134
|
+
|
135
|
+
def test_cancellation
|
136
|
+
creature = Creature.new
|
137
|
+
creature.vector = Vector.new(1, 45)
|
138
|
+
#Create an accelerator pushing opposite to the creature's direction of travel.
|
139
|
+
accelerator = Accelerator.new(Vector.new(0.5, 225))
|
140
|
+
#Act on a creature, and ensure its vector is modified appropriately.
|
141
|
+
accelerator.act(creature)
|
142
|
+
assert_equal(0.95, creature.vector.speed)
|
143
|
+
assert_equal(45, creature.vector.pitch)
|
144
|
+
end
|
145
|
+
|
146
|
+
end
|
147
|
+
|
148
|
+
|
149
|
+
class TestFriction < Test::Unit::TestCase
|
150
|
+
|
151
|
+
STARTING_SPEED = 1
|
152
|
+
|
153
|
+
def test_slowing
|
154
|
+
creature = Creature.new
|
155
|
+
creature.vector = Vector.new(STARTING_SPEED, 0)
|
156
|
+
#Create friction that slows objects by 1 unit/sec.
|
157
|
+
friction = Friction.new(1)
|
158
|
+
#Act on a creature, and ensure its vector is modified appropriately.
|
159
|
+
friction.act(creature)
|
160
|
+
assert_equal(STARTING_SPEED - ELAPSED_TIME, creature.vector.speed)
|
161
|
+
#Test cumulative effect.
|
162
|
+
friction.act(creature)
|
163
|
+
assert_equal(STARTING_SPEED - ELAPSED_TIME * 2, creature.vector.speed)
|
164
|
+
end
|
165
|
+
|
166
|
+
end
|
167
|
+
|
168
|
+
|
169
|
+
class TestPopulationLimit < Test::Unit::TestCase
|
170
|
+
|
171
|
+
def test_limit
|
172
|
+
|
173
|
+
#Create an environment.
|
174
|
+
environment = Environment.new
|
175
|
+
#Create a population limit for the environment.
|
176
|
+
limit = PopulationLimit.new(environment, 2)
|
177
|
+
|
178
|
+
#Ensure population is not affected when under/at the limit.
|
179
|
+
creature_1 = Creature.new
|
180
|
+
environment.objects << creature_1
|
181
|
+
limit.act(creature_1)
|
182
|
+
assert(environment.objects.include?(creature_1))
|
183
|
+
creature_2 = Creature.new
|
184
|
+
environment.objects << creature_2
|
185
|
+
limit.act(creature_1)
|
186
|
+
assert(environment.objects.include?(creature_1))
|
187
|
+
assert(environment.objects.include?(creature_2))
|
188
|
+
limit.act(creature_2)
|
189
|
+
assert(environment.objects.include?(creature_1))
|
190
|
+
assert(environment.objects.include?(creature_2))
|
191
|
+
|
192
|
+
#Ensure first creature is removed when limit is exceeded.
|
193
|
+
creature_3 = Creature.new
|
194
|
+
environment.objects << creature_3
|
195
|
+
limit.act(creature_1)
|
196
|
+
assert(! environment.objects.include?(creature_1))
|
197
|
+
|
198
|
+
#Ensure other creatures aren't touched.
|
199
|
+
assert(environment.objects.include?(creature_2))
|
200
|
+
assert(environment.objects.include?(creature_3))
|
201
|
+
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: zyps
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.6.1
|
7
|
+
date: 2007-10-24 00:00:00 -07:00
|
8
8
|
summary: A game library for Ruby
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -34,19 +34,194 @@ files:
|
|
34
34
|
- README.txt
|
35
35
|
- bin/zyps
|
36
36
|
- bin/zyps_demo
|
37
|
+
- bin/zyps_server
|
37
38
|
- lib/zyps
|
39
|
+
- lib/zyps.rb
|
40
|
+
- lib/zyps/views
|
38
41
|
- lib/zyps/actions.rb
|
39
|
-
- lib/zyps/conditions.rb
|
40
42
|
- lib/zyps/environmental_factors.rb
|
41
|
-
- lib/zyps/
|
43
|
+
- lib/zyps/conditions.rb
|
42
44
|
- lib/zyps/views/trails.rb
|
43
|
-
- lib/zyps.rb
|
44
|
-
- test/test_zyps.rb
|
45
45
|
- test/zyps
|
46
|
-
- test/
|
46
|
+
- test/test_zyps.rb
|
47
47
|
- test/zyps/test_behaviors.rb
|
48
|
-
- test/zyps/
|
48
|
+
- test/zyps/test_actions.rb
|
49
49
|
- test/zyps/test_environmental_factors.rb
|
50
|
+
- test/zyps/test_conditions.rb
|
51
|
+
- doc/created.rid
|
52
|
+
- doc/rdoc-style.css
|
53
|
+
- doc/files
|
54
|
+
- doc/classes
|
55
|
+
- doc/fr_file_index.html
|
56
|
+
- doc/fr_class_index.html
|
57
|
+
- doc/fr_method_index.html
|
58
|
+
- doc/index.html
|
59
|
+
- doc/files/lib
|
60
|
+
- doc/files/COPYING_LESSER_txt.html
|
61
|
+
- doc/files/COPYING_txt.html
|
62
|
+
- doc/files/README_txt.html
|
63
|
+
- doc/files/lib/zyps_rb.html
|
64
|
+
- doc/files/lib/zyps
|
65
|
+
- doc/files/lib/zyps/actions_rb.html
|
66
|
+
- doc/files/lib/zyps/environmental_factors_rb.html
|
67
|
+
- doc/files/lib/zyps/conditions_rb.html
|
68
|
+
- doc/files/lib/zyps/views
|
69
|
+
- doc/files/lib/zyps/views/trails_rb.html
|
70
|
+
- doc/classes/Zyps
|
71
|
+
- doc/classes/Zyps.html
|
72
|
+
- doc/classes/Zyps/Utility.src
|
73
|
+
- doc/classes/Zyps/TrailsView.src
|
74
|
+
- doc/classes/Zyps/Enclosure.src
|
75
|
+
- doc/classes/Zyps/Behavior.src
|
76
|
+
- doc/classes/Zyps/Action.src
|
77
|
+
- doc/classes/Zyps/TagCondition.src
|
78
|
+
- doc/classes/Zyps/AccelerateAction.src
|
79
|
+
- doc/classes/Zyps/SpeedLimit.src
|
80
|
+
- doc/classes/Zyps/Creature.src
|
81
|
+
- doc/classes/Zyps/PopulationLimit.src
|
82
|
+
- doc/classes/Zyps/Vector.src
|
83
|
+
- doc/classes/Zyps/Location.src
|
84
|
+
- doc/classes/Zyps/Color.src
|
85
|
+
- doc/classes/Zyps/Accelerator.src
|
86
|
+
- doc/classes/Zyps/PullAction.src
|
87
|
+
- doc/classes/Zyps/PushAction.src
|
88
|
+
- doc/classes/Zyps/TagAction.src
|
89
|
+
- doc/classes/Zyps/DestroyAction.src
|
90
|
+
- doc/classes/Zyps/ProximityCondition.src
|
91
|
+
- doc/classes/Zyps/AgeCondition.src
|
92
|
+
- doc/classes/Zyps/GameObject.src
|
93
|
+
- doc/classes/Zyps/Gravity.src
|
94
|
+
- doc/classes/Zyps/BlendAction.src
|
95
|
+
- doc/classes/Zyps/EatAction.src
|
96
|
+
- doc/classes/Zyps/Clock.src
|
97
|
+
- doc/classes/Zyps/Friction.src
|
98
|
+
- doc/classes/Zyps/ApproachAction.src
|
99
|
+
- doc/classes/Zyps/TurnAction.src
|
100
|
+
- doc/classes/Zyps/FaceAction.src
|
101
|
+
- doc/classes/Zyps/Environment.src
|
102
|
+
- doc/classes/Zyps/CollisionCondition.src
|
103
|
+
- doc/classes/Zyps/FleeAction.src
|
104
|
+
- doc/classes/Zyps/Utility.html
|
105
|
+
- doc/classes/Zyps/TrailsView.html
|
106
|
+
- doc/classes/Zyps/Enclosure.html
|
107
|
+
- doc/classes/Zyps/Behavior.html
|
108
|
+
- doc/classes/Zyps/Action.html
|
109
|
+
- doc/classes/Zyps/TagCondition.html
|
110
|
+
- doc/classes/Zyps/AccelerateAction.html
|
111
|
+
- doc/classes/Zyps/SpeedLimit.html
|
112
|
+
- doc/classes/Zyps/Creature.html
|
113
|
+
- doc/classes/Zyps/PopulationLimit.html
|
114
|
+
- doc/classes/Zyps/Vector.html
|
115
|
+
- doc/classes/Zyps/Location.html
|
116
|
+
- doc/classes/Zyps/Color.html
|
117
|
+
- doc/classes/Zyps/Accelerator.html
|
118
|
+
- doc/classes/Zyps/NoMatchException.html
|
119
|
+
- doc/classes/Zyps/PullAction.html
|
120
|
+
- doc/classes/Zyps/PushAction.html
|
121
|
+
- doc/classes/Zyps/TagAction.html
|
122
|
+
- doc/classes/Zyps/DestroyAction.html
|
123
|
+
- doc/classes/Zyps/ProximityCondition.html
|
124
|
+
- doc/classes/Zyps/AgeCondition.html
|
125
|
+
- doc/classes/Zyps/EnvironmentalFactor.html
|
126
|
+
- doc/classes/Zyps/GameObject.html
|
127
|
+
- doc/classes/Zyps/Gravity.html
|
128
|
+
- doc/classes/Zyps/BlendAction.html
|
129
|
+
- doc/classes/Zyps/EatAction.html
|
130
|
+
- doc/classes/Zyps/Clock.html
|
131
|
+
- doc/classes/Zyps/Friction.html
|
132
|
+
- doc/classes/Zyps/ApproachAction.html
|
133
|
+
- doc/classes/Zyps/TurnAction.html
|
134
|
+
- doc/classes/Zyps/FaceAction.html
|
135
|
+
- doc/classes/Zyps/Environment.html
|
136
|
+
- doc/classes/Zyps/CollisionCondition.html
|
137
|
+
- doc/classes/Zyps/Condition.html
|
138
|
+
- doc/classes/Zyps/FleeAction.html
|
139
|
+
- doc/classes/Zyps/Utility.src/M000001.html
|
140
|
+
- doc/classes/Zyps/Utility.src/M000002.html
|
141
|
+
- doc/classes/Zyps/Utility.src/M000003.html
|
142
|
+
- doc/classes/Zyps/Utility.src/M000004.html
|
143
|
+
- doc/classes/Zyps/Utility.src/M000005.html
|
144
|
+
- doc/classes/Zyps/Utility.src/M000006.html
|
145
|
+
- doc/classes/Zyps/Utility.src/M000007.html
|
146
|
+
- doc/classes/Zyps/TrailsView.src/M000008.html
|
147
|
+
- doc/classes/Zyps/TrailsView.src/M000009.html
|
148
|
+
- doc/classes/Zyps/Enclosure.src/M000010.html
|
149
|
+
- doc/classes/Zyps/Enclosure.src/M000011.html
|
150
|
+
- doc/classes/Zyps/Behavior.src/M000012.html
|
151
|
+
- doc/classes/Zyps/Behavior.src/M000013.html
|
152
|
+
- doc/classes/Zyps/Action.src/M000014.html
|
153
|
+
- doc/classes/Zyps/Action.src/M000015.html
|
154
|
+
- doc/classes/Zyps/Action.src/M000016.html
|
155
|
+
- doc/classes/Zyps/Action.src/M000017.html
|
156
|
+
- doc/classes/Zyps/TagCondition.src/M000018.html
|
157
|
+
- doc/classes/Zyps/TagCondition.src/M000019.html
|
158
|
+
- doc/classes/Zyps/AccelerateAction.src/M000020.html
|
159
|
+
- doc/classes/Zyps/AccelerateAction.src/M000021.html
|
160
|
+
- doc/classes/Zyps/AccelerateAction.src/M000022.html
|
161
|
+
- doc/classes/Zyps/SpeedLimit.src/M000023.html
|
162
|
+
- doc/classes/Zyps/SpeedLimit.src/M000024.html
|
163
|
+
- doc/classes/Zyps/Creature.src/M000025.html
|
164
|
+
- doc/classes/Zyps/Creature.src/M000026.html
|
165
|
+
- doc/classes/Zyps/PopulationLimit.src/M000027.html
|
166
|
+
- doc/classes/Zyps/PopulationLimit.src/M000028.html
|
167
|
+
- doc/classes/Zyps/Vector.src/M000029.html
|
168
|
+
- doc/classes/Zyps/Vector.src/M000030.html
|
169
|
+
- doc/classes/Zyps/Vector.src/M000031.html
|
170
|
+
- doc/classes/Zyps/Vector.src/M000032.html
|
171
|
+
- doc/classes/Zyps/Vector.src/M000033.html
|
172
|
+
- doc/classes/Zyps/Vector.src/M000034.html
|
173
|
+
- doc/classes/Zyps/Vector.src/M000035.html
|
174
|
+
- doc/classes/Zyps/Vector.src/M000036.html
|
175
|
+
- doc/classes/Zyps/Location.src/M000037.html
|
176
|
+
- doc/classes/Zyps/Color.src/M000038.html
|
177
|
+
- doc/classes/Zyps/Color.src/M000039.html
|
178
|
+
- doc/classes/Zyps/Color.src/M000040.html
|
179
|
+
- doc/classes/Zyps/Color.src/M000041.html
|
180
|
+
- doc/classes/Zyps/Color.src/M000042.html
|
181
|
+
- doc/classes/Zyps/Color.src/M000043.html
|
182
|
+
- doc/classes/Zyps/Accelerator.src/M000044.html
|
183
|
+
- doc/classes/Zyps/Accelerator.src/M000045.html
|
184
|
+
- doc/classes/Zyps/PullAction.src/M000046.html
|
185
|
+
- doc/classes/Zyps/PullAction.src/M000047.html
|
186
|
+
- doc/classes/Zyps/PullAction.src/M000048.html
|
187
|
+
- doc/classes/Zyps/PushAction.src/M000049.html
|
188
|
+
- doc/classes/Zyps/PushAction.src/M000050.html
|
189
|
+
- doc/classes/Zyps/PushAction.src/M000051.html
|
190
|
+
- doc/classes/Zyps/TagAction.src/M000052.html
|
191
|
+
- doc/classes/Zyps/TagAction.src/M000053.html
|
192
|
+
- doc/classes/Zyps/DestroyAction.src/M000054.html
|
193
|
+
- doc/classes/Zyps/DestroyAction.src/M000055.html
|
194
|
+
- doc/classes/Zyps/ProximityCondition.src/M000056.html
|
195
|
+
- doc/classes/Zyps/ProximityCondition.src/M000057.html
|
196
|
+
- doc/classes/Zyps/AgeCondition.src/M000058.html
|
197
|
+
- doc/classes/Zyps/AgeCondition.src/M000059.html
|
198
|
+
- doc/classes/Zyps/GameObject.src/M000060.html
|
199
|
+
- doc/classes/Zyps/GameObject.src/M000061.html
|
200
|
+
- doc/classes/Zyps/GameObject.src/M000062.html
|
201
|
+
- doc/classes/Zyps/GameObject.src/M000063.html
|
202
|
+
- doc/classes/Zyps/GameObject.src/M000064.html
|
203
|
+
- doc/classes/Zyps/Gravity.src/M000065.html
|
204
|
+
- doc/classes/Zyps/BlendAction.src/M000066.html
|
205
|
+
- doc/classes/Zyps/BlendAction.src/M000067.html
|
206
|
+
- doc/classes/Zyps/EatAction.src/M000068.html
|
207
|
+
- doc/classes/Zyps/Clock.src/M000069.html
|
208
|
+
- doc/classes/Zyps/Clock.src/M000070.html
|
209
|
+
- doc/classes/Zyps/Clock.src/M000071.html
|
210
|
+
- doc/classes/Zyps/Friction.src/M000072.html
|
211
|
+
- doc/classes/Zyps/Friction.src/M000073.html
|
212
|
+
- doc/classes/Zyps/ApproachAction.src/M000074.html
|
213
|
+
- doc/classes/Zyps/ApproachAction.src/M000075.html
|
214
|
+
- doc/classes/Zyps/ApproachAction.src/M000076.html
|
215
|
+
- doc/classes/Zyps/TurnAction.src/M000077.html
|
216
|
+
- doc/classes/Zyps/TurnAction.src/M000078.html
|
217
|
+
- doc/classes/Zyps/TurnAction.src/M000079.html
|
218
|
+
- doc/classes/Zyps/FaceAction.src/M000080.html
|
219
|
+
- doc/classes/Zyps/Environment.src/M000081.html
|
220
|
+
- doc/classes/Zyps/Environment.src/M000082.html
|
221
|
+
- doc/classes/Zyps/CollisionCondition.src/M000083.html
|
222
|
+
- doc/classes/Zyps/FleeAction.src/M000084.html
|
223
|
+
- doc/classes/Zyps/FleeAction.src/M000085.html
|
224
|
+
- doc/classes/Zyps/FleeAction.src/M000086.html
|
50
225
|
test_files:
|
51
226
|
- test/test_zyps.rb
|
52
227
|
rdoc_options:
|
@@ -61,6 +236,7 @@ extra_rdoc_files:
|
|
61
236
|
executables:
|
62
237
|
- zyps
|
63
238
|
- zyps_demo
|
239
|
+
- zyps_server
|
64
240
|
extensions: []
|
65
241
|
|
66
242
|
requirements:
|