TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AchievementMgr.cpp File Reference
#include "AchievementMgr.h"
#include "AchievementPackets.h"
#include "ArenaTeam.h"
#include "ArenaTeamMgr.h"
#include "Battleground.h"
#include "CellImpl.h"
#include "ChatTextBuilder.h"
#include "Common.h"
#include "DatabaseEnv.h"
#include "DBCEnums.h"
#include "DisableMgr.h"
#include "GameEventMgr.h"
#include "Garrison.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "Guild.h"
#include "GuildMgr.h"
#include "InstanceScript.h"
#include "Language.h"
#include "Map.h"
#include "MapManager.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "SpellMgr.h"
#include "World.h"
#include "WorldPacket.h"
+ Include dependency graph for AchievementMgr.cpp:

Classes

struct  VisibleAchievementCheck
 

Functions

void DeletePlayerAchievementsFromDB (ObjectGuid guid)
 
void DeleteGuildAchievementsFromDB (ObjectGuid guid)
 
template<typename T >
static bool IsGuild ()
 
template<>
bool IsGuild< Guild > ()
 
template<class T >
static uint32 GetInstanceId (T *)
 
template<>
uint32 GetInstanceId (Player *player)
 

Variables

template class TC_GAME_API AchievementMgr< Player >
 
template class TC_GAME_API AchievementMgr< Guild >
 

Function Documentation

void DeleteGuildAchievementsFromDB ( ObjectGuid  guid)
507 {
509 
511  stmt->setUInt64(0, guid.GetCounter());
512  trans->Append(stmt);
513 
515  stmt->setUInt64(0, guid.GetCounter());
516  trans->Append(stmt);
517 
519 }
Definition: CharacterDatabase.h:204
SQLTransaction BeginTransaction()
Begins an automanaged transaction pointer that will automatically rollback if not commited...
Definition: DatabaseWorkerPool.h:221
Definition: PreparedStatement.h:74
void CommitTransaction(SQLTransaction transaction)
Definition: DatabaseWorkerPool.cpp:179
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
Definition: CharacterDatabase.h:203
LowType GetCounter() const
Definition: ObjectGuid.h:221
std::shared_ptr< Transaction > SQLTransaction
Definition: Transaction.h:58

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeletePlayerAchievementsFromDB ( ObjectGuid  guid)
492 {
494 
496  stmt->setUInt64(0, guid.GetCounter());
497  trans->Append(stmt);
498 
500  stmt->setUInt64(0, guid.GetCounter());
501  trans->Append(stmt);
502 
504 }
SQLTransaction BeginTransaction()
Begins an automanaged transaction pointer that will automatically rollback if not commited...
Definition: DatabaseWorkerPool.h:221
Definition: PreparedStatement.h:74
void CommitTransaction(SQLTransaction transaction)
Definition: DatabaseWorkerPool.cpp:179
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
Definition: CharacterDatabase.h:408
Definition: CharacterDatabase.h:407
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
LowType GetCounter() const
Definition: ObjectGuid.h:221
std::shared_ptr< Transaction > SQLTransaction
Definition: Transaction.h:58

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T >
static uint32 GetInstanceId ( T *  )
static
1326 { return 0xFFFFFFFF; }

+ Here is the caller graph for this function:

template<>
uint32 GetInstanceId ( Player *  player)
1329 { return player->GetInstanceId(); }
template<typename T >
static bool IsGuild ( )
static
962 { return false; }
template<>
bool IsGuild< Guild > ( )
963 { return true; }

Variable Documentation

template class TC_GAME_API AchievementMgr< Guild >
template class TC_GAME_API AchievementMgr< Player >