示例#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'
 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]
 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'
 def __init__(self, host, owner):
     dur = d(3)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Stuns the enemy'
 def __init__(self, host, owner):
     dur = d(10)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Poisons the enemy'
 def __init__(self, host, owner):
     dur = d(25)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Poisons the enemy'
 def __init__(self, host, owner):
     dur = d(10)
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'Makes the enemy bleed'
示例#16
0
 def __init__(self, cube):
   Effect.__init__(self, cube)
   self.snake = [ (0, 0, i) for i in np.arange(0, cube.size) ]
 def __init__(self, host, owner):
     dur = 10
     Effect.__init__(self, dur, host, owner)
 def __init__(self, host, owner):
     dur = 1
     Effect.__init__(self, dur, host, owner)
     weaponinfotext = 'You should not read this'
 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'
 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)
 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)