Package SmootLight :: Package behaviors :: Module ResponseMover
[hide private]
[frames] | no frames]

Source Code for Module SmootLight.behaviors.ResponseMover

 1  import pdb 
 2  from operationscore.Behavior import * 
 3  import util.ComponentRegistry as compReg 
4 -class ResponseMover(Behavior):
5 """ResponseMover is a scaffold for behaviors that spawn 'walkers' which act autonomously on input. 6 To control the movment, use the behavior as part of a BehaviorChain and add a recursive hook which 7 modulates the location.""" 8
9 - def processResponse(self, sensorInputs, recursiveInputs):
10 return (recursiveInputs, recursiveInputs+sensorInputs)
11