Mercurial > touhou
comparison pytouhou/game/enemy.py @ 159:4684d311a32d
Remove remaining pop_enemy/new_enemy mess
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 10 Oct 2011 19:01:23 +0200 |
parents | 7769ce7be03c |
children | dcf32488a2c9 |
comparison
equal
deleted
inserted
replaced
158:7769ce7be03c | 159:4684d311a32d |
---|---|
20 from pytouhou.game.item import Item | 20 from pytouhou.game.item import Item |
21 from math import cos, sin, atan2, pi | 21 from math import cos, sin, atan2, pi |
22 | 22 |
23 | 23 |
24 class Enemy(object): | 24 class Enemy(object): |
25 def __init__(self, pos, life, _type, bonus_dropped, anm_wrapper, game, pop_enemy): | 25 def __init__(self, pos, life, _type, bonus_dropped, anm_wrapper, game): |
26 self._game = game | 26 self._game = game |
27 self._anm_wrapper = anm_wrapper | 27 self._anm_wrapper = anm_wrapper |
28 self._sprite = None | 28 self._sprite = None |
29 self._anmrunner = None | 29 self._anmrunner = None |
30 self._removed = False | 30 self._removed = False |
69 | 69 |
70 self.hitbox = (0, 0) | 70 self.hitbox = (0, 0) |
71 self.hitbox_half_size = (0, 0) | 71 self.hitbox_half_size = (0, 0) |
72 self.screen_box = None | 72 self.screen_box = None |
73 | 73 |
74 self.pop_enemy = pop_enemy | |
75 | |
76 | 74 |
77 def set_bullet_attributes(self, type_, anim, sprite_idx_offset, | 75 def set_bullet_attributes(self, type_, anim, sprite_idx_offset, |
78 bullets_per_shot, number_of_shots, speed, speed2, | 76 bullets_per_shot, number_of_shots, speed, speed2, |
79 launch_angle, angle, flags): | 77 launch_angle, angle, flags): |
80 self.bullet_attributes = (type_, anim, sprite_idx_offset, bullets_per_shot, | 78 self.bullet_attributes = (type_, anim, sprite_idx_offset, bullets_per_shot, |