diff pytouhou/game/effect.pxd @ 443:cae83b963695

Make pytouhou.game.effect an extension type.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2013 02:36:05 +0200
parents
children cd8a2baf468c
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/pytouhou/game/effect.pxd
@@ -0,0 +1,12 @@
+from pytouhou.game.element cimport Element
+from pytouhou.utils.interpolator cimport Interpolator
+
+cdef class Effect(Element):
+    cpdef update(self)
+
+
+cdef class Particle(Effect):
+    cdef long frame, duration
+    cdef Interpolator pos_interpolator
+
+    cpdef update(self)