OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FlatHirelings Class Reference

#include <NPC.h>

Public Member Functions

void Prepare ()
 
size_t Size () const
 
bool IsFollower (size_t index) const
 
NPCDataGet (size_t index) const
 
NPCSacrificeStatusGetSacrificeStatus (size_t index) const
 

Private Attributes

std::array< int8_t, 1024 > ids = {{}}
 
size_t count = 0
 

Member Function Documentation

◆ Get()

NPCData * FlatHirelings::Get ( size_t  index) const
Parameters
indexHireling index.
Returns
Associated NPCData.

◆ GetSacrificeStatus()

NPCSacrificeStatus * FlatHirelings::GetSacrificeStatus ( size_t  index) const
Parameters
indexHireling index.
Returns
Associated NPCDarkSacrificeStatus. Returns null for followers.

◆ IsFollower()

bool FlatHirelings::IsFollower ( size_t  index) const
Parameters
indexHireling index.
Returns
Whether a hireling is actually a follower (doesn't count towards the total hireling count, e.g. Margaret the guide on Emerald island).

◆ Prepare()

void FlatHirelings::Prepare ( )

Populates this structure.

◆ Size()

size_t FlatHirelings::Size ( ) const
inline
Returns
Total number of hirelings in this structure.

Member Data Documentation

◆ count

size_t FlatHirelings::count = 0
private

Number of valid ids in the array above.

◆ ids

std::array<int8_t, 1024> FlatHirelings::ids = {{}}
private

Hireling / follower NPC ids. If 0 or 1, then it's an index into pParty->pHirelings. If 2 or more, then you have to subtract 2 to get an index into pNPCStats->pNewNPCData.


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