about summary refs log tree commit diff homepage
path: root/brutalmaze/weapons.py
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2017-11-20 22:29:56 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2017-11-20 22:29:56 +0700
commit2c5cba167ecce7865be109a67ffd9093feb524de (patch)
tree3a4098019b1bab6abe5bd6adeb513a7efd9ef2ef /brutalmaze/weapons.py
parent242cc155843d467812a041dd4f6e9d90f6e7327c (diff)
downloadbrutalmaze-2c5cba167ecce7865be109a67ffd9093feb524de.tar.gz
Clean up for version 0.2
Diffstat (limited to 'brutalmaze/weapons.py')
-rw-r--r--brutalmaze/weapons.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/brutalmaze/weapons.py b/brutalmaze/weapons.py
index 1112c2b..8f1ee72 100644
--- a/brutalmaze/weapons.py
+++ b/brutalmaze/weapons.py
@@ -59,8 +59,6 @@ class Bullet:
         self.x += x
         self.y += y
 
-    def length(self, x, y):
-        """Return the length of the line segment joining the center of
-        the bullet and the point (x, y).
-        """
+    def get_distance(self, x, y):
+        """Return the from the center of the bullet to the point (x, y)."""
         return ((self.x-x)**2 + (self.y-y)**2)**0.5