diff options
author | rcoh <rcoh@mit.edu> | 2010-12-20 14:19:09 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2010-12-20 14:19:09 -0500 |
commit | 7386cbc7ce48e3996d92d84cff3d1a4dab8f538d (patch) | |
tree | c6093fb305efc46ee3b73728206653892a670c14 /behaviors/RunningBehavior.py | |
parent | a89c772cd64c6790906734f7128947e0f453c7e3 (diff) |
A little bit more util stuff. Migrated the component registry to the ComponentRegistry module.
Almost done.
Diffstat (limited to 'behaviors/RunningBehavior.py')
-rw-r--r-- | behaviors/RunningBehavior.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/behaviors/RunningBehavior.py b/behaviors/RunningBehavior.py index 3d82d29..4f51898 100644 --- a/behaviors/RunningBehavior.py +++ b/behaviors/RunningBehavior.py @@ -1,4 +1,5 @@ from operationscore.Behavior import * +import util.ComponentRegistry as compReg import pdb import Util class RunningBehavior(Behavior): @@ -15,7 +16,7 @@ class RunningBehavior(Behavior): outDict['Location']= Util.addLocations(outDict['Location'], (outDict['StepSize']*outDict['Dir'],0)) if not Util.pointWithinBoundingBox(outDict['Location'], \ - Util.getScreen().getSize()): + compReg.getComponent('Screen').getSize()): outDict['Dir'] *= -1 ret.append(outDict) ret += newResponses |