diff options
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/state.rs b/src/state.rs index be89d3d..2a82294 100644 --- a/src/state.rs +++ b/src/state.rs @@ -76,7 +76,6 @@ pub trait Enemy<T>: Drawable { fn new() -> Self; 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); } @@ -110,10 +109,6 @@ pub trait Positioned { fn x(&self) -> i32; fn y(&self) -> i32; fn radius() -> i32; - fn contains(&self, x: i32, y: i32) -> bool { - let d = dist(self.x(), self.y(), x, y); - d <= Self::radius() as f64 - } fn overlaps<T: Positioned>(&self, other: &T) -> bool { let sx = self.x(); let ox = other.x(); |
