(&self, gc: &mut dyn GraphicsContext)
| 228 | } |
| 229 | |
| 230 | pub fn draw(&self, gc: &mut dyn GraphicsContext) { |
| 231 | self.roids.iter().for_each(|roid| roid.draw(gc)); |
| 232 | self.ship.draw(gc); |
| 233 | self.bullets.iter().for_each(|bullet| bullet.draw(gc)); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | impl Ship { |
no test coverage detected