From b9a6da7ccabb972074f09d686dc78f9643accfac Mon Sep 17 00:00:00 2001 From: Raymond Hogenson Date: Wed, 22 Aug 2018 16:54:43 -0400 Subject: Make taking injuries more flexible I've just moved it into the Enemy trait, because I was planning on having Bill move around when he got hit, but it didn't look good. --- src/state.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 820c1e4..bf62f51 100644 --- a/src/state.rs +++ b/src/state.rs @@ -76,6 +76,7 @@ pub trait Enemy: Drawable { fn act(&mut self, count: u64) -> Vec; fn health(&self) -> f64; fn set_health(&mut self, health: f64); + fn injure(&mut self, damage: f64); } pub struct State { -- cgit v1.3.1