Mercurial > touhou
diff pytouhou/game/enemy.pxd @ 564:a0fa01cd9f70
Make Enemy.get_angle able to target any Element, not only Player.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 12 Jun 2014 18:41:01 +0200 |
parents | bcff39c920ab |
children | 3c2f96f1d715 |
line wrap: on
line diff
--- a/pytouhou/game/enemy.pxd +++ b/pytouhou/game/enemy.pxd @@ -39,7 +39,7 @@ cdef class Enemy(Element): grazing_delay, grazing_extra_duration, unknown, tuple offset=*) cpdef Player select_player(self, list players=*) - cpdef double get_player_angle(self, tuple pos=*, Player player=*) except 42 + cpdef double get_angle(self, Element target, tuple pos=*) except 42 cpdef set_anim(self, index) cdef void die_anim(self) except * cdef void drop_particles(self, long number, long color) except *