TrinityCore
Loading...
Searching...
No Matches
ConditionMgr.cpp File Reference
#include "ConditionMgr.h"
#include "AchievementMgr.h"
#include "AreaTrigger.h"
#include "AreaTriggerDataStore.h"
#include "BattlePetMgr.h"
#include "BattlegroundScript.h"
#include "CollectionMgr.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 "PlayerChoice.h"
#include "RaceMask.h"
#include "RealmList.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 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::bitset< N > &results)
 
template<typename T , std::size_t N, typename... ExtraParams, Trinity::invocable_r< bool, Player const *, T, typename ExtraParams::value_type... > Predicate>
static std::bitset< N > GetPlayerConditionSingleResult (Predicate predicate, Player const *player, std::array< T, N > const &conditions, ExtraParams const &... params)
 
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 constexpr int32(*const WorldStateExpressionFunctions [WSE_FUNCTION_MAX])(Map const *, uint32, uint32)
 

Function Documentation

◆ EvalRelOp()

bool EvalRelOp ( ByteBuffer buffer,
Map const *  map 
)

Definition at line 3683 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 3622 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 3659 of file ConditionMgr.cpp.

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

◆ GetPlayerConditionSingleResult()

template<typename T , std::size_t N, typename... ExtraParams, Trinity::invocable_r< bool, Player const *, T, typename ExtraParams::value_type... > Predicate>
static std::bitset< N > GetPlayerConditionSingleResult ( Predicate  predicate,
Player const *  player,
std::array< T, N > const &  conditions,
ExtraParams const &...  params 
)
inlinestatic

Definition at line 2810 of file ConditionMgr.cpp.

+ Here is the caller graph for this function:

◆ GetUnitConditionVariable()

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

Definition at line 3746 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 2762 of file ConditionMgr.cpp.

+ Here is the caller graph for this function:

◆ PlayerConditionLogic()

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

Definition at line 2785 of file ConditionMgr.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ WorldStateExpressionFunctions

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

Definition at line 3366 of file ConditionMgr.cpp.