From 4b57962ee4c10e48956c2888199605bebdb17b8f Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 3 Apr 2013 14:32:57 +0200 Subject: Moved the Monster class to a Component Things done: - Allowed to create new Attributes outside of the protected scope of Being - Moved Monster to MonsterComponent - Some minor cleanup in the Attribute setting code of monsters --- src/game-server/monstercombatcomponent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game-server/monstercombatcomponent.h') diff --git a/src/game-server/monstercombatcomponent.h b/src/game-server/monstercombatcomponent.h index 766c7734..b65c48f4 100644 --- a/src/game-server/monstercombatcomponent.h +++ b/src/game-server/monstercombatcomponent.h @@ -26,12 +26,12 @@ #include "game-server/attack.h" #include "game-server/being.h" -class Monster; +class MonsterClass; class MonsterCombatComponent: public CombatComponent { public: - MonsterCombatComponent(Monster &monster); + MonsterCombatComponent(Being &monster, MonsterClass *specy); void processAttack(Being *source, Attack &attack); int damage(Being &target, Being *source, const Damage &damage); -- cgit v1.2.3-60-g2f50