aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/ScriptedAI
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-02-10 16:43:01 -0300
committerAriel Silva <ariel-@users.noreply.github.com>2018-03-09 14:41:28 -0300
commit45c5e1b9d63796d168339a44f63418f220cf2403 (patch)
treec5c2ef9917147e38779d1f94e6ffc38386b9b251 /src/server/game/AI/ScriptedAI
parent080d2c6cd439acb2059adc4e24a279de98aa0db6 (diff)
Core/Spells: rework part 5: GameObject casting
Closes #21330 Closes #18885 Ref #18752
Diffstat (limited to 'src/server/game/AI/ScriptedAI')
-rw-r--r--src/server/game/AI/ScriptedAI/ScriptedCreature.h45
1 files changed, 6 insertions, 39 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedCreature.h b/src/server/game/AI/ScriptedAI/ScriptedCreature.h
index 1aeb6a65db7..dd6726b0682 100644
--- a/src/server/game/AI/ScriptedAI/ScriptedCreature.h
+++ b/src/server/game/AI/ScriptedAI/ScriptedCreature.h
@@ -141,36 +141,9 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
void AttackStartNoMove(Unit* target);
- // Called at any Damage from any attacker (before damage apply)
- void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) override { }
-
//Called at World update tick
virtual void UpdateAI(uint32 diff) override;
- //Called at creature death
- void JustDied(Unit* /*killer*/) override { }
-
- //Called at creature killing another unit
- void KilledUnit(Unit* /*victim*/) override { }
-
- // Called when the creature summon successfully other creature
- void JustSummoned(Creature* /*summon*/) override { }
-
- // Called when a summoned creature is despawned
- void SummonedCreatureDespawn(Creature* /*summon*/) override { }
-
- // Called when hit by a spell
- void SpellHit(Unit* /*caster*/, SpellInfo const* /*spell*/) override { }
-
- // Called when spell hits a target
- void SpellHitTarget(Unit* /*target*/, SpellInfo const* /*spell*/) override { }
-
- //Called at waypoint reached or PointMovement end
- void MovementInform(uint32 /*type*/, uint32 /*id*/) override { }
-
- // Called when AI is temporarily replaced or put back when possess is applied or removed
- void OnPossess(bool /*apply*/) { }
-
// *************
// Variables
// *************
@@ -182,12 +155,6 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
//Pure virtual functions
// *************
- //Called at creature reset either by death or evade
- void Reset() override { }
-
- //Called at creature aggro either by MoveInLOS or Attack Start
- void JustEngagedWith(Unit* /*who*/) override { }
-
// Called before JustEngagedWith even before the creature is in combat.
void AttackStart(Unit* /*target*/) override;
@@ -275,8 +242,8 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
// return true for 25 man or 25 man heroic mode
bool Is25ManRaid() const { return _difficulty & RAID_DIFFICULTY_MASK_25MAN; }
- template<class T> inline
- const T& DUNGEON_MODE(const T& normal5, const T& heroic10) const
+ template <class T>
+ inline T const& DUNGEON_MODE(T const& normal5, T const& heroic10) const
{
switch (_difficulty)
{
@@ -291,8 +258,8 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
return heroic10;
}
- template<class T> inline
- const T& RAID_MODE(const T& normal10, const T& normal25) const
+ template <class T>
+ inline T const& RAID_MODE(T const& normal10, T const& normal25) const
{
switch (_difficulty)
{
@@ -307,8 +274,8 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
return normal25;
}
- template<class T> inline
- const T& RAID_MODE(const T& normal10, const T& normal25, const T& heroic10, const T& heroic25) const
+ template <class T>
+ inline T const& RAID_MODE(T const& normal10, T const& normal25, T const& heroic10, T const& heroic25) const
{
switch (_difficulty)
{