comparison pytouhou/vm/eclrunner.py @ 445:b0abb05811f7

Make pytouhou.game.player an extension type, and move the GameOver exception there since it makes more sense.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2013 04:44:28 +0200
parents e8dc95a2a287
children 4ccc47828002
comparison
equal deleted inserted replaced
444:f26c8ab57257 445:b0abb05811f7
201 return self._enemy.y 201 return self._enemy.y
202 elif value == -10017: 202 elif value == -10017:
203 return self._enemy.z 203 return self._enemy.z
204 elif value == -10018: 204 elif value == -10018:
205 player = self._enemy.select_player() 205 player = self._enemy.select_player()
206 return player.x 206 return player.state.x
207 elif value == -10019: 207 elif value == -10019:
208 player = self._enemy.select_player() 208 player = self._enemy.select_player()
209 return player.y 209 return player.state.y
210 elif value == -10021: 210 elif value == -10021:
211 return self._enemy.get_player_angle() 211 return self._enemy.get_player_angle()
212 elif value == -10022: 212 elif value == -10022:
213 return self._enemy.frame 213 return self._enemy.frame
214 elif value == -10024: 214 elif value == -10024: