MCPcopy Create free account
hub / github.com/TanTanDev/rusty_demon_attack / draw

Method draw

src/enemy.rs:489–499  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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}

Callers 1

mainFunction · 0.45

Calls 1

draw_state_normalMethod · 0.45

Tested by

no test coverage detected