summaryrefslogtreecommitdiff
path: root/src/game-server/collisiondetection.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2008-11-20 16:52:48 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2008-11-20 16:52:48 +0100
commitd9189cba9db278b20c07bcb31ae481ad9804aaa5 (patch)
treeece36de0b3a6c833f5e79dc6d4c8a22278f757d1 /src/game-server/collisiondetection.hpp
parent8481413ea17177945d3d280b1518eb6f1f25cd5d (diff)
downloadmanaserv-d9189cba9db278b20c07bcb31ae481ad9804aaa5.tar.gz
manaserv-d9189cba9db278b20c07bcb31ae481ad9804aaa5.tar.bz2
manaserv-d9189cba9db278b20c07bcb31ae481ad9804aaa5.tar.xz
manaserv-d9189cba9db278b20c07bcb31ae481ad9804aaa5.zip
Added rectangular attack zones which are faster and simpler than cone-shaped ones and sufficient for most situations.
Diffstat (limited to 'src/game-server/collisiondetection.hpp')
-rw-r--r--src/game-server/collisiondetection.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game-server/collisiondetection.hpp b/src/game-server/collisiondetection.hpp
index eb30a4c4..c60d9d64 100644
--- a/src/game-server/collisiondetection.hpp
+++ b/src/game-server/collisiondetection.hpp
@@ -53,6 +53,11 @@ namespace Collision
CircleWithCircle(const Point &center1, int radius1,
const Point &center2, int radius2);
+ /** checks if two rectangles intersect */
+ bool
+ rectWithRect(const Point &pos1, const Point &size1,
+ const Point &pos2, const Point &size2);
+
}
#endif