summaryrefslogtreecommitdiff
path: root/src/game-server/attackzone.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-09-27 03:55:19 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-09-27 03:55:19 +0000
commit29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358 (patch)
tree41ca7bb0f8b557e096a2b783f6c94ea4d3e5006a /src/game-server/attackzone.hpp
parentc27d73abc52bdc463a029a5f6a95e1db5df5abf6 (diff)
downloadmanaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.tar.gz
manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.tar.bz2
manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.tar.xz
manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.zip
Implemented getting the attack zone of weapons from the item database and implemented single target attacks useful for projectile weapons like bows.
Diffstat (limited to 'src/game-server/attackzone.hpp')
-rw-r--r--src/game-server/attackzone.hpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/game-server/attackzone.hpp b/src/game-server/attackzone.hpp
new file mode 100644
index 00000000..2bdf3b14
--- /dev/null
+++ b/src/game-server/attackzone.hpp
@@ -0,0 +1,46 @@
+/*
+ * The Mana World Server
+ * Copyright 2008 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * The Mana World is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * The Mana World is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with The Mana World; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * $Id$
+ */
+
+#ifndef _TMWSERV_ATTACKZONE
+#define _TMWSERV_ATTACKZONE
+
+
+/**
+ * Enumeration of different types of attack damage zones
+ */
+enum AttackZoneShape
+{
+ ATTZONESHAPE_CONE
+ //yes, there is currently only one but it is planned to add different kinds of attack zones
+};
+
+struct AttackZone
+{
+ AttackZoneShape shape;
+ bool multiTarget;
+ int range;
+ int angle;
+};
+
+
+#endif // _TMWSERV_ATTACKZONE