From 7e6c1596d4b36b85ad3daaf210b0a7f4e0af56f7 Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Wed, 20 Aug 2014 16:43:12 -0600 Subject: Temporarily instantiating components here. --- src/Mobs/NewMonster.cpp | 4 ++++ src/Mobs/NewMonster.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/Mobs/NewMonster.cpp b/src/Mobs/NewMonster.cpp index cd63fcb6a..3245bd83d 100644 --- a/src/Mobs/NewMonster.cpp +++ b/src/Mobs/NewMonster.cpp @@ -8,6 +8,10 @@ cNewMonster::cNewMonster(const AString & a_ConfigName, eType a_MobType, const AS , m_SoundHurt(a_SoundHurt) , m_SoundDeath(a_SoundDeath) { + m_AI = new cAIComponent(this); + m_Attack = new cAttackComponent(this); + m_Environment = new cEnvironmentComponent(this); + m_Movement = new cMovementComponent(this); } void cNewMonster::SpawnOn(cClientHandle & a_Client) diff --git a/src/Mobs/NewMonster.h b/src/Mobs/NewMonster.h index 9e79d9312..074538762 100644 --- a/src/Mobs/NewMonster.h +++ b/src/Mobs/NewMonster.h @@ -64,4 +64,9 @@ protected: AString m_SoundHurt; AString m_SoundDeath; + + cAIComponent * m_AI; + cAttackComponent * m_Attack; + cEnvironmentComponent * m_Environment; + cMovementComponent * m_Movement; }; -- cgit v1.2.3