Mercurial > touhou
comparison pytouhou/game/game.pxd @ 447:78e1c3864e73
Make pytouhou.game.game an extension type.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 17 Aug 2013 06:29:53 +0200 |
parents | |
children | b16d34fca5b4 |
comparison
equal
deleted
inserted
replaced
446:3a33ed7f3b85 | 447:78e1c3864e73 |
---|---|
1 from pytouhou.game.effect cimport Effect | |
2 from pytouhou.game.player cimport Player | |
3 | |
4 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 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 double continues | |
9 cdef public Effect spellcard_effect | |
10 cdef public tuple spellcard | |
11 cdef public bint time_stop, msg_wait | |
12 cdef public unsigned short deaths_count, next_bonus | |
13 | |
14 cpdef modify_difficulty(self, long diff) | |
15 cpdef drop_bonus(self, double x, double y, long _type, end_pos=*) | |
16 cdef void autocollect(self, Player player) | |
17 cpdef cancel_bullets(self) | |
18 cpdef new_particle(self, pos, long anim, long amp, long number=*, bint reverse=*, long duration=*) | |
19 cpdef new_label(self, pos, str text) | |
20 cdef void update_background(self) | |
21 cdef void update_enemies(self) | |
22 cdef void update_msg(self, long keystate) except * | |
23 cdef void update_players(self, long keystate) except * | |
24 cdef void update_effects(self) | |
25 cdef void update_hints(self) | |
26 cdef void update_faces(self) | |
27 cdef void update_bullets(self) | |
28 cdef void cleanup(self) |