Mercurial > touhou
comparison pytouhou/game/game.py @ 446:3a33ed7f3b85
Make pytouhou.game.item an extension type.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 17 Aug 2013 06:01:45 +0200 |
parents | b0abb05811f7 |
children |
comparison
equal
deleted
inserted
replaced
445:b0abb05811f7 | 446:3a33ed7f3b85 |
---|---|
119 self.items.append(item) | 119 self.items.append(item) |
120 | 120 |
121 | 121 |
122 def autocollect(self, player): | 122 def autocollect(self, player): |
123 for item in self.items: | 123 for item in self.items: |
124 if not item.player: | 124 item.autocollect(player) |
125 item.autocollect(player) | |
126 | 125 |
127 | 126 |
128 def cancel_bullets(self): | 127 def cancel_bullets(self): |
129 for bullet in self.bullets: | 128 for bullet in self.bullets: |
130 bullet.cancel() | 129 bullet.cancel() |