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 * UnitAI::AISpellInfo;
AISpellInfoType * GetAISpellInfo(uint32 i) { return &CreatureAI::AISpellInfo[i]; } 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) void CreatureAI::DoZoneInCombat(Creature* creature)
{ {
if (!creature) if (!creature)
+2
View File
@@ -21,6 +21,7 @@
#include "UnitAI.h" #include "UnitAI.h"
#include "Common.h" #include "Common.h"
#include "CreatureTextMgr.h"
class WorldObject; class WorldObject;
class Unit; 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); Creature *DoSummonFlyer(uint32 uiEntry, WorldObject *obj, float fZ, float fRadius = 5.0f, uint32 uiDespawntime = 30000, TempSummonType uiType = TEMPSUMMON_CORPSE_TIMED_DESPAWN);
public: public:
void Talk(uint8 id, uint64 WhisperGuid = 0);
explicit CreatureAI(Creature *c) : UnitAI((Unit*)c), me(c), m_MoveInLineOfSight_locked(false) {} explicit CreatureAI(Creature *c) : UnitAI((Unit*)c), me(c), m_MoveInLineOfSight_locked(false) {}
virtual ~CreatureAI() {} virtual ~CreatureAI() {}
+1
View File
@@ -134,6 +134,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/server/game/Skills ${CMAKE_SOURCE_DIR}/src/server/game/Skills
${CMAKE_SOURCE_DIR}/src/server/game/Spells ${CMAKE_SOURCE_DIR}/src/server/game/Spells
${CMAKE_SOURCE_DIR}/src/server/game/Spells/Auras ${CMAKE_SOURCE_DIR}/src/server/game/Spells/Auras
${CMAKE_SOURCE_DIR}/src/server/game/Texts
${CMAKE_SOURCE_DIR}/src/server/game/Tickets ${CMAKE_SOURCE_DIR}/src/server/game/Tickets
${CMAKE_SOURCE_DIR}/src/server/game/Tools ${CMAKE_SOURCE_DIR}/src/server/game/Tools
${CMAKE_SOURCE_DIR}/src/server/game/Weather ${CMAKE_SOURCE_DIR}/src/server/game/Weather