diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-03 14:32:57 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-03 21:52:03 +0200 |
commit | 4b57962ee4c10e48956c2888199605bebdb17b8f (patch) | |
tree | 261b141a1ad61a64e93a7b99a8c68debfb48d055 /src/game-server/monstercombatcomponent.h | |
parent | 4a8080dcf73dab2b6e62b8500fec3bb996bcbf17 (diff) | |
download | manaserv-4b57962ee4c10e48956c2888199605bebdb17b8f.tar.gz manaserv-4b57962ee4c10e48956c2888199605bebdb17b8f.tar.xz manaserv-4b57962ee4c10e48956c2888199605bebdb17b8f.zip |
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
Diffstat (limited to 'src/game-server/monstercombatcomponent.h')
-rw-r--r-- | src/game-server/monstercombatcomponent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/monstercombatcomponent.h b/src/game-server/monstercombatcomponent.h index 766c773..b65c48f 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); |