diff options
author | rcoh <rcoh@mit.edu> | 2010-12-15 00:18:24 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2010-12-15 00:18:24 -0500 |
commit | a89c772cd64c6790906734f7128947e0f453c7e3 (patch) | |
tree | 250e0b0d235e1215fa7b40fcfd24b74028ccf643 /behaviors | |
parent | 8cecf83f16fcdec5b3ee68cc40c2b360e0f845d0 (diff) |
About halfway done with the Util cleanup. Some stuff left to do with scoping etc.
Diffstat (limited to 'behaviors')
-rw-r--r-- | behaviors/ColorChangerBehavior.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/behaviors/ColorChangerBehavior.py b/behaviors/ColorChangerBehavior.py index a3b1739..e1827eb 100644 --- a/behaviors/ColorChangerBehavior.py +++ b/behaviors/ColorChangerBehavior.py @@ -1,5 +1,5 @@ from operationscore.Behavior import * -import Util +import util.ColorOps as color import pdb class ColorChangerBehavior(Behavior): def processResponse(self, sensorInputs, recursiveInputs): @@ -7,9 +7,8 @@ class ColorChangerBehavior(Behavior): for sensory in sensorInputs: newDict = dict(sensory) #don't run into shallow copy issues if self['ColorList'] != None: - newDict['Color'] = Util.chooseRandomColor(self['ColorList']) #TODO: this doesn't work. + newDict['Color'] = color.chooseRandomColor(self['ColorList']) #TODO: this doesn't work. else: - newDict['Color'] = Util.randomColor() -#newDict['Color'] = (255,0,0) + newDict['Color'] = color.randomColor() ret.append(newDict) return (ret, recursiveInputs) |