TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Garrison.h File Reference
#include "Player.h"
#include "GarrisonPackets.h"
+ Include dependency graph for Garrison.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Garrison
 
struct  Garrison::Building
 
struct  Garrison::Plot
 
struct  Garrison::Follower
 

Enumerations

enum  GarrisonFactionIndex { GARRISON_FACTION_INDEX_HORDE = 0, GARRISON_FACTION_INDEX_ALLIANCE = 1 }
 
enum  GarrisonBuildingFlags { GARRISON_BUILDING_FLAG_NEEDS_PLAN = 0x1 }
 
enum  GarrisonFollowerFlags { GARRISON_FOLLOWER_FLAG_UNIQUE = 0x1 }
 
enum  GarrisonFollowerType { FOLLOWER_TYPE_GARRISON = 1, FOLLOWER_TYPE_SHIPYARD = 2 }
 
enum  GarrisonAbilityFlags {
  GARRISON_ABILITY_FLAG_TRAIT = 0x01, GARRISON_ABILITY_CANNOT_ROLL = 0x02, GARRISON_ABILITY_HORDE_ONLY = 0x04, GARRISON_ABILITY_ALLIANCE_ONLY = 0x08,
  GARRISON_ABILITY_FLAG_CANNOT_REMOVE = 0x10, GARRISON_ABILITY_FLAG_EXCLUSIVE = 0x20
}
 
enum  GarrisonError {
  GARRISON_SUCCESS = 0, GARRISON_ERROR_INVALID_PLOT = 1, GARRISON_ERROR_INVALID_BUILDINGID = 2, GARRISON_ERROR_INVALID_PLOT_BUILDING = 7,
  GARRISON_ERROR_NO_BUILDING = 8, GARRISON_ERROR_SPECIALIZATION_KNOWN = 19, GARRISON_ERROR_BLUEPRINT_KNOWN = 21, GARRISON_ERROR_BLUEPRINT_NOT_KNOWN = 22,
  GARRISON_ERROR_BUILDING_EXISTS = 24, GARRISON_ERROR_NOT_ENOUGH_CURRENCY = 46, GARRISON_ERROR_NOT_ENOUGH_GOLD = 47, GARRISON_GENERIC_UNKNOWN_ERROR = 255
}
 
enum  GarrisonFollowerStatus { FOLLOWER_STATUS_FAVORITE = 0x01, FOLLOWER_STATUS_EXHAUSTED = 0x02, FOLLOWER_STATUS_INACTIVE = 0x04 }
 

Enumeration Type Documentation

Enumerator
GARRISON_ABILITY_FLAG_TRAIT 
GARRISON_ABILITY_CANNOT_ROLL 
GARRISON_ABILITY_HORDE_ONLY 
GARRISON_ABILITY_ALLIANCE_ONLY 
GARRISON_ABILITY_FLAG_CANNOT_REMOVE 
GARRISON_ABILITY_FLAG_EXCLUSIVE 
47 {
54 };
Definition: Garrison.h:49
Definition: Garrison.h:48
Definition: Garrison.h:51
Definition: Garrison.h:50
Definition: Garrison.h:52
Definition: Garrison.h:53
Enumerator
GARRISON_BUILDING_FLAG_NEEDS_PLAN 
31 {
33 };
Definition: Garrison.h:32
Enumerator
GARRISON_SUCCESS 
GARRISON_ERROR_INVALID_PLOT 
GARRISON_ERROR_INVALID_BUILDINGID 
GARRISON_ERROR_INVALID_PLOT_BUILDING 
GARRISON_ERROR_NO_BUILDING 
GARRISON_ERROR_SPECIALIZATION_KNOWN 
GARRISON_ERROR_BLUEPRINT_KNOWN 
GARRISON_ERROR_BLUEPRINT_NOT_KNOWN 
GARRISON_ERROR_BUILDING_EXISTS 
GARRISON_ERROR_NOT_ENOUGH_CURRENCY 
GARRISON_ERROR_NOT_ENOUGH_GOLD 
GARRISON_GENERIC_UNKNOWN_ERROR 
57 {
58  GARRISON_SUCCESS = 0,
69 
70  GARRISON_GENERIC_UNKNOWN_ERROR = 255 // custom value for packets whose handlers only check if error != 0
71 };
Definition: Garrison.h:60
Definition: Garrison.h:64
Definition: Garrison.h:70
Definition: Garrison.h:66
Definition: Garrison.h:58
Definition: Garrison.h:68
Definition: Garrison.h:65
Definition: Garrison.h:67
Definition: Garrison.h:61
Definition: Garrison.h:62
Definition: Garrison.h:59
Definition: Garrison.h:63
Enumerator
GARRISON_FACTION_INDEX_HORDE 
GARRISON_FACTION_INDEX_ALLIANCE 
25 {
28 };
Definition: Garrison.h:27
Definition: Garrison.h:26
Enumerator
GARRISON_FOLLOWER_FLAG_UNIQUE 
36 {
38 };
Definition: Garrison.h:37
Enumerator
FOLLOWER_STATUS_FAVORITE 
FOLLOWER_STATUS_EXHAUSTED 
FOLLOWER_STATUS_INACTIVE 
74 {
78 };
Definition: Garrison.h:76
Definition: Garrison.h:75
Definition: Garrison.h:77
Enumerator
FOLLOWER_TYPE_GARRISON 
FOLLOWER_TYPE_SHIPYARD 
41 {
44 };
Definition: Garrison.h:43
Definition: Garrison.h:42