(x: usize, y: usize)
| 11 | |
| 12 | impl Shot { |
| 13 | pub fn new(x: usize, y: usize) -> Self { |
| 14 | Self { |
| 15 | x, |
| 16 | y, |
| 17 | exploding: false, |
| 18 | timer: Timer::new(Duration::from_millis(50)), |
| 19 | } |
| 20 | } |
| 21 | pub fn update(&mut self, delta: Duration) { |
| 22 | self.timer.tick(delta); |
| 23 | if self.timer.finished() && !self.exploding { |
nothing calls this directly
no outgoing calls
no test coverage detected