TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CUFProfile Struct Reference

Represents a CompactUnitFrame profile. More...

#include <Player.h>

Public Member Functions

 CUFProfile ()
 
 CUFProfile (const std::string &name, uint16 frameHeight, uint16 frameWidth, uint8 sortBy, uint8 healthText, uint32 boolOptions, uint8 topPoint, uint8 bottomPoint, uint8 leftPoint, uint16 topOffset, uint16 bottomOffset, uint16 leftOffset)
 

Public Attributes

std::string ProfileName
 
uint16 FrameHeight
 
uint16 FrameWidth
 
uint8 SortBy
 
uint8 HealthText
 
uint8 TopPoint
 
uint8 BottomPoint
 
uint8 LeftPoint
 
uint16 TopOffset
 
uint16 BottomOffset
 
uint16 LeftOffset
 
std::bitset
< CUF_BOOL_OPTIONS_COUNT
BoolOptions
 

Detailed Description

Represents a CompactUnitFrame profile.

Constructor & Destructor Documentation

CUFProfile::CUFProfile ( )
inline
241  : ProfileName(), BoolOptions() // might want to change default value for options
242  {
243  FrameHeight = 0;
244  FrameWidth = 0;
245  SortBy = 0;
246  HealthText = 0;
247  TopPoint = 0;
248  BottomPoint = 0;
249  LeftPoint = 0;
250  TopOffset = 0;
251  BottomOffset = 0;
252  LeftOffset = 0;
253  }
uint8 SortBy
Definition: Player.h:274
uint16 LeftOffset
Definition: Player.h:285
uint16 TopOffset
Definition: Player.h:283
uint16 FrameWidth
Definition: Player.h:273
std::bitset< CUF_BOOL_OPTIONS_COUNT > BoolOptions
Definition: Player.h:287
uint16 BottomOffset
Definition: Player.h:284
uint8 BottomPoint
Definition: Player.h:279
uint8 HealthText
Definition: Player.h:275
uint8 TopPoint
Definition: Player.h:278
uint16 FrameHeight
Definition: Player.h:272
uint8 LeftPoint
Definition: Player.h:280
std::string ProfileName
Definition: Player.h:271
CUFProfile::CUFProfile ( const std::string &  name,
uint16  frameHeight,
uint16  frameWidth,
uint8  sortBy,
uint8  healthText,
uint32  boolOptions,
uint8  topPoint,
uint8  bottomPoint,
uint8  leftPoint,
uint16  topOffset,
uint16  bottomOffset,
uint16  leftOffset 
)
inline
257  : ProfileName(name), BoolOptions(int(boolOptions))
258  {
259  FrameHeight = frameHeight;
260  FrameWidth = frameWidth;
261  SortBy = sortBy;
262  HealthText = healthText;
263  TopPoint = topPoint;
264  BottomPoint = bottomPoint;
265  LeftPoint = leftPoint;
266  TopOffset = topOffset;
267  BottomOffset = bottomOffset;
268  LeftOffset = leftOffset;
269  }
uint8 SortBy
Definition: Player.h:274
uint16 LeftOffset
Definition: Player.h:285
uint16 TopOffset
Definition: Player.h:283
uint16 FrameWidth
Definition: Player.h:273
std::bitset< CUF_BOOL_OPTIONS_COUNT > BoolOptions
Definition: Player.h:287
uint16 BottomOffset
Definition: Player.h:284
uint8 BottomPoint
Definition: Player.h:279
uint8 HealthText
Definition: Player.h:275
uint8 TopPoint
Definition: Player.h:278
uint16 FrameHeight
Definition: Player.h:272
uint8 LeftPoint
Definition: Player.h:280
std::string ProfileName
Definition: Player.h:271

Member Data Documentation

std::bitset<CUF_BOOL_OPTIONS_COUNT> CUFProfile::BoolOptions
uint16 CUFProfile::BottomOffset
uint8 CUFProfile::BottomPoint
uint16 CUFProfile::FrameHeight
uint16 CUFProfile::FrameWidth
uint8 CUFProfile::HealthText
uint16 CUFProfile::LeftOffset
uint8 CUFProfile::LeftPoint
std::string CUFProfile::ProfileName
uint8 CUFProfile::SortBy
uint16 CUFProfile::TopOffset
uint8 CUFProfile::TopPoint

The documentation for this struct was generated from the following file: