コード例 #1
0
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     actors = owner.game.get_all_srd_actors(owner.pos())
     for act in actors:
         Effect.__init__(self, dur, act, owner)
     weaponinfotext = 'Splatters the enemy'
コード例 #2
0
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     actors = owner.game.get_all_srd_actors(owner.pos())
     for act in actors:
         Effect.__init__(self, dur, act, owner)
     weaponinfotext = 'Splatters the enemy'
コード例 #3
0
    def __init__(self, actor):

        self.actor = actor
        point = self.actor.coord.get

        Effect.__init__(self, point, None)
        self.drawable = False
コード例 #4
0
    def __init__(self, effect_tracker, map, coord, color):

        Effect.__init__(self, effect_tracker)
        self.set_map(map)
        self.set_coord(coord)
        self.set_color(color)
        self.set_light(LightComponent(self, map, color, 5))

        self.set_image()

        self.tick = 0
        self.frame = '1'
        self.image_component.frame = self.frame
コード例 #5
0
    def __init__(self, effect_tracker, map, origin, target, color):

        self.axis = 'x'
        self.mod = 1

        self.target = target
        self.base_color = color

        self.tick = 0

        Effect.__init__(self, effect_tracker)
        self.set_map(map)
        self.set_coord(self.get_initial_coord(origin, target))
        self.set_color(color)
        self.set_image()
        self.set_light(LightComponent(self, map, color, 3))

        self.blocks = False
コード例 #6
0
 def __init__(self, drawing, nextModeCallback):
     Effect.__init__(self, drawing, nextModeCallback)
     self.rgbMaxValue = 255
     self.resetState()
コード例 #7
0
 def __init__(self):
     Effect.__init__(self)
     self.duration = 5
コード例 #8
0
 def __init__(self, drawing, nextModeCallback):
     Effect.__init__(self, drawing, nextModeCallback)
     self.colorSeconds = [0, 0, 50]
     self.colorMinutes = [50, 0, 0]
     self.colorHours = [0, 255, 0]
コード例 #9
0
ファイル: echo.py プロジェクト: oswinso/PythonDSP
	def __init__(self, decay=0.5, rate=1):
		Effect.__init__(self,"Echo Filter")
		self.decay = decay
		self.rate = rate
		self.fs = 44100
		self.__class__.__bases__[0].parameters = [decay,rate]
コード例 #10
0
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Burns the enemy'
コード例 #11
0
 def __init__(self, host, owner):
     dur = d(4)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Blinds the enemy'
コード例 #12
0
 def __init__(self, host, owner):
     dur = d(3)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Stuns the enemy'
コード例 #13
0
 def __init__(self, host, owner):
     dur = d(10)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Poisons the enemy'
コード例 #14
0
 def __init__(self, host, owner):
     dur = d(25)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Poisons the enemy'
コード例 #15
0
 def __init__(self, host, owner):
     dur = d(10)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Makes the enemy bleed'
コード例 #16
0
ファイル: snake.py プロジェクト: aszczepanski/led-cube
 def __init__(self, cube):
   Effect.__init__(self, cube)
   self.snake = [ (0, 0, i) for i in np.arange(0, cube.size) ]
コード例 #17
0
 def __init__(self, host, owner):
     dur = 10
     Effect.__init__(self, dur, host, owner)
コード例 #18
0
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'You should not read this'
コード例 #19
0
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Strokes the enemy'
コード例 #20
0
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'You should not read this'
コード例 #21
0
 def __init__(self, host, owner):
     dur = d(10)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Stuns the enemy'
コード例 #22
0
 def __init__(self, drawing, nextModeCallback):
     Effect.__init__(self, drawing, nextModeCallback)
コード例 #23
0
 def __init__(self, host, owner):
     dur = d(4)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Blinds the enemy'
コード例 #24
0
 def __init__(self, host, owner):
     dur = 10
     Effect.__init__(self, dur, host, owner)