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

#include <shattered_halls.h>

Public Member Functions

 FactionSpawnerHelper (uint32 allianceEntry, uint32 hordeEntry, const Position &pos)
 
uint32 operator() (uint32 teamID) const
 
Position constGetPos () const
 

Private Attributes

const uint32 _allianceNPC
 
const uint32 _hordeNPC
 
const Position _spawnPos
 

Constructor & Destructor Documentation

FactionSpawnerHelper::FactionSpawnerHelper ( uint32  allianceEntry,
uint32  hordeEntry,
const Position pos 
)
inline
95 : _allianceNPC(allianceEntry), _hordeNPC(hordeEntry), _spawnPos(pos) { }
const uint32 _hordeNPC
Definition: shattered_halls.h:102
const Position _spawnPos
Definition: shattered_halls.h:103
const uint32 _allianceNPC
Definition: shattered_halls.h:101

Member Function Documentation

Position const& FactionSpawnerHelper::GetPos ( ) const
inline
98 { return _spawnPos; }
const Position _spawnPos
Definition: shattered_halls.h:103
uint32 FactionSpawnerHelper::operator() ( uint32  teamID) const
inline
97 { return teamID == ALLIANCE ? _allianceNPC : _hordeNPC; }
Definition: SharedDefines.h:1000
const uint32 _hordeNPC
Definition: shattered_halls.h:102
const uint32 _allianceNPC
Definition: shattered_halls.h:101

Member Data Documentation

const uint32 FactionSpawnerHelper::_allianceNPC
private
const uint32 FactionSpawnerHelper::_hordeNPC
private
const Position FactionSpawnerHelper::_spawnPos
private

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