Mercurial > touhou
comparison src/th06/enemy.rs @ 735:b9928db975e1
ecl: Enable instruction 99.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Dec 2019 19:20:20 +0100 |
parents | 414f8611f344 |
children | 0977d479e37d |
comparison
equal
deleted
inserted
replaced
734:7886a1a5d226 | 735:b9928db975e1 |
---|---|
509 pub(crate) fn get_angle_to(&self, player: Rc<RefCell<Player>>) -> f32 { | 509 pub(crate) fn get_angle_to(&self, player: Rc<RefCell<Player>>) -> f32 { |
510 let player = player.borrow(); | 510 let player = player.borrow(); |
511 let offset = self.pos - player.pos; | 511 let offset = self.pos - player.pos; |
512 offset.dy.atan2(offset.dx) | 512 offset.dy.atan2(offset.dx) |
513 } | 513 } |
514 | |
515 pub(crate) fn set_aux_anm(&self, number: i32, script: i32) { | |
516 println!("TODO: Spawn aux anm {} with script {}.", number, script); | |
517 } | |
514 } | 518 } |
515 | 519 |
516 trait Renderable { | 520 trait Renderable { |
517 fn get_sprites(&self) -> Vec<Rc<RefCell<Sprite>>>; | 521 fn get_sprites(&self) -> Vec<Rc<RefCell<Sprite>>>; |
518 } | 522 } |