blob: 56e168690bcf3b7269ecaa558207de958cfb5d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from operationscore.Behavior import *
from pixelevents.DecayEvent import *
import util.Strings as Strings
import Util
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)
|