comparison pytouhou/game/game.pxd @ 784:1f152ca95658

Replace pytouhou.utils.random.Random with a Rust version libtouhou.Prng now supports having its seed generated randomly using the getrandom crate, and is now exposed to Python.
author Link Mauve <linkmauve@linkmauve.fr>
date Sun, 23 Nov 2025 12:48:03 +0100
parents ec1e06402a97
children
comparison
equal deleted inserted replaced
783:ec1e06402a97 784:1f152ca95658
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 from pytouhou.game.text cimport Text, NativeText
4 from pytouhou.utils.random cimport Random
5 4
6 cdef class Game: 5 cdef class Game:
7 cdef public long width, height, nb_bullets_max, stage, rank, difficulty, difficulty_min, difficulty_max, frame 6 cdef public long width, height, nb_bullets_max, stage, rank, difficulty, difficulty_min, difficulty_max, frame
8 cdef public list bullet_types, laser_types, item_types, players, enemies, effects, bullets, lasers, cancelled_bullets, players_bullets, players_lasers, items, labels, faces, 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, hints, bonus_list
9 cdef public object interface, boss, msg_runner 8 cdef public object interface, boss, msg_runner
10 cdef public dict texts 9 cdef public dict texts
11 cdef public object sfx_player, music 10 cdef public object sfx_player, music
12 cdef public Random prng 11 cdef public object prng
13 cdef public double continues 12 cdef public double continues
14 cdef public Effect spellcard_effect 13 cdef public Effect spellcard_effect
15 cdef public tuple spellcard 14 cdef public tuple spellcard
16 cdef public bint time_stop, msg_wait 15 cdef public bint time_stop, msg_wait
17 cdef public unsigned short deaths_count, next_bonus 16 cdef public unsigned short deaths_count, next_bonus