![]() |
TrinityCore
|
#include <ConditionMgr.h>
Public Member Functions | |
| Condition () | |
| bool | Meets (ConditionSourceInfo &sourceInfo) const |
| uint32 | GetSearcherTypeMaskForCondition () const |
| bool | isLoaded () const |
| uint32 | GetMaxAvailableConditionTargets () const |
| std::string | ToString (bool ext=false) const |
Definition at line 214 of file ConditionMgr.h.
|
inline |
Definition at line 233 of file ConditionMgr.h.
References CONDITION_NONE, and CONDITION_SOURCE_TYPE_NONE.
| uint32 Condition::GetMaxAvailableConditionTargets | ( | ) | const |
Definition at line 790 of file ConditionMgr.cpp.
References CONDITION_SOURCE_TYPE_CREATURE_TEMPLATE_VEHICLE, CONDITION_SOURCE_TYPE_GOSSIP_MENU, CONDITION_SOURCE_TYPE_GOSSIP_MENU_OPTION, CONDITION_SOURCE_TYPE_NPC_VENDOR, CONDITION_SOURCE_TYPE_SMART_EVENT, CONDITION_SOURCE_TYPE_SPELL, CONDITION_SOURCE_TYPE_SPELL_CLICK_EVENT, CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET, CONDITION_SOURCE_TYPE_SPELL_PROC, CONDITION_SOURCE_TYPE_VEHICLE_SPELL, and SourceType.
Referenced by ConditionMgr::isConditionTypeValid().
| uint32 Condition::GetSearcherTypeMaskForCondition | ( | ) | const |
Definition at line 592 of file ConditionMgr.cpp.
References ABORT_MSG, CONDITION_ACHIEVEMENT, CONDITION_ACTIVE_EVENT, CONDITION_ALIVE, CONDITION_AREAID, CONDITION_AURA, CONDITION_CHARMED, CONDITION_CLASS, CONDITION_CREATURE_TYPE, CONDITION_DAILY_QUEST_DONE, CONDITION_DIFFICULTY_ID, CONDITION_DISTANCE_TO, CONDITION_DRUNKENSTATE, CONDITION_GAMEMASTER, CONDITION_GENDER, CONDITION_GROUP_STATUS, CONDITION_HP_PCT, CONDITION_HP_VAL, CONDITION_IN_WATER, CONDITION_INSTANCE_INFO, CONDITION_ITEM, CONDITION_ITEM_EQUIPPED, CONDITION_LEVEL, CONDITION_MAPID, CONDITION_NEAR_CREATURE, CONDITION_NEAR_GAMEOBJECT, CONDITION_NONE, CONDITION_OBJECT_ENTRY_GUID, CONDITION_PET_TYPE, CONDITION_PHASEMASK, CONDITION_PRIVATE_OBJECT, CONDITION_QUEST_COMPLETE, CONDITION_QUEST_NONE, CONDITION_QUEST_OBJECTIVE_PROGRESS, CONDITION_QUESTREWARDED, CONDITION_QUESTSTATE, CONDITION_QUESTTAKEN, CONDITION_RACE, CONDITION_REACTION_TO, CONDITION_REALM_ACHIEVEMENT, CONDITION_RELATION_TO, CONDITION_REPUTATION_RANK, CONDITION_SKILL, CONDITION_SPAWNMASK, CONDITION_SPELL, CONDITION_STAND_STATE, CONDITION_STRING_ID, CONDITION_TAXI, CONDITION_TEAM, CONDITION_TITLE, CONDITION_TYPE_MASK, CONDITION_UNIT_STATE, CONDITION_WORLD_STATE, CONDITION_ZONEID, ConditionType, ConditionValue1, GRID_MAP_TYPE_MASK_ALL, GRID_MAP_TYPE_MASK_CORPSE, GRID_MAP_TYPE_MASK_CREATURE, GRID_MAP_TYPE_MASK_GAMEOBJECT, GRID_MAP_TYPE_MASK_PLAYER, NegativeCondition, TYPEID_CORPSE, TYPEID_GAMEOBJECT, TYPEID_PLAYER, TYPEID_UNIT, TYPEMASK_CORPSE, TYPEMASK_GAMEOBJECT, TYPEMASK_PLAYER, and TYPEMASK_UNIT.
|
inline |
Definition at line 254 of file ConditionMgr.h.
References CONDITION_NONE.
Referenced by LootTemplate::addConditionItem().
| bool Condition::Meets | ( | ConditionSourceInfo & | sourceInfo | ) | const |
Definition at line 155 of file ConditionMgr.cpp.
References ASSERT, ASSERT_NOTNULL, CompareValues(), CONDITION_ACHIEVEMENT, CONDITION_ACTIVE_EVENT, CONDITION_ALIVE, CONDITION_AREAID, CONDITION_AURA, CONDITION_CHARMED, CONDITION_CLASS, CONDITION_CREATURE_TYPE, CONDITION_DAILY_QUEST_DONE, CONDITION_DIFFICULTY_ID, CONDITION_DISTANCE_TO, CONDITION_DRUNKENSTATE, CONDITION_GAMEMASTER, CONDITION_GENDER, CONDITION_GROUP_STATUS, CONDITION_HP_PCT, CONDITION_HP_VAL, CONDITION_IN_WATER, CONDITION_INSTANCE_INFO, CONDITION_ITEM, CONDITION_ITEM_EQUIPPED, CONDITION_LEVEL, CONDITION_MAPID, CONDITION_NEAR_CREATURE, CONDITION_NEAR_GAMEOBJECT, CONDITION_NONE, CONDITION_OBJECT_ENTRY_GUID, CONDITION_PET_TYPE, CONDITION_PHASEMASK, CONDITION_QUEST_COMPLETE, CONDITION_QUEST_NONE, CONDITION_QUEST_OBJECTIVE_PROGRESS, CONDITION_QUESTREWARDED, CONDITION_QUESTSTATE, CONDITION_QUESTTAKEN, CONDITION_RACE, CONDITION_REACTION_TO, CONDITION_REALM_ACHIEVEMENT, CONDITION_RELATION_TO, CONDITION_REPUTATION_RANK, CONDITION_SKILL, CONDITION_SPAWNMASK, CONDITION_SPELL, CONDITION_STAND_STATE, CONDITION_STRING_ID, CONDITION_TAXI, CONDITION_TEAM, CONDITION_TITLE, CONDITION_TYPE_MASK, CONDITION_UNIT_STATE, CONDITION_WORLD_STATE, CONDITION_ZONEID, ConditionStringValue1, ConditionTarget, ConditionType, ConditionValue1, ConditionValue2, ConditionValue3, Unit::GetCreatorGUID(), WorldObject::GetDistance(), Player::GetDrunkenstateByValue(), Object::GetGUID(), Unit::GetOwnerGUID(), Quest::GetQuestId(), WorldObject::GetReactionTo(), Object::GetTypeId(), INSTANCE_INFO_BOSS_STATE, INSTANCE_INFO_DATA, INSTANCE_INFO_DATA64, INSTANCE_INFO_GUID_DATA, Map::IsDungeon(), Unit::IsInPartyWith(), Unit::IsInRaidWith(), Unit::IsOnVehicle(), MAX_CONDITION_TARGETS, MAX_QUEST_LOG_SIZE, ConditionSourceInfo::mConditionTargets, MeetsGroupStatusCondition(), ConditionSourceInfo::mLastFailedCondition, NegativeCondition, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, QUEST_STATUS_REWARDED, RELATION_CREATED_BY, RELATION_IN_PARTY, RELATION_IN_RAID_OR_PARTY, RELATION_OWNED_BY, RELATION_PASSENGER_OF, RELATION_SELF, sAchievementMgr, sAchievementStore, sFactionStore, sGameEventMgr, sObjectMgr, sScriptMgr, sWorld, TC_LOG_DEBUG, Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), ToString(), Object::ToUnit(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
| std::string Condition::ToString | ( | bool | ext = false | ) | const |
Definition at line 811 of file ConditionMgr.cpp.
References ConditionMgr::CanHaveSourceGroupSet(), ConditionMgr::CanHaveSourceIdSet(), CONDITION_MAX, CONDITION_SOURCE_TYPE_MAX, ConditionType, ConditionMgr::ConditionTypeInfo::Name, SourceEntry, SourceGroup, SourceId, SourceType, ConditionMgr::StaticConditionTypeData, and ConditionMgr::StaticSourceTypeData.
Referenced by ConditionMgr::addToGossipMenuItems(), ConditionMgr::addToGossipMenus(), ConditionMgr::addToLootTemplate(), ConditionMgr::addToSpellImplicitTargetConditions(), ConditionMgr::isConditionTypeValid(), ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), ConditionMgr::LogUselessConditionValue(), ConditionMgr::LogUselessConditionValue(), and Meets().
| std::string Condition::ConditionStringValue1 |
Definition at line 225 of file ConditionMgr.h.
Referenced by ConditionMgr::isConditionTypeValid(), ConditionMgr::LoadConditions(), and Meets().
| uint8 Condition::ConditionTarget |
Definition at line 230 of file ConditionMgr.h.
Referenced by Spell::CheckCast(), ConditionMgr::isConditionTypeValid(), ConditionMgr::LoadConditions(), Meets(), condition_thorim_arena_leap::OnConditionCheck(), and condition_nagrand_banner::OnConditionCheck().
| ConditionTypes Condition::ConditionType |
Definition at line 221 of file ConditionMgr.h.
Referenced by ConditionMgr::addToSpellImplicitTargetConditions(), GetSearcherTypeMaskForCondition(), ConditionMgr::isConditionTypeValid(), ConditionMgr::LoadConditions(), Meets(), and ToString().
| uint32 Condition::ConditionValue1 |
Definition at line 222 of file ConditionMgr.h.
Referenced by ConditionMgr::addToSpellImplicitTargetConditions(), GetSearcherTypeMaskForCondition(), ConditionMgr::isConditionTypeValid(), ConditionMgr::LoadConditions(), and Meets().
| uint32 Condition::ConditionValue2 |
Definition at line 223 of file ConditionMgr.h.
Referenced by ConditionMgr::isConditionTypeValid(), ConditionMgr::LoadConditions(), and Meets().
| uint32 Condition::ConditionValue3 |
Definition at line 224 of file ConditionMgr.h.
Referenced by ConditionMgr::isConditionTypeValid(), ConditionMgr::LoadConditions(), and Meets().
| uint32 Condition::ElseGroup |
Definition at line 220 of file ConditionMgr.h.
Referenced by ConditionMgr::LoadConditions().
| uint32 Condition::ErrorTextId |
Definition at line 227 of file ConditionMgr.h.
Referenced by Spell::CheckCast(), and ConditionMgr::LoadConditions().
| uint32 Condition::ErrorType |
Definition at line 226 of file ConditionMgr.h.
Referenced by Spell::CheckCast(), and ConditionMgr::LoadConditions().
| bool Condition::NegativeCondition |
Definition at line 231 of file ConditionMgr.h.
Referenced by GetSearcherTypeMaskForCondition(), ConditionMgr::LoadConditions(), and Meets().
| uint32 Condition::ReferenceId |
Definition at line 228 of file ConditionMgr.h.
Referenced by ConditionMgr::LoadConditions().
| uint32 Condition::ScriptId |
Definition at line 229 of file ConditionMgr.h.
Referenced by ConditionMgr::LoadConditions(), and ScriptMgr::OnConditionCheck().
| int32 Condition::SourceEntry |
Definition at line 218 of file ConditionMgr.h.
Referenced by LootTemplate::addConditionItem(), ConditionMgr::addToGossipMenuItems(), ConditionMgr::addToGossipMenus(), ConditionMgr::addToLootTemplate(), ConditionMgr::addToSpellImplicitTargetConditions(), ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), and ToString().
| uint32 Condition::SourceGroup |
Definition at line 217 of file ConditionMgr.h.
Referenced by ConditionMgr::addToGossipMenuItems(), ConditionMgr::addToGossipMenus(), ConditionMgr::addToLootTemplate(), ConditionMgr::addToSpellImplicitTargetConditions(), ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), and ToString().
| uint32 Condition::SourceId |
Definition at line 219 of file ConditionMgr.h.
Referenced by ConditionMgr::LoadConditions(), and ToString().
| ConditionSourceType Condition::SourceType |
Definition at line 216 of file ConditionMgr.h.
Referenced by GetMaxAvailableConditionTargets(), ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), and ToString().