19 #ifndef TRINITY_CONDITIONMGR_H
20 #define TRINITY_CONDITIONMGR_H
187 mConditionTargets[0] = target0;
188 mConditionTargets[1] = target1;
189 mConditionTargets[2] = target2;
190 mLastFailedCondition =
nullptr;
228 NegativeCondition =
false;
232 uint32 GetSearcherTypeMaskForCondition()
const;
234 uint32 GetMaxAvailableConditionTargets()
const;
236 std::string
ToString(
bool ext =
false)
const;
255 void LoadConditions(
bool isReload =
false);
256 bool isConditionTypeValid(
Condition* cond)
const;
269 bool IsObjectMeetingVehicleSpellConditions(
uint32 creatureId,
uint32 spellId,
Player* player,
Unit* vehicle)
const;
286 bool isSourceTypeValid(
Condition* cond)
const;
288 bool addToGossipMenus(
Condition* cond)
const;
289 bool addToGossipMenuItems(
Condition* cond)
const;
290 bool addToSpellImplicitTargetConditions(
Condition* cond)
const;
307 #define sConditionMgr ConditionMgr::instance()
Definition: ConditionMgr.h:67
Definition: ConditionMgr.h:173
bool HasConditionValue2
Definition: ConditionMgr.h:279
Definition: ConditionMgr.h:55
uint32 ElseGroup
Definition: ConditionMgr.h:200
Definition: ConditionMgr.h:81
ConditionEntriesByTypeArray ConditionStore
Definition: ConditionMgr.h:299
ConditionSourceType
Definition: ConditionMgr.h:125
bool HasConditionValue3
Definition: ConditionMgr.h:280
Definition: ConditionMgr.h:132
Definition: ConditionMgr.h:52
ConditionEntriesByCreatureIdMap SpellClickEventConditionStore
Definition: ConditionMgr.h:302
Definition: ConditionMgr.h:194
Definition: ConditionMgr.h:83
Definition: ConditionMgr.h:135
Definition: ConditionMgr.h:69
int64_t int64
Definition: Define.h:145
std::vector< Condition * > AllocatedMemoryStore
Definition: ConditionMgr.h:297
Definition: ConditionMgr.h:75
Definition: ConditionMgr.h:134
MaxConditionTargets
Definition: ConditionMgr.h:176
Definition: ConditionMgr.h:59
Definition: ConditionMgr.h:162
Definition: ConditionMgr.h:85
Definition: ConditionMgr.h:91
ConditionEntriesByCreatureIdMap VehicleSpellConditionStore
Definition: ConditionMgr.h:301
Definition: ConditionMgr.h:62
Definition: ConditionMgr.h:72
Definition: ConditionMgr.h:92
Definition: ConditionMgr.h:76
Definition: ConditionMgr.h:139
Definition: ConditionMgr.h:172
Definition: ConditionMgr.h:129
int32 SourceEntry
Definition: ConditionMgr.h:198
Definition: Creature.h:467
Definition: ConditionMgr.h:152
Definition: ConditionMgr.h:150
ConditionTypes
Definition: ConditionMgr.h:49
Definition: ConditionMgr.h:275
Definition: ConditionMgr.h:151
Definition: ConditionMgr.h:56
Definition: ConditionMgr.h:136
InstanceInfo
Definition: ConditionMgr.h:168
uint32 SourceId
Definition: ConditionMgr.h:199
uint32 ErrorTextId
Definition: ConditionMgr.h:206
Definition: ConditionMgr.h:128
Definition: ConditionMgr.h:146
Definition: ConditionMgr.h:80
bool isLoaded() const
Definition: ConditionMgr.h:233
Condition()
Definition: ConditionMgr.h:212
uint32 ErrorType
Definition: ConditionMgr.h:205
string ToString(int i)
Definition: strutil.h:491
Definition: ConditionMgr.h:93
Definition: ConditionMgr.h:70
Definition: ConditionMgr.h:54
Definition: ConditionMgr.h:246
Definition: ConditionMgr.h:163
std::unordered_map< uint32, ConditionContainer > ConditionReferenceContainer
Definition: ConditionMgr.h:244
uint32 SourceGroup
Definition: ConditionMgr.h:197
Definition: ConditionMgr.h:61
Definition: ConditionMgr.h:138
Definition: ConditionMgr.h:143
Definition: ConditionMgr.h:145
Definition: ConditionMgr.h:73
Definition: ConditionMgr.h:137
Definition: ConditionMgr.h:131
int32_t int32
Definition: Define.h:146
uint8 ConditionTarget
Definition: ConditionMgr.h:209
Definition: ConditionMgr.h:64
ConditionSourceInfo(WorldObject *target0, WorldObject *target1=nullptr, WorldObject *target2=nullptr)
Definition: ConditionMgr.h:185
uint32_t uint32
Definition: Define.h:150
Definition: ConditionMgr.h:66
Definition: ConditionMgr.h:159
Definition: ConditionMgr.h:51
Definition: ConditionMgr.h:181
Definition: ConditionMgr.h:78
Definition: ConditionMgr.h:58
Definition: ConditionMgr.h:165
uint32 ConditionValue3
Definition: ConditionMgr.h:204
Definition: ConditionMgr.h:57
std::unordered_map< uint32, ConditionsByEntryMap > ConditionEntriesByCreatureIdMap
Definition: ConditionMgr.h:242
Definition: ConditionMgr.h:142
bool HasConditionValue1
Definition: ConditionMgr.h:278
SmartEventConditionContainer SmartEventConditionStore
Definition: ConditionMgr.h:304
Definition: ConditionMgr.h:161
bool NegativeCondition
Definition: ConditionMgr.h:210
Definition: ConditionMgr.h:90
Definition: ConditionMgr.h:133
uint32 ConditionValue2
Definition: ConditionMgr.h:203
ConditionReferenceContainer ConditionReferenceStore
Definition: ConditionMgr.h:300
Definition: ConditionMgr.h:87
Definition: ConditionMgr.h:154
Definition: ConditionMgr.h:149
Definition: ConditionMgr.h:127
Definition: LootMgr.h:250
uint32 ScriptId
Definition: ConditionMgr.h:208
uint32 ConditionValue1
Definition: ConditionMgr.h:202
Definition: ConditionMgr.h:77
std::unordered_map< uint32, ConditionContainer > ConditionsByEntryMap
Definition: ConditionMgr.h:240
std::unordered_map< std::pair< int32, uint32 >, ConditionsByEntryMap > SmartEventConditionContainer
Definition: ConditionMgr.h:243
Definition: ConditionMgr.h:71
#define TC_GAME_API
Definition: Define.h:134
int32_t int32
Definition: g3dmath.h:167
uint8_t uint8
Definition: Define.h:152
Definition: ConditionMgr.h:141
Definition: DB2Structure.h:992
Definition: ConditionMgr.h:86
Definition: ConditionMgr.h:147
Definition: ConditionMgr.h:79
const FieldDescriptor value
Definition: descriptor.h:1522
Definition: ConditionMgr.h:153
Definition: ConditionMgr.h:144
Definition: ConditionMgr.h:160
Definition: ConditionMgr.h:164
RelationType
Definition: ConditionMgr.h:157
Definition: ConditionMgr.h:63
uint32 ReferenceId
Definition: ConditionMgr.h:207
std::vector< Condition * > ConditionContainer
Definition: ConditionMgr.h:239
Definition: ConditionMgr.h:171
Definition: ConditionMgr.h:170
std::array< ConditionsByEntryMap, CONDITION_SOURCE_TYPE_MAX > ConditionEntriesByTypeArray
Definition: ConditionMgr.h:241
Definition: ConditionMgr.h:88
Definition: ConditionMgr.h:140
Definition: ConditionMgr.h:148
Definition: ConditionMgr.h:178
ConditionEntriesByCreatureIdMap NpcVendorConditionContainerStore
Definition: ConditionMgr.h:303
Definition: ConditionMgr.h:74
Definition: ConditionMgr.h:130
ConditionTypes ConditionType
Definition: ConditionMgr.h:201
Definition: ConditionMgr.h:84
Definition: ConditionMgr.h:89
Condition const * mLastFailedCondition
Definition: ConditionMgr.h:184
Definition: ConditionMgr.h:60
ConditionSourceType SourceType
Definition: ConditionMgr.h:196
Definition: ConditionMgr.h:53
char const * Name
Definition: ConditionMgr.h:277
Definition: ConditionMgr.h:68
Definition: ConditionMgr.h:82
Definition: ConditionMgr.h:65