aboutsummaryrefslogtreecommitdiff
path: root/src/game/CombatAI.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-04-29 21:22:25 +0200
committerRat <none@none>2010-04-29 21:22:25 +0200
commit757fbfba83f466bd3f757998a705407cfe156868 (patch)
treee8b238532f1d342532b20279bdd71bf70cca69aa /src/game/CombatAI.cpp
parent946ded461927ddb352d2f20041b70ecb7f568cf6 (diff)
*implemented 'empty' VehicleAI
NOTE: VehicleAI::UpdateAI runs even while the vehicle is mounted! --HG-- branch : trunk
Diffstat (limited to 'src/game/CombatAI.cpp')
-rw-r--r--src/game/CombatAI.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/game/CombatAI.cpp b/src/game/CombatAI.cpp
index 5f1b21e0da2..e9babeba414 100644
--- a/src/game/CombatAI.cpp
+++ b/src/game/CombatAI.cpp
@@ -59,6 +59,11 @@ int AOEAI::Permissible(const Creature * /*creature*/)
return PERMIT_BASE_NO;
}
+int VehicleAI::Permissible(const Creature * /*creature*/)
+{
+ return PERMIT_BASE_NO;
+}
+
void CombatAI::InitializeAI()
{
for (uint32 i = 0; i < CREATURE_MAX_SPELLS; ++i)
@@ -281,3 +286,22 @@ void AOEAI::UpdateAI(const uint32 /*diff*/)
if (!me->HasAura(me->m_spells[0]))
me->CastSpell(me, me->m_spells[0],false);
}
+
+//////////////
+//VehicleAI
+//////////////
+
+//NOTE: VehicleAI::UpdateAI runs even while the vehicle is mounted
+void VehicleAI::UpdateAI(const uint32 diff)
+{
+}
+
+void VehicleAI::Reset()
+{
+ m_vehicle->Reset();
+}
+
+void VehicleAI::OnCharmed(bool apply)
+{
+ m_IsVehicleInUse = apply;
+} \ No newline at end of file