comparison src/th06/enemy.rs @ 699:2a60f12bd5bd

ecl_vm: stub SetBossMode.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 23 Aug 2019 02:40:27 +0200
parents 05e0425a8bc5
children b6c351ca0a35
comparison
equal deleted inserted replaced
698:05e0425a8bc5 699:2a60f12bd5bd
382 /// Stubbed for now. 382 /// Stubbed for now.
383 pub(crate) fn play_sound(&self, sound_index: i32) { 383 pub(crate) fn play_sound(&self, sound_index: i32) {
384 println!("Playing sound {}!", sound_index); 384 println!("Playing sound {}!", sound_index);
385 } 385 }
386 386
387 /// Stubbed for now.
388 pub(crate) fn set_boss(&self, enable: bool) {
389 match enable {
390 true => println!("Enemy is now boss!"),
391 false => println!("Enemy is not boss anymore."),
392 }
393 }
394
387 /// Run all interpolators and such, and update internal variables once per 395 /// Run all interpolators and such, and update internal variables once per
388 /// frame. 396 /// frame.
389 pub fn update(&mut self) { 397 pub fn update(&mut self) {
390 let Position { mut x, mut y } = self.pos; 398 let Position { mut x, mut y } = self.pos;
391 399