예제 #1
0
파일: light.py 프로젝트: retooth/shmudder
 def use (self, actor):
     ReusableItem.use(self, actor)
     light = LightIntensityChange()
     light.intensity = self.lightintensity
     self.emit(light)
예제 #2
0
파일: light.py 프로젝트: retooth/shmudder
 def putAway (self, actor):
     ReusableItem.putAway(self, actor)
     light = LightIntensityChange()
     light.intensity = - self.lightintensity
     self.emit(light)
예제 #3
0
파일: light.py 프로젝트: retooth/shmudder
 def __init__ (self):
     ReusableItem.__init__(self)
     SignalEmitter.__init__(self)
     self.lightintensity = 0