summaryrefslogtreecommitdiff
path: root/src/mapcomposite.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-12-29 12:22:02 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-12-29 12:22:02 +0000
commit3d404e743105bb9168c89e3451cf35d7d59120b1 (patch)
tree39389b921d054d508a5dee7d0ed7f4f3c5e7d29e /src/mapcomposite.h
parent4bfa5b213257416f997d01b087c9e8bbb91cb3b9 (diff)
downloadmanaserv-3d404e743105bb9168c89e3451cf35d7d59120b1.tar.gz
manaserv-3d404e743105bb9168c89e3451cf35d7d59120b1.tar.bz2
manaserv-3d404e743105bb9168c89e3451cf35d7d59120b1.tar.xz
manaserv-3d404e743105bb9168c89e3451cf35d7d59120b1.zip
Implemented basic attack hit detection and damage notification.
Diffstat (limited to 'src/mapcomposite.h')
-rw-r--r--src/mapcomposite.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mapcomposite.h b/src/mapcomposite.h
index 94931029..7384aa37 100644
--- a/src/mapcomposite.h
+++ b/src/mapcomposite.h
@@ -25,7 +25,9 @@
#define _TMW_SERVER_MAPCOMPOSITE_
#include "object.h"
-#include "player.h"
+#include "player.h"
+
+#include <list>
class Map;
class MapComposite;
@@ -178,7 +180,12 @@ class MapComposite {
/**
* Gets an iterator on the objects around a given object.
*/
- ZoneIterator getAroundObjectIterator(Object *) const;
+ ZoneIterator getAroundObjectIterator(Object *) const;
+
+ /**
+ * Gets all objects on a tile
+ */
+ std::list<ObjectPtr> MapComposite::getObjectsOnTile(const Point &) const;
/**
* Gets an iterator on the objects around the old and new positions of