From cb69d2e1c7ced951cbf7a31ee286b0ed92cab8a8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Fri, 18 Feb 2011 16:56:43 -0500 Subject: Adding Epydoc generated docs. --- html/SmootLight.behaviors.XYMove-pysrc.html | 136 ++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 html/SmootLight.behaviors.XYMove-pysrc.html (limited to 'html/SmootLight.behaviors.XYMove-pysrc.html') diff --git a/html/SmootLight.behaviors.XYMove-pysrc.html b/html/SmootLight.behaviors.XYMove-pysrc.html new file mode 100644 index 0000000..31aee5b --- /dev/null +++ b/html/SmootLight.behaviors.XYMove-pysrc.html @@ -0,0 +1,136 @@ + + + + + SmootLight.behaviors.XYMove + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package behaviors :: + Module XYMove + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.behaviors.XYMove

+
+ 1  from operationscore.Behavior import * 
+ 2  import util.Geo as Geo 
+
3 -class XYMove(Behavior): +
4 """XYMove is a behavior designed to be used as a recursive hook to ResponseMover to move pixels by + 5 XStep and YStep. As XStep and YStep are maintained in the responses itself, they can be + 6 modulated to facilitate, acceleration, modulation, bouncing, etc. Specify: + 7 <XStep> -- the starting XStep + 8 <YStep> -- the starting YStep + 9 """ +10 +
11 - def processResponse(self, sensor, recurs): +
12 ret = [] +13 for loc in sensor: +14 oploc = dict(loc) +15 self.insertStepIfMissing(oploc) +16 oploc['Location'] = Geo.addLocations((oploc['XStep'], oploc['YStep']), oploc['Location']) +17 ret.append(oploc) +18 return (ret, []) +
19 - def insertStepIfMissing(self, data): +
20 if not 'XStep' in data: +21 data['XStep'] = self['XStep'] +22 if not 'YStep' in data: +23 data['YStep'] = self['YStep'] +
24 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3