TrinityCore
ConditionMgr.cpp File Reference
#include "ConditionMgr.h"
#include "AchievementMgr.h"
#include "AreaTrigger.h"
#include "AreaTriggerDataStore.h"
#include "BattlePetMgr.h"
#include "Battleground.h"
#include "Containers.h"
#include "ConversationDataStore.h"
#include "DB2Stores.h"
#include "DatabaseEnv.h"
#include "GameEventMgr.h"
#include "GameObject.h"
#include "GameTime.h"
#include "Group.h"
#include "InstanceScenario.h"
#include "InstanceScript.h"
#include "Item.h"
#include "LFGMgr.h"
#include "LanguageMgr.h"
#include "Log.h"
#include "LootMgr.h"
#include "Map.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "RaceMask.h"
#include "Realm.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "World.h"
#include "WorldSession.h"
#include "WorldStateMgr.h"
#include "WowTime.h"
#include <random>
#include <sstream>
+ Include dependency graph for ConditionMgr.cpp:

Go to the source code of this file.

Functions

bool PlayerConditionCompare (int32 comparisonType, int32 value1, int32 value2)
 
template<std::size_t N>
bool PlayerConditionLogic (uint32 logic, std::array< bool, N > &results)
 
ByteBuffer HexToBytes (const std::string &hex)
 
int32 EvalSingleValue (ByteBuffer &buffer, Map const *map)
 
int32 EvalValue (ByteBuffer &buffer, Map const *map)
 
bool EvalRelOp (ByteBuffer &buffer, Map const *map)
 
int32 GetUnitConditionVariable (Unit const *unit, Unit const *otherUnit, UnitConditionVariable variable, int32 value)
 

Variables

static int32(*const WorldStateExpressionFunctions [WSE_FUNCTION_MAX])(Map const *, uint32, uint32)
 

Function Documentation

◆ EvalRelOp()

bool EvalRelOp ( ByteBuffer buffer,
Map const *  map 
)

Definition at line 3616 of file ConditionMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EvalSingleValue()

int32 EvalSingleValue ( ByteBuffer buffer,
Map const *  map 
)

Definition at line 3555 of file ConditionMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EvalValue()

int32 EvalValue ( ByteBuffer buffer,
Map const *  map 
)

Definition at line 3592 of file ConditionMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitConditionVariable()

int32 GetUnitConditionVariable ( Unit const *  unit,
Unit const *  otherUnit,
UnitConditionVariable  variable,
int32  value 
)

Definition at line 3676 of file ConditionMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HexToBytes()

ByteBuffer HexToBytes ( const std::string &  hex)

Definition at line 3292 of file ConditionMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlayerConditionCompare()

bool PlayerConditionCompare ( int32  comparisonType,
int32  value1,
int32  value2 
)
inline

Definition at line 2730 of file ConditionMgr.cpp.

+ Here is the caller graph for this function:

◆ PlayerConditionLogic()

template<std::size_t N>
bool PlayerConditionLogic ( uint32  logic,
std::array< bool, N > &  results 
)
inline

Definition at line 2753 of file ConditionMgr.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ WorldStateExpressionFunctions

int32(*const WorldStateExpressionFunctions[WSE_FUNCTION_MAX])(Map const *, uint32, uint32) ( Map const *  ,
uint32  ,
uint32   
)
static

Definition at line 3299 of file ConditionMgr.cpp.