TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ReputationMgr.h File Reference
#include "Common.h"
#include "SharedDefines.h"
#include "Language.h"
#include "DBCStructure.h"
#include "QueryResult.h"
#include <map>
+ Include dependency graph for ReputationMgr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FactionState
 
class  ReputationMgr
 

Typedefs

typedef uint32 RepListID
 
typedef std::map< RepListID,
FactionState
FactionStateList
 
typedef std::map< uint32,
ReputationRank
ForcedReactions
 

Enumerations

enum  FactionFlags {
  FACTION_FLAG_NONE = 0x00, FACTION_FLAG_VISIBLE = 0x01, FACTION_FLAG_AT_WAR = 0x02, FACTION_FLAG_HIDDEN = 0x04,
  FACTION_FLAG_INVISIBLE_FORCED = 0x08, FACTION_FLAG_PEACE_FORCED = 0x10, FACTION_FLAG_INACTIVE = 0x20, FACTION_FLAG_RIVAL = 0x40,
  FACTION_FLAG_SPECIAL = 0x80
}
 

Variables

static uint32 ReputationRankStrIndex [MAX_REPUTATION_RANK]
 

Typedef Documentation

typedef uint32 RepListID

Enumeration Type Documentation

Enumerator
FACTION_FLAG_NONE 
FACTION_FLAG_VISIBLE 
FACTION_FLAG_AT_WAR 
FACTION_FLAG_HIDDEN 
FACTION_FLAG_INVISIBLE_FORCED 
FACTION_FLAG_PEACE_FORCED 
FACTION_FLAG_INACTIVE 
FACTION_FLAG_RIVAL 
FACTION_FLAG_SPECIAL 
36 {
37  FACTION_FLAG_NONE = 0x00, // no faction flag
38  FACTION_FLAG_VISIBLE = 0x01, // makes visible in client (set or can be set at interaction with target of this faction)
39  FACTION_FLAG_AT_WAR = 0x02, // enable AtWar-button in client. player controlled (except opposition team always war state), Flag only set on initial creation
40  FACTION_FLAG_HIDDEN = 0x04, // hidden faction from reputation pane in client (player can gain reputation, but this update not sent to client)
41  FACTION_FLAG_INVISIBLE_FORCED = 0x08, // always overwrite FACTION_FLAG_VISIBLE and hide faction in rep.list, used for hide opposite team factions
42  FACTION_FLAG_PEACE_FORCED = 0x10, // always overwrite FACTION_FLAG_AT_WAR, used for prevent war with own team factions
43  FACTION_FLAG_INACTIVE = 0x20, // player controlled, state stored in characters.data (CMSG_SET_FACTION_INACTIVE)
44  FACTION_FLAG_RIVAL = 0x40, // flag for the two competing outland factions
45  FACTION_FLAG_SPECIAL = 0x80 // horde and alliance home cities and their northrend allies have this flag
46 };
Definition: ReputationMgr.h:41
Definition: ReputationMgr.h:43
Definition: ReputationMgr.h:39
Definition: ReputationMgr.h:37
Definition: ReputationMgr.h:42
Definition: ReputationMgr.h:40
Definition: ReputationMgr.h:45
Definition: ReputationMgr.h:44
Definition: ReputationMgr.h:38

Variable Documentation

uint32 ReputationRankStrIndex[MAX_REPUTATION_RANK]
static
Initial value:
=
{
}
Definition: Language.h:352
Definition: Language.h:346
Definition: Language.h:348
Definition: Language.h:351
Definition: Language.h:347
Definition: Language.h:350
Definition: Language.h:349
Definition: Language.h:353