![]() |
TrinityCore
|
#include <Scenario.h>
Inheritance diagram for Scenario:Public Member Functions | |
| Scenario (Map *map, ScenarioData const *scenarioData) | |
| ~Scenario () | |
| void | Reset () override |
| void | SetStep (ScenarioStepEntry const *step) |
| virtual void | CompleteStep (ScenarioStepEntry const *step) |
| virtual void | CompleteScenario () |
| virtual void | OnPlayerEnter (Player *player) |
| virtual void | OnPlayerExit (Player *player) |
| virtual void | Update (uint32) |
| bool | IsComplete () const |
| bool | IsCompletedStep (ScenarioStepEntry const *step) |
| void | SetStepState (ScenarioStepEntry const *step, ScenarioStepState state) |
| ScenarioEntry const * | GetEntry () const |
| ScenarioStepState | GetStepState (ScenarioStepEntry const *step) const |
| ScenarioStepEntry const * | GetStep () const |
| ScenarioStepEntry const * | GetFirstStep () const |
| ScenarioStepEntry const * | GetLastStep () const |
| void | SendScenarioState (Player const *player) const |
| void | SendBootPlayer (Player const *player) const |
Public Member Functions inherited from CriteriaHandler | |
| CriteriaHandler () | |
| virtual | ~CriteriaHandler () |
| CriteriaHandler (CriteriaHandler const &right)=delete | |
| CriteriaHandler (CriteriaHandler &&right)=delete | |
| CriteriaHandler & | operator= (CriteriaHandler const &right)=delete |
| CriteriaHandler & | operator= (CriteriaHandler &&right)=delete |
| void | UpdateCriteria (CriteriaType type, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, WorldObject const *ref=nullptr, Player *referencePlayer=nullptr) |
| void | UpdateTimedCriteria (Milliseconds timeDiff) |
| void | StartCriteria (CriteriaStartEvent startEvent, uint32 entry, Milliseconds timeLost=Milliseconds::zero()) |
| virtual void | FailCriteria (CriteriaFailEvent failEvent, uint32 asset) |
Protected Member Functions | |
| void | SendCriteriaUpdate (Criteria const *criteria, CriteriaProgress const *progress, Seconds timeElapsed, bool timedCompleted) const override |
| void | SendCriteriaProgressRemoved (uint32) override |
| bool | CanUpdateCriteriaTree (Criteria const *criteria, CriteriaTree const *tree, Player *referencePlayer) const override |
| bool | CanCompleteCriteriaTree (CriteriaTree const *tree) override |
| void | CompletedCriteriaTree (CriteriaTree const *tree, Player *referencePlayer) override |
| void | AfterCriteriaTreeUpdate (CriteriaTree const *, Player *) override |
| void | DoForAllPlayers (std::function< void(Player *)> const &worker) const |
| void | SendPacket (WorldPacket const *data) const override |
| void | SendAllData (Player const *) const override |
| void | BuildScenarioStateFor (Player const *player, WorldPackets::Scenario::ScenarioState *scenarioState) const |
| std::vector< WorldPackets::Scenario::BonusObjectiveData > | GetBonusObjectivesData () const |
| std::vector< WorldPackets::Achievement::CriteriaProgress > | GetCriteriasProgressFor (Player const *player) const |
| CriteriaList const & | GetCriteriaByType (CriteriaType type, uint32 asset) const override |
Protected Member Functions inherited from CriteriaHandler | |
| void | UpdateCriteria (Criteria const *criteria, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, WorldObject const *ref=nullptr, Player *referencePlayer=nullptr) |
| CriteriaProgress * | GetCriteriaProgress (Criteria const *entry) |
| void | SetCriteriaProgress (Criteria const *criteria, uint64 changeValue, Player *referencePlayer, ProgressType progressType=PROGRESS_SET) |
| void | RemoveCriteriaProgress (Criteria const *criteria) |
| bool | IsCompletedCriteriaTree (CriteriaTree const *tree) |
| bool | IsCompletedCriteria (Criteria const *criteria, uint64 requiredAmount) |
| bool | CanUpdateCriteria (Criteria const *criteria, CriteriaTreeList const *trees, uint64 miscValue1, uint64 miscValue2, uint64 miscValue3, WorldObject const *ref, Player *referencePlayer) |
| bool | ConditionsSatisfied (Criteria const *criteria, Player *referencePlayer) const |
| bool | RequirementsSatisfied (Criteria const *criteria, uint64 miscValue1, uint64 miscValue2, uint64 miscValue3, WorldObject const *ref, Player *referencePlayer) const |
| virtual bool | RequiredAchievementSatisfied (uint32) const |
| bool | ModifierTreeSatisfied (ModifierTreeNode const *parent, uint64 miscValue1, uint64 miscValue2, WorldObject const *ref, Player *referencePlayer) const |
| bool | ModifierSatisfied (ModifierTreeEntry const *modifier, uint64 miscValue1, uint64 miscValue2, WorldObject const *ref, Player *referencePlayer) const |
| virtual std::string | GetOwnerInfo () const =0 |
Protected Attributes | |
| Map const * | _map |
| GuidUnorderedSet | _players |
| ScenarioData const * | _data |
Protected Attributes inherited from CriteriaHandler | |
| CriteriaProgressMap | _criteriaProgress |
| std::unordered_map< uint32, Milliseconds > | _startedCriteria |
Private Attributes | |
| ObjectGuid const | _guid |
| ScenarioStepEntry const * | _currentstep |
| std::map< ScenarioStepEntry const *, ScenarioStepState > | _stepStates |
Definition at line 52 of file Scenario.h.
| Scenario::Scenario | ( | Map * | map, |
| ScenarioData const * | scenarioData | ||
| ) |
| Scenario::~Scenario | ( | ) |
|
inlineoverrideprotectedvirtual |
Reimplemented from CriteriaHandler.
Definition at line 90 of file Scenario.h.
|
protected |
Definition at line 252 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Reimplemented from CriteriaHandler.
Definition at line 197 of file Scenario.cpp.
Here is the call graph for this function:
|
overrideprotectedvirtual |
Reimplemented from CriteriaHandler.
Definition at line 178 of file Scenario.cpp.
Here is the call graph for this function:
|
overrideprotectedvirtual |
Implements CriteriaHandler.
Definition at line 218 of file Scenario.cpp.
Here is the call graph for this function:
|
virtual |
Definition at line 88 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 58 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 237 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 320 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Implements CriteriaHandler.
Definition at line 357 of file Scenario.cpp.
|
protected |
Definition at line 340 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| ScenarioEntry const * Scenario::GetEntry | ( | ) | const |
| ScenarioStepEntry const * Scenario::GetFirstStep | ( | ) | const |
| ScenarioStepEntry const * Scenario::GetLastStep | ( | ) | const |
|
inline |
| ScenarioStepState Scenario::GetStepState | ( | ScenarioStepEntry const * | step | ) | const |
| bool Scenario::IsComplete | ( | ) | const |
Definition at line 130 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Scenario::IsCompletedStep | ( | ScenarioStepEntry const * | step | ) |
Definition at line 228 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 118 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
overridevirtual |
Reimplemented from CriteriaHandler.
Definition at line 52 of file Scenario.cpp.
Here is the call graph for this function:
|
inlineoverrideprotectedvirtual |
Implements CriteriaHandler.
Definition at line 95 of file Scenario.h.
| void Scenario::SendBootPlayer | ( | Player const * | player | ) | const |
Definition at line 362 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverrideprotectedvirtual |
Implements CriteriaHandler.
Definition at line 85 of file Scenario.h.
|
overrideprotectedvirtual |
Implements CriteriaHandler.
Definition at line 158 of file Scenario.cpp.
Here is the call graph for this function:
|
overrideprotectedvirtual |
Implements CriteriaHandler.
Definition at line 244 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Scenario::SendScenarioState | ( | Player const * | player | ) | const |
Definition at line 313 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Scenario::SetStep | ( | ScenarioStepEntry const * | step | ) |
Definition at line 99 of file Scenario.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inlinevirtual |
Definition at line 66 of file Scenario.h.
|
private |
Definition at line 107 of file Scenario.h.
|
protected |
Definition at line 103 of file Scenario.h.
|
private |
Definition at line 106 of file Scenario.h.
|
protected |
Definition at line 81 of file Scenario.h.
|
protected |
Definition at line 82 of file Scenario.h.
|
private |
Definition at line 108 of file Scenario.h.