diff options
author | MitchesD <majklprofik@seznam.cz> | 2015-10-10 15:17:25 +0200 |
---|---|---|
committer | MitchesD <majklprofik@seznam.cz> | 2015-10-10 15:17:25 +0200 |
commit | 4e2dd6ee0ba1663df04e9fd36bc9ae616321e2a3 (patch) | |
tree | d8f5c3369e3a401fe5dbf04c41eb96d913dc6a58 /src/server/game/Instances/InstanceScript.cpp | |
parent | 88ebff08f33b1b0d0ee00b951005cb434dea56e7 (diff) | |
parent | 1ffec02d760fe88deb4ccce0d13bce344a20bd15 (diff) |
Merge pull request #15692 from ShinDarth/instance
Scripts/Commands: enhanced .instance get/setbossstate commands
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rw-r--r-- | src/server/game/Instances/InstanceScript.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 5d44f3ec696..a8cf42ea49e 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -652,3 +652,25 @@ void InstanceScript::UpdateEncounterState(EncounterCreditType type, uint32 credi } } } + +std::string InstanceScript::GetBossStateName(uint8 state) +{ + // See enum EncounterState in InstanceScript.h + switch (state) + { + case NOT_STARTED: + return "NOT_STARTED"; + case IN_PROGRESS: + return "IN_PROGRESS"; + case FAIL: + return "FAIL"; + case DONE: + return "DONE"; + case SPECIAL: + return "SPECIAL"; + case TO_BE_DECIDED: + return "TO_BE_DECIDED"; + default: + return "INVALID"; + } +} |