|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Unit.h>
Private Attributes | |
| bool | _barInit |
| CharmSpellInfo | _charmspells [4] |
| CommandStates | _CommandState |
| bool | _isAtStay |
| bool | _isCommandAttack |
| bool | _isCommandFollow |
| bool | _isFollowing |
| bool | _isReturning |
| ReactStates | _oldReactState |
| uint32 | _petnumber |
| float | _stayX |
| float | _stayY |
| float | _stayZ |
| Unit * | _unit |
| GlobalCooldownMgr | m_GlobalCooldownMgr |
| UnitActionBarEntry | PetActionBar [MAX_UNIT_ACTION_BAR_INDEX] |
|
explicit |
Definition at line 5536 of file Unit.cpp.
References _barInit, _charmspells, _CommandState, _isAtStay, _isCommandAttack, _isCommandFollow, _isFollowing, _isReturning, _oldReactState, _petnumber, _stayX, _stayY, _stayZ, _unit, ACT_DISABLED, COMMAND_FOLLOW, MAX_SPELL_CHARM, REACT_PASSIVE, and TYPEID_UNIT.
| bool CharmInfo::AddSpellToActionBar | ( | SpellInfo const * | spellInfo, |
| ActiveStates | newstate = ACT_DECIDE, | ||
| uint8 | preferredSlot = 0 ) |
Definition at line 5676 of file Unit.cpp.
References ACT_DECIDE, ACT_DISABLED, ACT_PASSIVE, ASSERT, SpellInfo::GetFirstRankSpell(), SpellInfo::Id, SpellInfo::IsAutocastable(), MAX_UNIT_ACTION_BAR_INDEX, PetActionBar, SetActionBar(), and sSpellMgr.
Referenced by InitCharmCreateSpells(), and InitPossessCreateSpells().
| void CharmInfo::BuildActionBar | ( | WorldPacket * | data | ) | const |
Definition at line 5778 of file Unit.cpp.
References MAX_UNIT_ACTION_BAR_INDEX, and PetActionBar.
Referenced by Player::CharmSpellInitialize(), Player::PetSpellInitialize(), and Player::PossessSpellInitialize().
|
inline |
Definition at line 1275 of file Unit.h.
References PetActionBar.
|
inline |
Definition at line 1282 of file Unit.h.
References _charmspells.
Referenced by Player::CharmSpellInitialize().
|
inline |
Definition at line 1251 of file Unit.h.
References _CommandState.
Referenced by Player::CharmSpellInitialize().
|
inline |
Definition at line 1287 of file Unit.h.
References m_GlobalCooldownMgr.
|
inline |
Definition at line 1241 of file Unit.h.
References _petnumber.
Referenced by WorldSession::HandlePetRename(), Pet::resetTalentsForAllPetsOf(), WorldSession::SendStablePetCallback(), and Player::UnsummonPetTemporaryIfAny().
| void CharmInfo::GetStayPosition | ( | float & | x, |
| float & | y, | ||
| float & | z ) const |
|
inline |
Definition at line 1255 of file Unit.h.
References _CommandState.
Referenced by AuraEffect::HandleModPossessPet().
| void CharmInfo::InitCharmCreateSpells | ( | ) |
Definition at line 5626 of file Unit.cpp.
References _charmspells, _unit, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, AddSpellToActionBar(), SpellInfo::Attributes, InitEmptyActionBar(), InitPetActionBar(), SpellInfo::IsAutocastable(), SpellInfo::IsPassive(), MAX_SPELL_CHARM, SpellInfo::NeedsExplicitUnitTarget(), SPELL_ATTR0_CASTABLE_WHILE_DEAD, sSpellMgr, ToggleCreatureAutocast(), and TYPEID_PLAYER.
Referenced by Unit::SetCharmedBy().
| void CharmInfo::InitEmptyActionBar | ( | bool | withAttack = true | ) |
Definition at line 5586 of file Unit.cpp.
References ACT_COMMAND, ACT_PASSIVE, ACTION_BAR_INDEX_END, ACTION_BAR_INDEX_START, COMMAND_ATTACK, and SetActionBar().
Referenced by InitCharmCreateSpells(), and InitPossessCreateSpells().
| void CharmInfo::InitPetActionBar | ( | ) |
Definition at line 5561 of file Unit.cpp.
References ACT_COMMAND, ACT_PASSIVE, ACT_REACTION, ACTION_BAR_INDEX_END, ACTION_BAR_INDEX_PET_SPELL_END, ACTION_BAR_INDEX_PET_SPELL_START, ACTION_BAR_INDEX_START, COMMAND_ATTACK, COMMAND_MOVE_TO, REACT_ASSIST, and SetActionBar().
Referenced by InitCharmCreateSpells(), and LoadPetActionBar().
| void CharmInfo::InitPossessCreateSpells | ( | ) |
Definition at line 5596 of file Unit.cpp.
References _unit, ACT_PASSIVE, AddSpellToActionBar(), SpellInfo::Attributes, CREATURE_MAX_SPELLS, InitEmptyActionBar(), SpellInfo::IsPassive(), MAX_UNIT_ACTION_BAR_INDEX, SPELL_ATTR0_CASTABLE_WHILE_DEAD, sSpellMgr, and TYPEID_UNIT.
Referenced by Unit::SetCharmedBy().
|
inline |
|
inline |
Definition at line 1293 of file Unit.h.
References _isCommandAttack.
Referenced by WorldSession::HandlePetActionHelper().
|
inline |
Definition at line 1295 of file Unit.h.
References _isCommandFollow.
|
inline |
Definition at line 1299 of file Unit.h.
References _isFollowing.
|
inline |
Definition at line 1301 of file Unit.h.
References _isReturning.
| void CharmInfo::LoadPetActionBar | ( | const std::string & | data | ) |
Definition at line 5746 of file Unit.cpp.
References ACT_PASSIVE, ACTION_BAR_INDEX_END, ACTION_BAR_INDEX_START, Tokenizer::begin(), InitPetActionBar(), SpellInfo::IsAutocastable(), PetActionBar, SetActionBar(), Tokenizer::size(), and sSpellMgr.
| bool CharmInfo::RemoveSpellFromActionBar | ( | uint32 | spell_id | ) |
Definition at line 5708 of file Unit.cpp.
References ACT_PASSIVE, MAX_UNIT_ACTION_BAR_INDEX, PetActionBar, SetActionBar(), and sSpellMgr.
| void CharmInfo::RestoreState | ( | ) |
Definition at line 5554 of file Unit.cpp.
References _oldReactState, _unit, and TYPEID_UNIT.
| void CharmInfo::SaveStayPosition | ( | ) |
At this point a new spline destination is enabled because of Unit::StopMoving()
Definition at line 9077 of file Unit.cpp.
References _stayX, _stayY, _stayZ, and _unit.
Referenced by WorldSession::HandlePetActionHelper().
|
inline |
Definition at line 1271 of file Unit.h.
References PetActionBar.
Referenced by AddSpellToActionBar(), WorldSession::HandlePetSetAction(), InitEmptyActionBar(), InitPetActionBar(), LoadPetActionBar(), and RemoveSpellFromActionBar().
|
inline |
Definition at line 1247 of file Unit.h.
References _CommandState.
Referenced by WorldSession::HandlePetActionHelper().
| void CharmInfo::SetIsAtStay | ( | bool | val | ) |
Definition at line 9093 of file Unit.cpp.
References _isAtStay.
Referenced by Pet::AddToWorld(), PetAI::ClearCharmInfoFlags(), and WorldSession::HandlePetActionHelper().
| void CharmInfo::SetIsCommandAttack | ( | bool | val | ) |
Definition at line 9067 of file Unit.cpp.
References _isCommandAttack.
Referenced by Pet::AddToWorld(), PetAI::ClearCharmInfoFlags(), and WorldSession::HandlePetActionHelper().
| void CharmInfo::SetIsCommandFollow | ( | bool | val | ) |
Definition at line 9072 of file Unit.cpp.
References _isCommandFollow.
Referenced by Pet::AddToWorld(), PetAI::ClearCharmInfoFlags(), and WorldSession::HandlePetActionHelper().
| void CharmInfo::SetIsFollowing | ( | bool | val | ) |
Definition at line 9098 of file Unit.cpp.
References _isFollowing.
Referenced by Pet::AddToWorld(), PetAI::ClearCharmInfoFlags(), and WorldSession::HandlePetActionHelper().
| void CharmInfo::SetIsReturning | ( | bool | val | ) |
Definition at line 9103 of file Unit.cpp.
References _isReturning.
Referenced by Pet::AddToWorld(), PetAI::ClearCharmInfoFlags(), and WorldSession::HandlePetActionHelper().
| void CharmInfo::SetPetNumber | ( | uint32 | petnumber, |
| bool | statwindow ) |
Definition at line 5737 of file Unit.cpp.
References _petnumber, _unit, and UNIT_FIELD_PET_NUMBER.
Referenced by pet_commandscript::HandlePetCreateCommand(), Unit::InitTamedPet(), Unit::RemoveCharmedBy(), Unit::SetCharmedBy(), and Player::SummonPet().
| void CharmInfo::SetSpellAutocast | ( | SpellInfo const * | spellInfo, |
| bool | state ) |
Definition at line 5784 of file Unit.cpp.
References ACT_DISABLED, ACT_ENABLED, SpellInfo::Id, MAX_UNIT_ACTION_BAR_INDEX, and PetActionBar.
Referenced by WorldSession::HandlePetSpellAutocastOpcode().
| void CharmInfo::ToggleCreatureAutocast | ( | SpellInfo const * | spellInfo, |
| bool | apply ) |
Definition at line 5727 of file Unit.cpp.
References _charmspells, ACT_DISABLED, ACT_ENABLED, SpellInfo::Id, SpellInfo::IsPassive(), and MAX_SPELL_CHARM.
Referenced by WorldSession::HandlePetSpellAutocastOpcode(), and InitCharmCreateSpells().
|
private |
Definition at line 1311 of file Unit.h.
Referenced by CharmInfo().
|
private |
Definition at line 1308 of file Unit.h.
Referenced by CharmInfo(), GetCharmSpell(), InitCharmCreateSpells(), and ToggleCreatureAutocast().
|
private |
Definition at line 1309 of file Unit.h.
Referenced by CharmInfo(), GetCommandState(), HasCommandState(), and SetCommandState().
|
private |
Definition at line 1318 of file Unit.h.
Referenced by CharmInfo(), IsAtStay(), and SetIsAtStay().
|
private |
Definition at line 1316 of file Unit.h.
Referenced by CharmInfo(), IsCommandAttack(), and SetIsCommandAttack().
|
private |
Definition at line 1317 of file Unit.h.
Referenced by CharmInfo(), IsCommandFollow(), and SetIsCommandFollow().
|
private |
Definition at line 1319 of file Unit.h.
Referenced by CharmInfo(), IsFollowing(), and SetIsFollowing().
|
private |
Definition at line 1320 of file Unit.h.
Referenced by CharmInfo(), IsReturning(), and SetIsReturning().
|
private |
Definition at line 1314 of file Unit.h.
Referenced by CharmInfo(), and RestoreState().
|
private |
Definition at line 1310 of file Unit.h.
Referenced by CharmInfo(), GetPetNumber(), and SetPetNumber().
|
private |
Definition at line 1321 of file Unit.h.
Referenced by CharmInfo(), GetStayPosition(), and SaveStayPosition().
|
private |
Definition at line 1322 of file Unit.h.
Referenced by CharmInfo(), GetStayPosition(), and SaveStayPosition().
|
private |
Definition at line 1323 of file Unit.h.
Referenced by CharmInfo(), GetStayPosition(), and SaveStayPosition().
|
private |
Definition at line 1306 of file Unit.h.
Referenced by CharmInfo(), InitCharmCreateSpells(), InitPossessCreateSpells(), RestoreState(), SaveStayPosition(), and SetPetNumber().
|
private |
Definition at line 1325 of file Unit.h.
Referenced by GetGlobalCooldownMgr().
|
private |
Definition at line 1307 of file Unit.h.
Referenced by AddSpellToActionBar(), BuildActionBar(), GetActionBarEntry(), LoadPetActionBar(), RemoveSpellFromActionBar(), SetActionBar(), and SetSpellAutocast().