TrinityCore
Loading...
Searching...
No Matches
PlayerChoiceScript Class Reference

#include <ScriptMgr.h>

+ Inheritance diagram for PlayerChoiceScript:

Public Member Functions

 ~PlayerChoiceScript ()
 
virtual void OnResponse (WorldObject *object, Player *player, PlayerChoice const *choice, PlayerChoiceResponse const *response, uint16 clientIdentifier)
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Protected Member Functions

 PlayerChoiceScript (char const *name) noexcept
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name) noexcept
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 993 of file ScriptMgr.h.

Constructor & Destructor Documentation

◆ PlayerChoiceScript()

PlayerChoiceScript::PlayerChoiceScript ( char const *  name)
explicitprotectednoexcept

Definition at line 3237 of file ScriptMgr.cpp.

+ Here is the call graph for this function:

◆ ~PlayerChoiceScript()

PlayerChoiceScript::~PlayerChoiceScript ( )
default

Member Function Documentation

◆ OnResponse()

void PlayerChoiceScript::OnResponse ( WorldObject object,
Player player,
PlayerChoice const *  choice,
PlayerChoiceResponse const *  response,
uint16  clientIdentifier 
)
virtual
Parameters
objectSource object of the PlayerChoice (can be nullptr)
playerPlayer making the choice
choiceDatabase template of PlayerChoice
responseDatabase template of selected PlayerChoice response
clientIdentifierDynamically generated identifier of the response, changes every time PlayerChoice is sent to player

Reimplemented in playerchoice_a_weapon_you_can_hold_priest, and playerchoice_weapons_of_legend_hunter.

Definition at line 3245 of file ScriptMgr.cpp.


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