view pytouhou/game/player.pxd @ 467:5bb7d2c0ff46

Fix lasers sprite handling
author Thibaut Girka <thib@sitedethib.com>
date Thu, 12 Sep 2013 14:43:38 +0200
parents 5f5955635d2c
children feecdb4a8928
line wrap: on
line source

from pytouhou.game.element cimport Element
from pytouhou.game.game cimport Game

cdef class PlayerState:
    cdef public double x, y
    cdef public bint touchable, focused
    cdef public long character, score, effective_score, lives, bombs, power
    cdef public long graze, points

    cdef long invulnerable_time, power_bonus, continues, continues_used, miss,
    cdef long bombs_used


cdef class Player(Element):
    cdef public PlayerState state
    cdef public long death_time
    cdef public Game _game

    cdef object anm
    cdef tuple speeds
    cdef long fire_time, bomb_time, direction

    cdef void set_anim(self, index)
    cpdef play_sound(self, str name)
    cpdef collide(self)
    cdef void fire(self)
    cpdef update(self, long keystate)