blob: c1f6f92b428d6ac0c8f0ba78d881d3c779dd02b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from operationscore.Behavior import *
from pixelevents.DecayEvent import *
import util.Strings as Strings
import pdb
class DecayBehavior(Behavior):
def processResponse(self, sensorInputs, recursiveInputs):
ret = []
for sensory in sensorInputs:
outDict = {}
outDict[Strings.LOCATION] = sensory[Strings.LOCATION]
outDict['PixelEvent'] = \
DecayEvent.generate(self['DecayType'],self['Coefficient'], sensory['Color'])
ret.append(outDict)
return (ret, recursiveInputs)
|