OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
NPC.cpp File Reference
#include "Engine/Objects/NPC.h"
#include <string>
#include "Engine/Engine.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Localization.h"
#include "Engine/Objects/Actor.h"
#include "Engine/Party.h"
#include "Engine/MapEnumFunctions.h"
#include "Engine/Spells/CastSpellInfo.h"
#include "Engine/Tables/NPCTable.h"
#include "GUI/GUIButton.h"
#include "GUI/GUIMessageQueue.h"
#include "GUI/UI/UIStatusBar.h"
#include "Media/Audio/AudioPlayer.h"
#include "Library/Logger/Logger.h"

Functions

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

Variables

static const Segment< ConditionstandardConditionsExcludeDead = {CONDITION_CURSED, CONDITION_UNCONSCIOUS}
 
static const Segment< ConditionstandardConditionsIncludeDead = {CONDITION_CURSED, CONDITION_ERADICATED}
 

Function Documentation

◆ CheckHiredNPCSpeciality()

bool CheckHiredNPCSpeciality ( NpcProfession  prof)

◆ CheckPortretAgainstSex()

bool CheckPortretAgainstSex ( int  portret_num,
int  sex 
)

◆ 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 
)

Variable Documentation

◆ standardConditionsExcludeDead

const Segment<Condition> standardConditionsExcludeDead = {CONDITION_CURSED, CONDITION_UNCONSCIOUS}
static

◆ standardConditionsIncludeDead

const Segment<Condition> standardConditionsIncludeDead = {CONDITION_CURSED, CONDITION_ERADICATED}
static