|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Spell.h>
Public Member Functions | |
| Corpse * | GetCorpseTarget () const |
| uint64 | GetCorpseTargetGUID () const |
| float | GetDist2d () const |
| SpellDestination const * | GetDst () const |
| WorldLocation const * | GetDstPos () const |
| float | GetElevation () const |
| GameObject * | GetGOTarget () const |
| uint64 | GetGOTargetGUID () const |
| Item * | GetItemTarget () const |
| uint32 | GetItemTargetEntry () const |
| uint64 | GetItemTargetGUID () const |
| WorldObject * | GetObjectTarget () const |
| uint64 | GetObjectTargetGUID () const |
| float | GetSpeed () const |
| float | GetSpeedXY () const |
| float | GetSpeedZ () const |
| SpellDestination const * | GetSrc () const |
| Position const * | GetSrcPos () const |
| uint32 | GetTargetMask () const |
| std::string const & | GetTargetString () |
| Unit * | GetUnitTarget () const |
| uint64 | GetUnitTargetGUID () const |
| bool | HasDst () const |
| bool | HasSrc () const |
| bool | HasTraj () const |
| void | Initialize (uint32 flags, uint64 target, uint64 itemTarget, uint64 dest, WorldLocation destPos, uint64 src, WorldLocation srcPos) |
| void | ModDst (Position const &pos) |
| void | ModSrc (Position const &pos) |
| void | OutDebug () const |
| void | Read (ByteBuffer &data, Unit *caster) |
| void | RemoveDst () |
| void | RemoveObjectTarget () |
| void | RemoveSrc () |
| void | SetDst (float x, float y, float z, float orientation, uint32 mapId=MAPID_INVALID) |
| void | SetDst (Position const &pos) |
| void | SetDst (SpellCastTargets const &spellTargets) |
| void | SetDst (WorldObject const &wObj) |
| void | SetElevation (float elevation) |
| void | SetGOTarget (GameObject *target) |
| void | SetItemTarget (Item *item) |
| void | SetSpeed (float speed) |
| void | SetSrc (float x, float y, float z) |
| void | SetSrc (Position const &pos) |
| void | SetSrc (WorldObject const &wObj) |
| void | SetTargetFlag (SpellCastTargetFlags flag) |
| void | SetTargetMask (uint32 newMask) |
| void | SetTradeItemTarget (Player *caster) |
| void | SetUnitTarget (Unit *target) |
| SpellCastTargets () | |
| SpellCastTargets (Unit *caster, uint32 targetMask, uint64 targetGuid, uint64 itemTargetGuid, uint64 srcTransportGuid, uint64 destTransportGuid, Position srcPos, Position destPos, float elevation, float missileSpeed, std::string targetString) | |
| void | Update (Unit *caster) |
| void | UpdateTradeSlotItem () |
| void | Write (ByteBuffer &data) |
| ~SpellCastTargets () | |
Private Attributes | |
| SpellDestination | m_dst |
| float | m_elevation |
| Item * | m_itemTarget |
| uint32 | m_itemTargetEntry |
| uint64 | m_itemTargetGUID |
| WorldObject * | m_objectTarget |
| uint64 | m_objectTargetGUID |
| float | m_speed |
| SpellDestination | m_src |
| std::string | m_strTarget |
| uint32 | m_targetMask |
| SpellCastTargets::SpellCastTargets | ( | ) |
Definition at line 81 of file Spell.cpp.
References m_elevation, m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_objectTarget, m_objectTargetGUID, m_speed, m_strTarget, and m_targetMask.
Referenced by SetDst().
| SpellCastTargets::SpellCastTargets | ( | Unit * | caster, |
| uint32 | targetMask, | ||
| uint64 | targetGuid, | ||
| uint64 | itemTargetGuid, | ||
| uint64 | srcTransportGuid, | ||
| uint64 | destTransportGuid, | ||
| Position | srcPos, | ||
| Position | destPos, | ||
| float | elevation, | ||
| float | missileSpeed, | ||
| std::string | targetString ) |
Definition at line 93 of file Spell.cpp.
References m_dst, m_elevation, m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_objectTarget, m_objectTargetGUID, m_speed, m_src, m_strTarget, m_targetMask, and Update().
| Corpse * SpellCastTargets::GetCorpseTarget | ( | ) | const |
Definition at line 279 of file Spell.cpp.
References m_objectTarget.
| uint64 SpellCastTargets::GetCorpseTargetGUID | ( | ) | const |
Definition at line 268 of file Spell.cpp.
References GUID_HIPART(), HIGHGUID_CORPSE, and m_objectTargetGUID.
|
inline |
| SpellDestination const * SpellCastTargets::GetDst | ( | ) | const |
| WorldLocation const * SpellCastTargets::GetDstPos | ( | ) | const |
Definition at line 383 of file Spell.cpp.
References m_dst.
Referenced by LuaSpell::GetTargetDest(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), WorldSession::HandleUpdateMissileTrajectory(), and WorldSession::HandleUpdateProjectilePosition().
|
inline |
Definition at line 220 of file Spell.h.
References m_elevation.
| GameObject * SpellCastTargets::GetGOTarget | ( | ) | const |
Definition at line 251 of file Spell.cpp.
References m_objectTarget.
Referenced by HookMgr::OnUse().
| uint64 SpellCastTargets::GetGOTargetGUID | ( | ) | const |
Definition at line 238 of file Spell.cpp.
References GUID_HIPART(), HIGHGUID_GAMEOBJECT, HIGHGUID_MO_TRANSPORT, HIGHGUID_TRANSPORT, and m_objectTargetGUID.
|
inline |
|
inline |
Definition at line 194 of file Spell.h.
References m_itemTargetEntry.
|
inline |
Definition at line 192 of file Spell.h.
References m_itemTargetGUID.
| WorldObject * SpellCastTargets::GetObjectTarget | ( | ) | const |
Definition at line 286 of file Spell.cpp.
References m_objectTarget.
Referenced by Spell::InitExplicitTargets().
| uint64 SpellCastTargets::GetObjectTargetGUID | ( | ) | const |
Definition at line 291 of file Spell.cpp.
References m_objectTargetGUID.
|
inline |
|
inline |
Definition at line 226 of file Spell.h.
References m_elevation, and m_speed.
Referenced by spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript().
|
inline |
Definition at line 227 of file Spell.h.
References m_elevation, and m_speed.
Referenced by spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript().
| SpellDestination const * SpellCastTargets::GetSrc | ( | ) | const |
| Position const * SpellCastTargets::GetSrcPos | ( | ) | const |
Definition at line 337 of file Spell.cpp.
References m_src.
Referenced by WorldSession::HandleUpdateMissileTrajectory().
|
inline |
Definition at line 172 of file Spell.h.
References m_targetMask.
|
inline |
Definition at line 232 of file Spell.h.
References m_strTarget.
| Unit * SpellCastTargets::GetUnitTarget | ( | ) | const |
Definition at line 221 of file Spell.cpp.
References m_objectTarget.
Referenced by WorldSession::HandleCastSpellOpcode(), WorldSession::HandlePetActionHelper(), and HookMgr::OnUse().
| uint64 SpellCastTargets::GetUnitTargetGUID | ( | ) | const |
Definition at line 207 of file Spell.cpp.
References GUID_HIPART(), HIGHGUID_PET, HIGHGUID_PLAYER, HIGHGUID_UNIT, HIGHGUID_VEHICLE, and m_objectTargetGUID.
|
inline |
Definition at line 217 of file Spell.h.
References GetTargetMask(), and TARGET_FLAG_DEST_LOCATION.
Referenced by LuaSpell::GetTargetDest(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::SelectImplicitChannelTargets(), and Update().
|
inline |
Definition at line 216 of file Spell.h.
References GetTargetMask(), and TARGET_FLAG_SOURCE_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), Spell::InitExplicitTargets(), and Update().
|
inline |
Definition at line 218 of file Spell.h.
References m_speed.
Referenced by spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript().
|
inline |
Definition at line 153 of file Spell.h.
References m_dst, m_itemTargetGUID, m_objectTargetGUID, m_src, and m_targetMask.
Referenced by WorldSession::HandlePetCastSpellOpcode().
| void SpellCastTargets::ModDst | ( | Position const & | pos | ) |
Definition at line 412 of file Spell.cpp.
References ASSERT, m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), and WorldSession::HandleUpdateProjectilePosition().
| void SpellCastTargets::ModSrc | ( | Position const & | pos | ) |
Definition at line 360 of file Spell.cpp.
References ASSERT, m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory().
| void SpellCastTargets::OutDebug | ( | ) | const |
Definition at line 469 of file Spell.cpp.
References m_dst, m_elevation, m_itemTargetGUID, m_objectTargetGUID, m_speed, m_src, m_strTarget, m_targetMask, SF_LOG_INFO, TARGET_FLAG_CORPSE_MASK, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT_MASK, TARGET_FLAG_ITEM, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT_MASK, and UI64FMTD.
| void SpellCastTargets::Read | ( | ByteBuffer & | data, |
| Unit * | caster ) |
Definition at line 117 of file Spell.cpp.
References Unit::GetTransGUID(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), m_dst, m_itemTargetGUID, m_objectTargetGUID, m_src, m_strTarget, m_targetMask, ByteBuffer::readPackGUID(), TARGET_FLAG_CORPSE_ALLY, TARGET_FLAG_CORPSE_ENEMY, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT, TARGET_FLAG_ITEM, TARGET_FLAG_NONE, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT, TARGET_FLAG_UNIT_MINIPET, and Update().
| void SpellCastTargets::RemoveDst | ( | ) |
Definition at line 425 of file Spell.cpp.
References m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::RemoveObjectTarget | ( | ) |
Definition at line 296 of file Spell.cpp.
References m_objectTarget, m_objectTargetGUID, m_targetMask, TARGET_FLAG_CORPSE_MASK, TARGET_FLAG_GAMEOBJECT_MASK, and TARGET_FLAG_UNIT_MASK.
| void SpellCastTargets::RemoveSrc | ( | ) |
Definition at line 373 of file Spell.cpp.
References m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
| void SpellCastTargets::SetDst | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| uint32 | mapId = MAPID_INVALID ) |
Definition at line 388 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by Unit::CastSpell(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), and spell_pri_leap_of_faith::spell_pri_leap_of_faith_SpellScript::HandleEffectDummy().
| void SpellCastTargets::SetDst | ( | Position const & | pos | ) |
Definition at line 394 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | SpellCastTargets const & | spellTargets | ) |
Definition at line 406 of file Spell.cpp.
References m_dst, m_targetMask, SpellCastTargets(), and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | WorldObject const & | wObj | ) |
Definition at line 400 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
|
inline |
Definition at line 221 of file Spell.h.
References m_elevation.
Referenced by WorldSession::HandleClientCastFlags(), WorldSession::HandlePetCastSpellOpcode(), and WorldSession::HandleUpdateMissileTrajectory().
| void SpellCastTargets::SetGOTarget | ( | GameObject * | target | ) |
Definition at line 258 of file Spell.cpp.
References Object::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_GAMEOBJECT.
Referenced by LuaUnit::CastSpell(), and Unit::CastSpell().
| void SpellCastTargets::SetItemTarget | ( | Item * | item | ) |
Definition at line 303 of file Spell.cpp.
References Object::GetEntry(), Object::GetGUID(), m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_targetMask, and TARGET_FLAG_ITEM.
Referenced by LuaUnit::CastSpell().
|
inline |
Definition at line 223 of file Spell.h.
References m_speed.
Referenced by WorldSession::HandleClientCastFlags(), WorldSession::HandlePetCastSpellOpcode(), and WorldSession::HandleUpdateMissileTrajectory().
| void SpellCastTargets::SetSrc | ( | float | x, |
| float | y, | ||
| float | z ) |
Definition at line 342 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
| void SpellCastTargets::SetSrc | ( | Position const & | pos | ) |
Definition at line 348 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
| void SpellCastTargets::SetSrc | ( | WorldObject const & | wObj | ) |
Definition at line 354 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
|
inline |
Definition at line 175 of file Spell.h.
References m_targetMask.
|
inline |
Definition at line 173 of file Spell.h.
References m_targetMask.
| void SpellCastTargets::SetTradeItemTarget | ( | Player * | caster | ) |
Definition at line 314 of file Spell.cpp.
References m_itemTargetEntry, m_itemTargetGUID, m_targetMask, TARGET_FLAG_TRADE_ITEM, TRADE_SLOT_NONTRADED, and Update().
Referenced by WorldSession::HandleAcceptTradeOpcode().
| void SpellCastTargets::SetUnitTarget | ( | Unit * | target | ) |
Definition at line 228 of file Spell.cpp.
References Object::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_UNIT.
Referenced by Unit::CastCustomSpell(), LuaUnit::CastSpell(), Unit::CastSpell(), Spell::EffectDummy(), Spell::EffectForceCast(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), spell_pri_leap_of_faith::spell_pri_leap_of_faith_SpellScript::HandleEffectDummy(), and PetAI::UpdateAI().
| void SpellCastTargets::Update | ( | Unit * | caster | ) |
Definition at line 430 of file Spell.cpp.
References Object::GetGUID(), Player::GetItemByGuid(), Player::GetTradeData(), Object::GetTypeId(), ObjectAccessor::GetWorldObject(), HasDst(), HasSrc(), m_dst, m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_objectTarget, m_objectTargetGUID, m_src, m_targetMask, TARGET_FLAG_ITEM, TARGET_FLAG_TRADE_ITEM, Object::ToPlayer(), TRADE_SLOT_NONTRADED, and TYPEID_PLAYER.
Referenced by WorldSession::HandlePetCastSpellOpcode(), Read(), SetTradeItemTarget(), and SpellCastTargets().
| void SpellCastTargets::UpdateTradeSlotItem | ( | ) |
Definition at line 323 of file Spell.cpp.
References m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_targetMask, and TARGET_FLAG_TRADE_ITEM.
| void SpellCastTargets::Write | ( | ByteBuffer & | data | ) |
Definition at line 170 of file Spell.cpp.
References ByteBuffer::append(), ByteBuffer::appendPackGUID(), m_dst, m_itemTarget, m_objectTargetGUID, m_src, m_strTarget, m_targetMask, TARGET_FLAG_CORPSE_ALLY, TARGET_FLAG_CORPSE_ENEMY, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT, TARGET_FLAG_ITEM, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT, and TARGET_FLAG_UNIT_MINIPET.
|
private |
Definition at line 247 of file Spell.h.
Referenced by GetDist2d(), GetDst(), GetDstPos(), Initialize(), ModDst(), OutDebug(), Read(), SetDst(), SetDst(), SetDst(), SetDst(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 249 of file Spell.h.
Referenced by GetElevation(), GetSpeedXY(), GetSpeedZ(), OutDebug(), SetElevation(), SpellCastTargets(), and SpellCastTargets().
|
private |
Definition at line 239 of file Spell.h.
Referenced by GetItemTarget(), SetItemTarget(), SpellCastTargets(), SpellCastTargets(), Update(), UpdateTradeSlotItem(), and Write().
|
private |
Definition at line 244 of file Spell.h.
Referenced by GetItemTargetEntry(), SetItemTarget(), SetTradeItemTarget(), SpellCastTargets(), SpellCastTargets(), Update(), and UpdateTradeSlotItem().
|
private |
Definition at line 243 of file Spell.h.
Referenced by GetItemTargetGUID(), Initialize(), OutDebug(), Read(), SetItemTarget(), SetTradeItemTarget(), SpellCastTargets(), SpellCastTargets(), Update(), and UpdateTradeSlotItem().
|
private |
Definition at line 238 of file Spell.h.
Referenced by GetCorpseTarget(), GetGOTarget(), GetObjectTarget(), GetUnitTarget(), RemoveObjectTarget(), SetGOTarget(), SetUnitTarget(), SpellCastTargets(), SpellCastTargets(), and Update().
|
private |
Definition at line 242 of file Spell.h.
Referenced by GetCorpseTargetGUID(), GetGOTargetGUID(), GetObjectTargetGUID(), GetUnitTargetGUID(), Initialize(), OutDebug(), Read(), RemoveObjectTarget(), SetGOTarget(), SetUnitTarget(), SpellCastTargets(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 249 of file Spell.h.
Referenced by GetSpeed(), GetSpeedXY(), GetSpeedZ(), HasTraj(), OutDebug(), SetSpeed(), SpellCastTargets(), and SpellCastTargets().
|
private |
Definition at line 246 of file Spell.h.
Referenced by GetDist2d(), GetSrc(), GetSrcPos(), Initialize(), ModSrc(), OutDebug(), Read(), SetSrc(), SetSrc(), SetSrc(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 250 of file Spell.h.
Referenced by GetTargetString(), OutDebug(), Read(), SpellCastTargets(), SpellCastTargets(), and Write().
|
private |
Definition at line 235 of file Spell.h.
Referenced by GetTargetMask(), Initialize(), ModDst(), ModSrc(), OutDebug(), Read(), RemoveDst(), RemoveObjectTarget(), RemoveSrc(), SetDst(), SetDst(), SetDst(), SetDst(), SetGOTarget(), SetItemTarget(), SetSrc(), SetSrc(), SetSrc(), SetTargetFlag(), SetTargetMask(), SetTradeItemTarget(), SetUnitTarget(), SpellCastTargets(), SpellCastTargets(), Update(), UpdateTradeSlotItem(), and Write().