Mercurial > touhou
comparison pytouhou/game/game.pxd @ 473:1c891c71cf22
Cythonize pytouhou.game.text.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 16 Sep 2013 18:42:12 +0200 |
parents | 06f0eeb519bb |
children | 2f53be1b2f60 |
comparison
equal
deleted
inserted
replaced
472:8038f1957b71 | 473:1c891c71cf22 |
---|---|
1 from pytouhou.game.effect cimport Effect | 1 from pytouhou.game.effect cimport Effect |
2 from pytouhou.game.player cimport Player | 2 from pytouhou.game.player cimport Player |
3 from pytouhou.game.text cimport Text, NativeText | |
3 | 4 |
4 cdef class Game: | 5 cdef class Game: |
5 cdef public long width, height, nb_bullets_max, stage, rank, difficulty, difficulty_counter, difficulty_min, difficulty_max, frame, last_keystate | 6 cdef public long width, height, nb_bullets_max, stage, rank, difficulty, difficulty_counter, difficulty_min, difficulty_max, frame, last_keystate |
6 cdef public list bullet_types, laser_types, item_types, players, enemies, effects, bullets, lasers, cancelled_bullets, players_bullets, players_lasers, items, labels, faces, texts, hints, bonus_list | 7 cdef public list bullet_types, laser_types, item_types, players, enemies, effects, bullets, lasers, cancelled_bullets, players_bullets, players_lasers, items, labels, faces, texts, hints, bonus_list |
7 cdef public object interface, boss, msg_runner, prng, sfx_player | 8 cdef public object interface, boss, msg_runner, prng, sfx_player |
27 cpdef kill_enemies(self) | 28 cpdef kill_enemies(self) |
28 cpdef new_effect(self, pos, long anim, anm=*, long number=*) | 29 cpdef new_effect(self, pos, long anim, anm=*, long number=*) |
29 cpdef new_particle(self, pos, long anim, long amp, long number=*, bint reverse=*, long duration=*) | 30 cpdef new_particle(self, pos, long anim, long amp, long number=*, bint reverse=*, long duration=*) |
30 cpdef new_enemy(self, pos, life, instr_type, bonus_dropped, die_score) | 31 cpdef new_enemy(self, pos, life, instr_type, bonus_dropped, die_score) |
31 cpdef new_msg(self, sub) | 32 cpdef new_msg(self, sub) |
32 cdef new_label(self, pos, str text) | 33 cdef Text new_label(self, tuple pos, bytes text) |
33 cpdef new_native_text(self, pos, text, align=*) | 34 cpdef NativeText new_native_text(self, tuple pos, unicode text, align=*) |
34 cpdef new_hint(self, hint) | 35 cpdef Text new_hint(self, hint) |
35 cpdef new_face(self, side, effect) | 36 cpdef new_face(self, side, effect) |
36 cpdef run_iter(self, long keystate) | 37 cpdef run_iter(self, long keystate) |
37 cdef void update_background(self) except * | 38 cdef void update_background(self) except * |
38 cdef void update_enemies(self) except * | 39 cdef void update_enemies(self) except * |
39 cdef void update_msg(self, long keystate) except * | 40 cdef void update_msg(self, long keystate) except * |