예제 #1
0
    def __init__(self, bodytype=None):
        NativeClass.__init__(self)

        self.store(libfp_core.Body())

        if not bodytype is None:
            self.type = bodytype
예제 #2
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(libfp_core.Element())
     self.listen({"add": self.on_add,
                  "remove": self.on_remove,
                  "pre_render": self.on_pre_render,
                  "post_render": self.on_render})
예제 #3
0
    def __init__(self, element_a=None, element_b=None):
        NativeClass.__init__(self)

        self.store(libfp_core.DistanceJoint())

        if not element_a is None:
            self.element_a = element_a
            self.element_b = element_b
예제 #4
0
    def __init__(self, instance=None, attribute=None):
        NativeClass.__init__(self)

        self.store(libfp_core.Tween())

        # We want the property to be created once it starts running
        self.listen({"pre_render": self.create_property})
        self.instance = instance
        self.attribute = attribute
예제 #5
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.App())
        self.listen({
            "render": self.on_render,
            "init": self.on_init,
            "change_scene": self.on_scene_change
        })
예제 #6
0
    def __init__(self, image=None):
        NativeClass.__init__(self)

        if isinstance(image, NativeClass):
            self.store(libfp_core.Sprite(image._native))
        elif image is not None:
            self.store(libfp_core.Sprite(image))
        else:
            self.store(libfp_core.Sprite())
예제 #7
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Playable())

        self.listen({
            "render_single": self.on_render_single,
            "calculate_duration": self.on_calculate_duration
        })
예제 #8
0
 def __init__(self, file=None):
     NativeClass.__init__(self)
     
     self.auto_cast_numbers = True
     self.module_paths = []
     
     if file:
         self.store(libfp_core.Node(file))
     else:
         self.store(libfp_core.Node())
예제 #9
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.PhysicsWorld())
예제 #10
0
    def __init__(self, text=None):
        NativeClass.__init__(self)

        if text is not None:
            self.store(libfp_core.Text(text))
예제 #11
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(libfp_core.Animation())        
예제 #12
0
    def __init__(self, name="undefined"):
        NativeClass.__init__(self)

        self.store(libfp_core.Event(name))
예제 #13
0
 def __init__(self, evname=None):
     NativeClass.__init__(self)
     
     if not evname is None:
         self.store(libfp_core.PropertyEvent(evname))        
예제 #14
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Group())
예제 #15
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.ContactEvent())
예제 #16
0
    def __init__(self, image=None):
        NativeClass.__init__(self)

        if image is not None:
            self.store(libfp_core.Image(image))
예제 #17
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(ObserverWrap())
     self._native.function = self.action
예제 #18
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Collection())
예제 #19
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(libfp_core.Property())
     self.listen({"get": self.on_get,
                  "set": self.on_set})
예제 #20
0
    def __init__(self, color=None):
        NativeClass.__init__(self)

        if not color is None:
            self.store(libfp_core.Color(color))
예제 #21
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Scene())
        self.listen({"init": self.on_init, "post_render": self.on_render})
예제 #22
0
    def __init__(self, font_file=None):
        NativeClass.__init__(self)

        if not font_file is None:
            self.store(libfp_core.Font(font_file))
예제 #23
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Observable())
예제 #24
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Primitive())