(&mut self)
| 487 | } |
| 488 | |
| 489 | pub fn draw(&mut self) { |
| 490 | match &self.state { |
| 491 | EnemyState::Spawning(state_data) => { |
| 492 | Self::draw_state_spawning(&self.state_shared, state_data) |
| 493 | } |
| 494 | EnemyState::Normal(_state_data) => self.draw_state_normal(), |
| 495 | // enemy doesn't look different when shooting |
| 496 | EnemyState::Shooting(_state_data) => self.draw_state_normal(), |
| 497 | EnemyState::Homing(_state_data) => self.draw_state_normal(), |
| 498 | } |
| 499 | } |
| 500 | } |
no test coverage detected