diff options
author | Tartalo <none@none> | 2010-04-11 17:50:30 +0200 |
---|---|---|
committer | Tartalo <none@none> | 2010-04-11 17:50:30 +0200 |
commit | c502f226cb43e52b692dca107154ffdd038b4ff8 (patch) | |
tree | c96b513255a5f936dc85c7e3d71075d4e614395b | |
parent | 7993aa21e5754c8c0609d63cab78239369daadaa (diff) |
InstanceData: Add function to check wether server allows two side groups
--HG--
branch : trunk
-rw-r--r-- | src/game/InstanceData.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/InstanceData.h b/src/game/InstanceData.h index eb4581a84b9..a54a6cdd1e2 100644 --- a/src/game/InstanceData.h +++ b/src/game/InstanceData.h @@ -22,6 +22,7 @@ #define TRINITY_INSTANCE_DATA_H #include "ZoneScript.h" +#include "World.h" //#include "GameObject.h" //#include "Map.h" @@ -164,6 +165,9 @@ class InstanceData : public ZoneScript // Remove Auras due to Spell on all players in instance void DoRemoveAurasDueToSpellOnPlayers(uint32 spell); + // Return wether server allow two side groups or not + bool ServerAllowsTwoSideGroups() { return sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP); } + virtual bool SetBossState(uint32 id, EncounterState state); EncounterState GetBossState(uint32 id) const { return id < bosses.size() ? bosses[id].state : TO_BE_DECIDED; } const BossBoundaryMap * GetBossBoundary(uint32 id) const { return id < bosses.size() ? &bosses[id].boundary : NULL; } |