aboutsummaryrefslogtreecommitdiff
path: root/behaviors/DecayBehavior.py
blob: f9efa3be98f8b6e537d56aa68ec777c770d44b6c (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
import pdb
class DecayBehavior(Behavior):
    def processResponse(self, sensorInputs, recursiveInputs):
        ret = []
        #TODO: move into params
        for sensory in sensorInputs:
            outDict = {}
            outDict[Util.location] = sensory[Util.location]
            outDict['PixelEvent'] = \
            DecayEvent.generate('Proportional',100, sensory['Color'])
            ret.append(outDict)
        return ret