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

#include <AchievementMgr.h>

Public Types

typedef std::vector
< AchievementCriteriaData
Storage
 

Public Member Functions

 AchievementCriteriaDataSet ()
 
void Add (AchievementCriteriaData const &data)
 
bool Meets (Player const *source, Unit const *target, uint32 miscValue=0) const
 
void SetCriteriaId (uint32 id)
 

Private Attributes

uint32 criteria_id
 
Storage storage
 

Member Typedef Documentation

Constructor & Destructor Documentation

AchievementCriteriaDataSet::AchievementCriteriaDataSet ( )
inline
239 : criteria_id(0) { }
uint32 criteria_id
Definition: AchievementMgr.h:245

Member Function Documentation

void AchievementCriteriaDataSet::Add ( AchievementCriteriaData const data)
inline
241 { storage.push_back(data); }
Storage storage
Definition: AchievementMgr.h:246

+ Here is the caller graph for this function:

bool AchievementCriteriaDataSet::Meets ( Player const source,
Unit const target,
uint32  miscValue = 0 
) const
387 {
388  for (AchievementCriteriaData const& data : storage)
389  if (!data.Meets(criteria_id, source, target, miscValue))
390  return false;
391 
392  return true;
393 }
Storage storage
Definition: AchievementMgr.h:246
Definition: AchievementMgr.h:115
uint32 criteria_id
Definition: AchievementMgr.h:245
void AchievementCriteriaDataSet::SetCriteriaId ( uint32  id)
inline
243 {criteria_id = id;}
uint32 criteria_id
Definition: AchievementMgr.h:245

+ Here is the caller graph for this function:

Member Data Documentation

uint32 AchievementCriteriaDataSet::criteria_id
private
Storage AchievementCriteriaDataSet::storage
private

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