TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GameEventMgr.cpp File Reference
#include "GameEventMgr.h"
#include "World.h"
#include "ObjectMgr.h"
#include "PoolMgr.h"
#include "Language.h"
#include "Log.h"
#include "MapManager.h"
#include "Player.h"
#include "BattlegroundMgr.h"
#include "UnitAI.h"
#include "GameObjectAI.h"
#include "WorldStatePackets.h"
+ Include dependency graph for GameEventMgr.cpp:

Classes

class  GameEventAIHookWorker
 

Functions

bool IsHolidayActive (HolidayIds id)
 
bool IsEventActive (uint16 event_id)
 

Function Documentation

bool IsEventActive ( uint16  event_id)
1689 {
1690  GameEventMgr::ActiveEvents const& ae = sGameEventMgr->GetActiveEventList();
1691  return ae.find(event_id) != ae.end();
1692 }
#define sGameEventMgr
Definition: GameEventMgr.h:184
std::set< uint16 > ActiveEvents
Definition: GameEventMgr.h:106

+ Here is the caller graph for this function:

bool IsHolidayActive ( HolidayIds  id)
1674 {
1675  if (id == HOLIDAY_NONE)
1676  return false;
1677 
1678  GameEventMgr::GameEventDataMap const& events = sGameEventMgr->GetEventMap();
1679  GameEventMgr::ActiveEvents const& ae = sGameEventMgr->GetActiveEventList();
1680 
1681  for (GameEventMgr::ActiveEvents::const_iterator itr = ae.begin(); itr != ae.end(); ++itr)
1682  if (events[*itr].holiday_id == id)
1683  return true;
1684 
1685  return false;
1686 }
Definition: SharedDefines.h:3716
#define sGameEventMgr
Definition: GameEventMgr.h:184
std::set< uint16 > ActiveEvents
Definition: GameEventMgr.h:106
std::vector< GameEventData > GameEventDataMap
Definition: GameEventMgr.h:107

+ Here is the caller graph for this function: