Example #1
0
 def __init__(self, env=None):
     if env is None:
         env = global_env.sprout()
     Actor.__init__(self, env, maildir_script, True)
     # XXX the following might run before env is initialized, when
     # restoring from a snapshot.  We should just throw out this
     # env hack and make something better.
     for key in env.locals:
         self.script.add_element(Example(key))
Example #2
0
 def __init__(self, env=None):
     if env is None:
         env = global_env.sprout()
     Actor.__init__(self, env, maildir_script, True)
     # XXX the following might run before env is initialized, when
     # restoring from a snapshot.  We should just throw out this
     # env hack and make something better.
     for key in env.locals:
         self.script.add_element(Example(key))
Example #3
0
 def __init__(self,x=None,y=None,img=None):
     if x is None and y is None and img is None:
         Actor.__init__(self)
     elif x is None and y is None:
         Actor.__init__(self,None,None,img)
     else:
         Actor.__init__(self,x,y,img)
     self.player_speed = 5
     self.health = 20
Example #4
0
    def __init__(self,x=None,y=None,img=None):
        if x is None and y is None and img is None:
            Actor.__init__(self)
        elif x is None and y is None:
            Actor.__init__(self,None,None,img)
        else:
            Actor.__init__(self,x,y,img)

        pygame.transform.scale(self.getImage(),(1920,1080))
        self.y_speed = 4
Example #5
0
 def __init__(self, stamp):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, stampguard_script, stamp)
Example #6
0
 def __init__(self):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, stamp_maker_script, True)
Example #7
0
 def __init__(self, sample_instance):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, type_guard_script, sample_instance)
Example #8
0
 def __init__(self):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, stamp_script, False)
Example #9
0
 def __init__(self, elements):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, list_script, tuple(elements))
Example #10
0
 def __init__(self, str):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, string_script, str)
Example #11
0
 def __init__(self, n):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, number_script, n)
Example #12
0
 def __init__(self):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, stamp_script, False)
Example #13
0
 def __init__(self, script, value):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, script, value)
Example #14
0
 def __init__(self, x, y):
     """Create a decoration at acnvas coordinates x,y"""
     self.x = int(x)
     self.y = int(y)
     Actor.__init__(self)
Example #15
0
 def __init__(self, str):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, string_script, str)
Example #16
0
 def __init__(self):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, stamp_maker_script, True)
Example #17
0
 def __init__(self, stamp):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, stampguard_script, stamp)
Example #18
0
 def __init__(self, elements):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, list_script, tuple(elements))
Example #19
0
 def __init__(self, n):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, number_script, n)
Example #20
0
 def __init__(self, script, value):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, script, value)
Example #21
0
 def __init__(self, sample_instance):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, type_guard_script, sample_instance)
Example #22
0
 def __init__(self, initial_value):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, box_script, initial_value)
Example #23
0
 def __init__(self, initial_value):
     # XXX global_env is mutable
     Actor.__init__(self, global_env, box_script, initial_value)