From 29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sat, 27 Sep 2008 03:55:19 +0000 Subject: Implemented getting the attack zone of weapons from the item database and implemented single target attacks useful for projectile weapons like bows. --- src/game-server/attackzone.hpp | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/game-server/attackzone.hpp (limited to 'src/game-server/attackzone.hpp') 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 -- cgit v1.2.3-70-g09d2