comparison pytouhou/game/bullet.py @ 151:5cf927cbd9c5

Merge GameState into Game. TODO: Merge PlayerState into Player
author Thibaut Girka <thib@sitedethib.com>
date Tue, 04 Oct 2011 23:32:02 +0200
parents 3673d55a8448
children 86807b8a63bd
comparison
equal deleted inserted replaced
150:4f46717390aa 151:5cf927cbd9c5
19 from pytouhou.game.sprite import Sprite 19 from pytouhou.game.sprite import Sprite
20 20
21 21
22 class Bullet(object): 22 class Bullet(object):
23 def __init__(self, pos, bullet_type, sprite_idx_offset, 23 def __init__(self, pos, bullet_type, sprite_idx_offset,
24 angle, speed, attributes, flags, player, game_state): 24 angle, speed, attributes, flags, player, game):
25 self._game_state = game_state 25 self._game = game
26 self._sprite = None 26 self._sprite = None
27 self._anmrunner = None 27 self._anmrunner = None
28 self._removed = False 28 self._removed = False
29 self._launched = False 29 self._launched = False
30 self._bullet_type = bullet_type 30 self._bullet_type = bullet_type