TrinityCore
InstanceScript.h File Reference
#include "ZoneScript.h"
#include "Common.h"
#include "Duration.h"
#include <iosfwd>
#include <map>
#include <set>
+ Include dependency graph for InstanceScript.h:

Go to the source code of this file.

Classes

struct  DoorData
 
struct  BossBoundaryEntry
 
struct  BossBoundaryData
 
struct  MinionData
 
struct  ObjectData
 
struct  BossInfo
 
struct  DoorInfo
 
struct  MinionInfo
 
class  InstanceScript
 

Macros

#define OUT_SAVE_INST_DATA   TC_LOG_DEBUG("scripts", "Saving Instance Data for Instance %s (Map %d, Instance Id %d)", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())
 
#define OUT_SAVE_INST_DATA_COMPLETE   TC_LOG_DEBUG("scripts", "Saving Instance Data for Instance %s (Map %d, Instance Id %d) completed.", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())
 
#define OUT_LOAD_INST_DATA(a)   TC_LOG_DEBUG("scripts", "Loading Instance Data for Instance %s (Map %d, Instance Id %d). Input is '%s'", instance->GetMapName(), instance->GetId(), instance->GetInstanceId(), a)
 
#define OUT_LOAD_INST_DATA_COMPLETE   TC_LOG_DEBUG("scripts", "Instance Data Load for Instance %s (Map %d, Instance Id: %d) is complete.", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())
 
#define OUT_LOAD_INST_DATA_FAIL   TC_LOG_ERROR("scripts", "Unable to load Instance Data for Instance %s (Map %d, Instance Id: %d).", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())
 

Typedefs

typedef std::vector< AreaBoundary const * > CreatureBoundary
 
typedef std::multimap< uint32, DoorInfoDoorInfoMap
 
typedef std::pair< DoorInfoMap::const_iterator, DoorInfoMap::const_iterator > DoorInfoMapBounds
 
typedef std::map< uint32, MinionInfoMinionInfoMap
 
typedef std::map< uint32, ObjectGuidObjectGuidMap
 
typedef std::map< uint32, uint32ObjectInfoMap
 

Enumerations

enum  EncounterFrameType {
  EncounterFrameType::ENCOUNTER_FRAME_SET_COMBAT_RES_LIMIT = 0, EncounterFrameType::ENCOUNTER_FRAME_RESET_COMBAT_RES_LIMIT = 1, EncounterFrameType::ENCOUNTER_FRAME_ENGAGE = 2, EncounterFrameType::ENCOUNTER_FRAME_DISENGAGE = 3,
  EncounterFrameType::ENCOUNTER_FRAME_UPDATE_PRIORITY = 4, EncounterFrameType::ENCOUNTER_FRAME_ADD_TIMER = 5, EncounterFrameType::ENCOUNTER_FRAME_ENABLE_OBJECTIVE = 6, EncounterFrameType::ENCOUNTER_FRAME_UPDATE_OBJECTIVE = 7,
  EncounterFrameType::ENCOUNTER_FRAME_DISABLE_OBJECTIVE = 8, EncounterFrameType::ENCOUNTER_FRAME_UNK7 = 9, EncounterFrameType::ENCOUNTER_FRAME_ADD_COMBAT_RES_LIMIT = 10
}
 
enum  EncounterState {
  NOT_STARTED = 0, IN_PROGRESS = 1, FAIL = 2, DONE = 3,
  SPECIAL = 4, TO_BE_DECIDED = 5
}
 
enum  DoorType { DOOR_TYPE_ROOM = 0, DOOR_TYPE_PASSAGE = 1, DOOR_TYPE_SPAWN_HOLE = 2, MAX_DOOR_TYPES }
 

Macro Definition Documentation

◆ OUT_LOAD_INST_DATA

#define OUT_LOAD_INST_DATA (   a)    TC_LOG_DEBUG("scripts", "Loading Instance Data for Instance %s (Map %d, Instance Id %d). Input is '%s'", instance->GetMapName(), instance->GetId(), instance->GetInstanceId(), a)

◆ OUT_LOAD_INST_DATA_COMPLETE

#define OUT_LOAD_INST_DATA_COMPLETE   TC_LOG_DEBUG("scripts", "Instance Data Load for Instance %s (Map %d, Instance Id: %d) is complete.", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())

◆ OUT_LOAD_INST_DATA_FAIL

#define OUT_LOAD_INST_DATA_FAIL   TC_LOG_ERROR("scripts", "Unable to load Instance Data for Instance %s (Map %d, Instance Id: %d).", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())

◆ OUT_SAVE_INST_DATA

#define OUT_SAVE_INST_DATA   TC_LOG_DEBUG("scripts", "Saving Instance Data for Instance %s (Map %d, Instance Id %d)", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())

◆ OUT_SAVE_INST_DATA_COMPLETE

#define OUT_SAVE_INST_DATA_COMPLETE   TC_LOG_DEBUG("scripts", "Saving Instance Data for Instance %s (Map %d, Instance Id %d) completed.", instance->GetMapName(), instance->GetId(), instance->GetInstanceId())

Typedef Documentation

◆ CreatureBoundary

typedef std::vector<AreaBoundary const*> CreatureBoundary

◆ DoorInfoMap

typedef std::multimap<uint32 , DoorInfo> DoorInfoMap

◆ DoorInfoMapBounds

typedef std::pair<DoorInfoMap::const_iterator, DoorInfoMap::const_iterator> DoorInfoMapBounds

◆ MinionInfoMap

typedef std::map<uint32 , MinionInfo> MinionInfoMap

◆ ObjectGuidMap

typedef std::map<uint32 , ObjectGuid > ObjectGuidMap

◆ ObjectInfoMap

typedef std::map<uint32 , uint32 > ObjectInfoMap

Enumeration Type Documentation

◆ DoorType

enum DoorType
Enumerator
DOOR_TYPE_ROOM 
DOOR_TYPE_PASSAGE 
DOOR_TYPE_SPAWN_HOLE 
MAX_DOOR_TYPES 
73 {
74  DOOR_TYPE_ROOM = 0, // Door can open if encounter is not in progress
75  DOOR_TYPE_PASSAGE = 1, // Door can open if encounter is done
76  DOOR_TYPE_SPAWN_HOLE = 2, // Door can open if encounter is in progress, typically used for spawning places
78 };
Definition: InstanceScript.h:75
Definition: InstanceScript.h:74
Definition: InstanceScript.h:77
Definition: InstanceScript.h:76

◆ EncounterFrameType

◆ EncounterState

Enumerator
NOT_STARTED 
IN_PROGRESS 
FAIL 
DONE 
SPECIAL 
TO_BE_DECIDED 
63 {
64  NOT_STARTED = 0,
65  IN_PROGRESS = 1,
66  FAIL = 2,
67  DONE = 3,
68  SPECIAL = 4,
69  TO_BE_DECIDED = 5
70 };
Definition: InstanceScript.h:67
Definition: InstanceScript.h:66
Definition: InstanceScript.h:65
Definition: InstanceScript.h:64
Definition: InstanceScript.h:68
Definition: InstanceScript.h:69