summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs1
1 files changed, 1 insertions, 0 deletions
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<T>: Drawable {
fn act(&mut self, count: u64) -> Vec<T>;
fn health(&self) -> f64;
fn set_health(&mut self, health: f64);
+ fn injure(&mut self, damage: f64);
}
pub struct State<T, U> {