def use (self, actor): ReusableItem.use(self, actor) light = LightIntensityChange() light.intensity = self.lightintensity self.emit(light)
def putAway (self, actor): ReusableItem.putAway(self, actor) light = LightIntensityChange() light.intensity = - self.lightintensity self.emit(light)
def __init__ (self): ReusableItem.__init__(self) SignalEmitter.__init__(self) self.lightintensity = 0