From b6e617dff1e712aac10888a2781484eeb2e99e89 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sat, 12 Apr 2025 21:46:21 -0700 Subject: Bump deps --- src/gates.rs | 3 --- src/state.rs | 5 ----- 2 files changed, 8 deletions(-) (limited to 'src') diff --git a/src/gates.rs b/src/gates.rs index 7f6bd9f..2451daa 100644 --- a/src/gates.rs +++ b/src/gates.rs @@ -194,9 +194,6 @@ impl state::Enemy for Gates { fn health(&self) -> f64 { self.health } - fn set_health(&mut self, health: f64) { - self.health = health; - } fn injure(&mut self, damage: f64) { self.health -= damage; } 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: Drawable { fn new() -> Self; fn act(&mut self, count: u64) -> Vec; 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(&self, other: &T) -> bool { let sx = self.x(); let ox = other.x(); -- cgit v1.3.1