TrinityCore
SceneMgr Class Reference

#include <SceneMgr.h>

Public Member Functions

 SceneMgr (Player *player)
 
 ~SceneMgr ()
 
 SceneMgr (SceneMgr const &)=delete
 
 SceneMgr (SceneMgr &&)=delete
 
PlayerGetPlayer () const
 
uint32 PlayScene (uint32 sceneId, Position const *position=nullptr)
 
uint32 PlaySceneByTemplate (SceneTemplate const *sceneTemplate, Position const *position=nullptr)
 
uint32 PlaySceneByPackageId (uint32 sceneScriptPackageId, EnumFlag< SceneFlag > playbackflags, Position const *position=nullptr)
 
void CancelScene (uint32 sceneInstanceID, bool removeFromMap=true)
 
void OnSceneTrigger (uint32 sceneInstanceID, std::string const &triggerName)
 
void OnSceneCancel (uint32 sceneInstanceID)
 
void OnSceneComplete (uint32 sceneInstanceID)
 
void RecreateScene (uint32 sceneScriptPackageId, EnumFlag< SceneFlag > playbackflags, Position const *position=nullptr)
 
bool HasScene (uint32 sceneInstanceID, uint32 sceneScriptPackageId=0) const
 
void AddInstanceIdToSceneMap (uint32 sceneInstanceID, SceneTemplate const *sceneTemplate)
 
void CancelSceneBySceneId (uint32 sceneId)
 
void CancelSceneByPackageId (uint32 sceneScriptPackageId)
 
void RemoveSceneInstanceId (uint32 sceneInstanceID)
 
void RemoveAurasDueToSceneId (uint32 sceneId)
 
SceneTemplate const * GetSceneTemplateFromInstanceId (uint32 sceneInstanceID) const
 
uint32 GetActiveSceneCount (uint32 sceneScriptPackageId=0) const
 
SceneTemplateByInstance const & GetSceneTemplateByInstanceMap () const
 
uint32 GetNewStandaloneSceneInstanceID ()
 
void TriggerDelayedScenes ()
 
void ToggleDebugSceneMode ()
 
bool IsInDebugSceneMode () const
 

Private Attributes

Player_player
 
SceneTemplateByInstance _scenesByInstance
 
uint32 _standaloneSceneInstanceID
 
std::vector< WorldPacket_delayedScenes
 
bool _isDebuggingScenes
 

Detailed Description

Definition at line 34 of file SceneMgr.h.

Constructor & Destructor Documentation

◆ SceneMgr() [1/3]

SceneMgr::SceneMgr ( Player player)

Definition at line 28 of file SceneMgr.cpp.

◆ ~SceneMgr()

SceneMgr::~SceneMgr ( )
default

◆ SceneMgr() [2/3]

SceneMgr::SceneMgr ( SceneMgr const &  )
delete

◆ SceneMgr() [3/3]

SceneMgr::SceneMgr ( SceneMgr &&  )
delete

Member Function Documentation

◆ AddInstanceIdToSceneMap()

void SceneMgr::AddInstanceIdToSceneMap ( uint32  sceneInstanceID,
SceneTemplate const *  sceneTemplate 
)

Definition at line 173 of file SceneMgr.cpp.

+ Here is the caller graph for this function:

◆ CancelScene()

void SceneMgr::CancelScene ( uint32  sceneInstanceID,
bool  removeFromMap = true 
)

Definition at line 95 of file SceneMgr.cpp.

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

◆ CancelSceneByPackageId()

void SceneMgr::CancelSceneByPackageId ( uint32  sceneScriptPackageId)

Definition at line 190 of file SceneMgr.cpp.

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

◆ CancelSceneBySceneId()

void SceneMgr::CancelSceneBySceneId ( uint32  sceneId)

Definition at line 178 of file SceneMgr.cpp.

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

◆ GetActiveSceneCount()

uint32 SceneMgr::GetActiveSceneCount ( uint32  sceneScriptPackageId = 0) const

Definition at line 230 of file SceneMgr.cpp.

+ Here is the caller graph for this function:

◆ GetNewStandaloneSceneInstanceID()

uint32 SceneMgr::GetNewStandaloneSceneInstanceID ( )
inline

Definition at line 72 of file SceneMgr.h.

+ Here is the caller graph for this function:

◆ GetPlayer()

Player * SceneMgr::GetPlayer ( ) const
inline

Definition at line 43 of file SceneMgr.h.

+ Here is the caller graph for this function:

◆ GetSceneTemplateByInstanceMap()

SceneTemplateByInstance const & SceneMgr::GetSceneTemplateByInstanceMap ( ) const
inline

Definition at line 70 of file SceneMgr.h.

+ Here is the caller graph for this function:

◆ GetSceneTemplateFromInstanceId()

SceneTemplate const * SceneMgr::GetSceneTemplateFromInstanceId ( uint32  sceneInstanceID) const

Definition at line 220 of file SceneMgr.cpp.

+ Here is the caller graph for this function:

◆ HasScene()

bool SceneMgr::HasScene ( uint32  sceneInstanceID,
uint32  sceneScriptPackageId = 0 
) const

Definition at line 163 of file SceneMgr.cpp.

+ Here is the caller graph for this function:

◆ IsInDebugSceneMode()

bool SceneMgr::IsInDebugSceneMode ( ) const
inline

Definition at line 77 of file SceneMgr.h.

◆ OnSceneCancel()

void SceneMgr::OnSceneCancel ( uint32  sceneInstanceID)

Definition at line 117 of file SceneMgr.cpp.

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

◆ OnSceneComplete()

void SceneMgr::OnSceneComplete ( uint32  sceneInstanceID)

Definition at line 141 of file SceneMgr.cpp.

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

◆ OnSceneTrigger()

void SceneMgr::OnSceneTrigger ( uint32  sceneInstanceID,
std::string const &  triggerName 
)

Definition at line 105 of file SceneMgr.cpp.

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

◆ PlayScene()

uint32 SceneMgr::PlayScene ( uint32  sceneId,
Position const *  position = nullptr 
)

Definition at line 36 of file SceneMgr.cpp.

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

◆ PlaySceneByPackageId()

uint32 SceneMgr::PlaySceneByPackageId ( uint32  sceneScriptPackageId,
EnumFlag< SceneFlag playbackflags,
Position const *  position = nullptr 
)

Definition at line 83 of file SceneMgr.cpp.

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

◆ PlaySceneByTemplate()

uint32 SceneMgr::PlaySceneByTemplate ( SceneTemplate const *  sceneTemplate,
Position const *  position = nullptr 
)

Definition at line 42 of file SceneMgr.cpp.

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

◆ RecreateScene()

void SceneMgr::RecreateScene ( uint32  sceneScriptPackageId,
EnumFlag< SceneFlag playbackflags,
Position const *  position = nullptr 
)
inline

Definition at line 54 of file SceneMgr.h.

◆ RemoveAurasDueToSceneId()

void SceneMgr::RemoveAurasDueToSceneId ( uint32  sceneId)

Definition at line 207 of file SceneMgr.cpp.

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

◆ RemoveSceneInstanceId()

void SceneMgr::RemoveSceneInstanceId ( uint32  sceneInstanceID)

Definition at line 202 of file SceneMgr.cpp.

+ Here is the caller graph for this function:

◆ ToggleDebugSceneMode()

void SceneMgr::ToggleDebugSceneMode ( )
inline

Definition at line 76 of file SceneMgr.h.

◆ TriggerDelayedScenes()

void SceneMgr::TriggerDelayedScenes ( )

Definition at line 241 of file SceneMgr.cpp.

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

Member Data Documentation

◆ _delayedScenes

std::vector<WorldPacket> SceneMgr::_delayedScenes
private

Definition at line 83 of file SceneMgr.h.

◆ _isDebuggingScenes

bool SceneMgr::_isDebuggingScenes
private

Definition at line 84 of file SceneMgr.h.

◆ _player

Player* SceneMgr::_player
private

Definition at line 80 of file SceneMgr.h.

◆ _scenesByInstance

SceneTemplateByInstance SceneMgr::_scenesByInstance
private

Definition at line 81 of file SceneMgr.h.

◆ _standaloneSceneInstanceID

uint32 SceneMgr::_standaloneSceneInstanceID
private

Definition at line 82 of file SceneMgr.h.


The documentation for this class was generated from the following files: