Changed hitboxed from an 'is a hitbox' to a 'has a hitbox'
[bug-basher.git] / src / entities / home.rs
index 5666a75..5e2ea12 100644 (file)
@@ -35,13 +35,10 @@ impl Home {
             SpriteId::Sleepypug2
         } ;
     }
-}
 
-impl CircleHitbox for Home {
-    fn pos(&self) -> Vec2d {
-        self.pos
-    }
-    fn radius(&self) -> f64 {
-        100.
+    pub fn hitbox(&self) -> Hitbox {
+        Hitbox::Circle(CircleHitbox{
+          pos: self.pos, radius: 100.  
+        })
     }
 }