Mercurial > touhou
comparison pytouhou/game/item.pyx @ 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 | 3a33ed7f3b85 |
children | feecdb4a8928 |
comparison
equal
deleted
inserted
replaced
446:3a33ed7f3b85 | 447:78e1c3864e73 |
---|---|
31 self.x = self._item.x | 31 self.x = self._item.x |
32 | 32 |
33 | 33 |
34 | 34 |
35 cdef class Item(Element): | 35 cdef class Item(Element): |
36 def __init__(self, start_pos, long _type, item_type, game, double angle=pi/2, Player player=None, end_pos=None): | 36 def __init__(self, start_pos, long _type, item_type, Game game, double angle=pi/2, Player player=None, end_pos=None): |
37 Element.__init__(self, start_pos) | 37 Element.__init__(self, start_pos) |
38 | 38 |
39 self._game = game | 39 self._game = game |
40 self._type = _type | 40 self._type = _type |
41 self._item_type = item_type | 41 self._item_type = item_type |