Core/AI: implemented Talk() for the 'new' textMgr

--HG--
branch : trunk
This commit is contained in:
Rat
2010-11-16 19:21:48 +01:00
parent ee6f03eead
commit f5edd6ef2a
3 changed files with 9 additions and 0 deletions
+6
View File
@@ -34,6 +34,12 @@ void CreatureAI::OnCharmed(bool /*apply*/)
AISpellInfoType * UnitAI::AISpellInfo;
AISpellInfoType * GetAISpellInfo(uint32 i) { return &CreatureAI::AISpellInfo[i]; }
void CreatureAI::Talk(uint8 id, uint64 WhisperGuid)
{
sCreatureTextMgr.SendChat(me, id, WhisperGuid);
}
void CreatureAI::DoZoneInCombat(Creature* creature)
{
if (!creature)
+2
View File
@@ -21,6 +21,7 @@
#include "UnitAI.h"
#include "Common.h"
#include "CreatureTextMgr.h"
class WorldObject;
class Unit;
@@ -78,6 +79,7 @@ class CreatureAI : public UnitAI
Creature *DoSummonFlyer(uint32 uiEntry, WorldObject *obj, float fZ, float fRadius = 5.0f, uint32 uiDespawntime = 30000, TempSummonType uiType = TEMPSUMMON_CORPSE_TIMED_DESPAWN);
public:
void Talk(uint8 id, uint64 WhisperGuid = 0);
explicit CreatureAI(Creature *c) : UnitAI((Unit*)c), me(c), m_MoveInLineOfSight_locked(false) {}
virtual ~CreatureAI() {}