OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
NPC.h File Reference
#include <vector>
#include <cstdint>
#include <string>
#include "Utility/IndexedArray.h"
#include "Engine/Objects/NPCEnums.h"
#include "Engine/Objects/CharacterEnums.h"

Classes

class  FlatHirelings
 

Enumerations

enum class  NpcType { NPC_TYPE_QUEST = 1 , NPC_TYPE_HIREABLE = 2 }
 

Functions

bool CheckPortretAgainstSex (int a1, CharacterSex)
 
bool PartyHasDragon ()
 
bool CheckHiredNPCSpeciality (NpcProfession prof)
 
int UseNPCSkill (NpcProfession profession, int id)
 
const std::string & GetProfessionActionText (NpcProfession prof)
 
NPCDatagetNPCData (int npcId)
 
NpcType getNPCType (int npcId)
 

Enumeration Type Documentation

◆ NpcType

enum class NpcType
strong
Enumerator
NPC_TYPE_QUEST 
NPC_TYPE_HIREABLE 

Function Documentation

◆ CheckHiredNPCSpeciality()

bool CheckHiredNPCSpeciality ( NpcProfession  prof)

◆ CheckPortretAgainstSex()

bool CheckPortretAgainstSex ( int  a1,
CharacterSex   
)
inline

◆ getNPCData()

NPCData * getNPCData ( int  npcId)
Original binary offset:
0x4459F9
Parameters
npcIdIf positive, means ID of NPC (quest or hireable). If negative, then it's absolute value minus one is index of party hireling.
Returns
Pointer to NPC data structure

◆ getNPCType()

NpcType getNPCType ( int  npcId)
Original binary offset:
0x445C8B

◆ GetProfessionActionText()

const std::string & GetProfessionActionText ( NpcProfession  prof)

◆ PartyHasDragon()

bool PartyHasDragon ( )

◆ UseNPCSkill()

int UseNPCSkill ( NpcProfession  profession,
int  id 
)