Mercurial > touhou
comparison pytouhou/game/sprite.pxd @ 439:723a3e67a223
Make pytouhou.game.sprite an extension type.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 10 Aug 2013 20:48:17 +0200 |
parents | |
children | 5bb7d2c0ff46 |
comparison
equal
deleted
inserted
replaced
438:43a8fed9a8d8 | 439:723a3e67a223 |
---|---|
1 from pytouhou.utils.interpolator cimport Interpolator | |
2 | |
3 cdef class Sprite: | |
4 cdef public long width_override, height_override, blendfunc, frame | |
5 cdef public double angle | |
6 cdef public bint removed, changed, visible, force_rotation | |
7 cdef public bint automatic_orientation, allow_dest_offset, mirrored | |
8 cdef public bint corner_relative_placement | |
9 cdef public Interpolator scale_interpolator, fade_interpolator | |
10 cdef public Interpolator offset_interpolator, rotation_interpolator | |
11 cdef public Interpolator color_interpolator | |
12 cdef public tuple texcoords, dest_offset, texoffsets, rescale, scale_speed | |
13 cdef public tuple rotations_3d, rotations_speed_3d, color | |
14 cdef public unsigned char alpha | |
15 cdef public object anm, _rendering_data | |
16 | |
17 cpdef fade(self, unsigned long duration, alpha, formula=*) | |
18 cpdef scale_in(self, unsigned long duration, sx, sy, formula=*) | |
19 cpdef move_in(self, unsigned long duration, x, y, z, formula=*) | |
20 cpdef rotate_in(self, unsigned long duration, rx, ry, rz, formula=*) | |
21 cpdef change_color_in(self, unsigned long duration, r, g, b, formula=*) | |
22 cpdef update_orientation(self, double angle_base=*, bint force_rotation=*) | |
23 cpdef Sprite copy(self) | |
24 cpdef update(self) |