OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Npc Class Referencefinal

#include <npc.h>

Classes

struct  TransformBack
 

Public Types

enum  GoToHint : uint8_t {
  GT_No , GT_Way , GT_NextFp , GT_EnemyA ,
  GT_Item , GT_Point , GT_EnemyG , GT_Flee
}
 
enum  HitSound : uint8_t { HS_NoSound = 0 , HS_Dead = 1 }
 
enum  CastState : uint8_t {
  CS_NoCast = 0 , CS_Finalize = 1 , CS_Invest_0 = 16 , CS_Invest_1 = 17 ,
  CS_Invest_2 = 18 , CS_Invest_3 = 19 , CS_Invest_4 = 20 , CS_Invest_5 = 21 ,
  CS_Invest_6 = 22 , CS_Invest_Last = 31 , CS_Cast_0 = 32 , CS_Cast_1 = 33 ,
  CS_Cast_2 = 34 , CS_Cast_3 = 35 , CS_Cast_Last = 47 , CS_Emit_0 = 48 ,
  CS_Emit_Last = 63
}
 
enum  BeginCastResult : uint8_t { BC_No , BC_NoMana , BC_Cast , BC_Invest }
 
using JumpStatus = MoveAlgo::JumpStatus
 
using Anim = AnimationSolver::Anim
 

Public Member Functions

 Npc (World &owner, size_t instance, std::string_view waypoint, NpcProcessPolicy aiPolicy=NpcProcessPolicy::AiNormal)
 
 Npc (const Npc &)=delete
 
 ~Npc ()
 
void save (Serialize &fout, size_t id, std::string_view directory)
 
void load (Serialize &fout, size_t id, std::string_view directory)
 
void postValidate ()
 
bool setPosition (float x, float y, float z)
 
bool setPosition (const Tempest::Vec3 &pos)
 
void setDirection (const Tempest::Vec3 &pos)
 
void setDirection (float rotation)
 
void setDirectionY (float rotation)
 
void setRunAngle (float angle)
 
auto transform () const -> Tempest::Matrix4x4
 
auto position () const -> Tempest::Vec3
 
auto cameraBone (bool isFirstPerson=false) const -> Tempest::Vec3
 
auto cameraMatrix (bool isFirstPerson=false) const -> Tempest::Matrix4x4
 
float rotation () const
 
float rotationRad () const
 
float rotationY () const
 
float rotationYRad () const
 
float runAngle () const
 
float fatness () const
 
Bounds bounds () const
 
void stopDlgAnim ()
 
void clearSpeed ()
 
bool resetPositionToTA ()
 
void setProcessPolicy (NpcProcessPolicy t)
 
auto processPolicy () const -> NpcProcessPolicy
 
bool isPlayer () const
 
void setWalkMode (WalkBit m)
 
auto walkMode () const
 
void tick (uint64_t dt)
 
void tickAnimationTags ()
 
bool startClimb (JumpStatus jump)
 
auto world () -> World &
 
float translateY () const
 
auto centerPosition () const -> Tempest::Vec3
 
NpclookAtTarget () const
 
auto portalName () -> std::string_view
 
auto formerPortalName () -> std::string_view
 
float qDistTo (const Tempest::Vec3 pos) const
 
float qDistTo (const WayPoint *p) const
 
float qDistTo (const Npc &p) const
 
float qDistTo (const Interactive &p) const
 
float qDistTo (const Item &p) const
 
void updateAnimation (uint64_t dt, bool force=false)
 
void updateTransform ()
 
std::string_view displayName () const
 
auto displayPosition () const -> Tempest::Vec3
 
void setVisual (std::string_view visual)
 
void setVisual (const Skeleton *visual)
 
bool hasOverlay (std::string_view sk) const
 
bool hasOverlay (const Skeleton *sk) const
 
void addOverlay (std::string_view sk, uint64_t time)
 
void addOverlay (const Skeleton *sk, uint64_t time)
 
void delOverlay (std::string_view sk)
 
void delOverlay (const Skeleton *sk)
 
bool toggleTorch ()
 
void setTorch (bool use)
 
bool isUsingTorch () const
 
void setVisualBody (int32_t headTexNr, int32_t teethTexNr, int32_t bodyVer, int32_t bodyColor, std::string_view body, std::string_view head)
 
void updateArmor ()
 
void setSword (MeshObjects::Mesh &&sword)
 
void setRangedWeapon (MeshObjects::Mesh &&bow)
 
void setShield (MeshObjects::Mesh &&shield)
 
void setMagicWeapon (Effect &&spell)
 
void setSlotItem (MeshObjects::Mesh &&itm, std::string_view slot)
 
void setStateItem (MeshObjects::Mesh &&itm, std::string_view slot)
 
void setAmmoItem (MeshObjects::Mesh &&itm, std::string_view slot)
 
void clearSlotItem (std::string_view slot)
 
void setPhysic (DynamicWorld::NpcItem &&item)
 
void setFatness (float f)
 
void setScale (float x, float y, float z)
 
bool setAnim (Anim a)
 
auto setAnimAngGet (Anim a) -> const Animation::Sequence *
 
auto setAnimAngGet (Anim a, uint8_t comb) -> const Animation::Sequence *
 
void setAnimRotate (int rot)
 
bool setAnimItem (std::string_view scheme, int state)
 
void stopAnim (std::string_view ani)
 
void startFaceAnim (std::string_view anim, float intensity, uint64_t duration)
 
bool stopItemStateAnim ()
 
bool hasAnim (std::string_view scheme) const
 
bool hasSwimAnimations () const
 
bool isFinishingMove () const
 
auto animMoveSpeed (uint64_t dt) const -> Tempest::Vec3
 
bool isJumpAnim () const
 
bool isFlyAnim () const
 
bool isFalling () const
 
bool isFallingDeep () const
 
bool isSlide () const
 
bool isInAir () const
 
bool isStanding () const
 
bool isSwim () const
 
bool isInWater () const
 
bool isDive () const
 
bool isCasting () const
 
void setTalentSkill (Talent t, int32_t lvl)
 
int32_t talentSkill (Talent t) const
 
void invalidateTalentOverlays (Talent t)
 
void invalidateTalentOverlays ()
 
void setTalentValue (Talent t, int32_t lvl)
 
int32_t talentValue (Talent t) const
 
int32_t hitChance (Talent t) const
 
void setRefuseTalk (uint64_t milis)
 
bool isRefuseTalk () const
 
int32_t mageCycle () const
 
bool canSneak () const
 
int32_t attribute (Attribute a) const
 
void changeAttribute (Attribute a, int32_t val, bool allowUnconscious)
 
int32_t protection (Protection p) const
 
void changeProtection (Protection p, int32_t val)
 
uint32_t instanceSymbol () const
 
uint32_t guild () const
 
bool isMonster () const
 
bool isHuman () const
 
void setTrueGuild (int32_t g)
 
int32_t trueGuild () const
 
int32_t magicCyrcle () const
 
int32_t level () const
 
int32_t experience () const
 
int32_t experienceNext () const
 
int32_t learningPoints () const
 
int32_t diveTime () const
 
void setAttitude (Attitude att)
 
Attitude attitude () const
 
bool isFriend () const
 
void setTempAttitude (Attitude att)
 
Attitude tempAttitude () const
 
void startDialog (Npc &other)
 
bool startState (ScriptFn id, std::string_view wp)
 
bool startState (ScriptFn id, std::string_view wp, gtime endTime, bool noFinalize)
 
void clearState (bool noFinalize)
 
BodyState bodyState () const
 
BodyState bodyStateMasked () const
 
bool hasState (BodyState s) const
 
bool hasStateFlag (BodyState flg) const
 
void setToFightMode (const size_t item)
 
void setToFistMode ()
 
void aiPush (AiQueue::AiAction &&a)
 
void resumeAiRoutine ()
 
bool canSwitchWeapon () const
 
bool closeWeapon (bool noAnim)
 
bool drawWeaponFist ()
 
bool drawWeaponMelee ()
 
bool drawWeaponBow ()
 
bool drawMage (uint8_t slot)
 
bool drawSpell (int32_t spell)
 
auto weaponState () const -> WeaponState
 
bool canFinish (Npc &oth)
 
void fistShoot ()
 
bool blockFist ()
 
bool finishingMove ()
 
void swingSword ()
 
bool swingSwordL ()
 
bool swingSwordR ()
 
bool blockSword ()
 
auto beginCastSpell () -> BeginCastResult
 
void endCastSpell (bool playerCtrl=false)
 
void setActiveSpellInfo (int32_t info)
 
int32_t activeSpellLevel () const
 
bool aimBow ()
 
bool shootBow (Interactive *focOverride=nullptr)
 
bool hasAmmunition () const
 
bool isEnemy (const Npc &other) const
 
bool isDead () const
 
bool isLie () const
 
bool isUnconscious () const
 
bool isDown () const
 
bool isAttack () const
 
bool isTalk () const
 
bool isAttackAnim () const
 
bool isPrehit () const
 
bool isImmortal () const
 
void setPerceptionTime (uint64_t time)
 
void setPerceptionEnable (PercType t, size_t fn)
 
void setPerceptionDisable (PercType t)
 
bool perceptionProcess (Npc &pl)
 
bool perceptionProcess (Npc &pl, Npc *victim, float quadDist, PercType perc)
 
bool hasPerc (PercType perc) const
 
uint64_t percNextTime () const
 
auto interactive () const -> Interactive *
 
bool setInteraction (Interactive *id, bool quick=false)
 
void quitInteraction ()
 
void processDefInvTorch ()
 
auto detectedMob () const -> Interactive *
 
void setDetectedMob (Interactive *id)
 
bool isInState (ScriptFn stateFn) const
 
bool isInRoutine (ScriptFn stateFn) const
 
bool wasInState (ScriptFn stateFn) const
 
uint64_t stateTime () const
 
void setStateTime (int64_t time)
 
void addRoutine (gtime s, gtime e, uint32_t callback, std::string_view point)
 
void excRoutine (size_t callback)
 
void multSpeed (float s)
 
bool testMove (const Tempest::Vec3 &pos)
 
bool tryMove (const Tempest::Vec3 &dp)
 
bool tryMove (const Tempest::Vec3 &dp, DynamicWorld::CollisionTest &out)
 
bool tryTranslate (const Tempest::Vec3 &to)
 
bool tryTranslate (const Tempest::Vec3 &to, DynamicWorld::CollisionTest &out)
 
JumpStatus tryJump ()
 
bool hasCollision () const
 
void startDive ()
 
void transformBack ()
 
auto dialogChoices (Npc &player, const std::vector< uint32_t > &except, bool includeImp) -> std::vector< GameScript::DlgChoice >
 
zenkit::INpc & handle ()
 
const std::shared_ptr< zenkit::INpc > & handlePtr () const
 
auto inventory () const -> const Inventory &
 
size_t itemCount (size_t id) const
 
ItemactiveWeapon ()
 
ItemgetItem (size_t id)
 
ItemaddItem (size_t id, size_t amount)
 
ItemaddItem (std::unique_ptr< Item > &&i)
 
ItemtakeItem (Item &i)
 
void onWldItemRemoved (const Item &itm)
 
void delItem (size_t id, uint32_t amount)
 
void useItem (size_t item)
 
void useItem (size_t item, uint8_t slotHint, bool force)
 
void setCurrentItem (size_t item)
 
void unequipItem (size_t item)
 
void addItem (size_t id, Interactive &chest, size_t count=1)
 
void addItem (size_t id, Npc &from, size_t count=1)
 
void moveItem (size_t id, Interactive &to, size_t count=1)
 
void sellItem (size_t id, Npc &to, size_t count=1)
 
void buyItem (size_t id, Npc &from, size_t count=1)
 
void dropItem (size_t id, size_t count=1)
 
void clearInventory ()
 
ItemcurrentArmor ()
 
ItemcurrentMeleeWeapon ()
 
ItemcurrentRangedWeapon ()
 
ItemcurrentShield ()
 
auto mapWeaponBone () const -> Tempest::Vec3
 
auto mapHeadBone () const -> Tempest::Vec3
 
auto mapBone (std::string_view bone) const -> Tempest::Vec3
 
bool turnTo (float dx, float dz, bool noAnim, uint64_t dt)
 
bool rotateTo (float dx, float dz, float speed, AnimationSolver::TurnType anim, uint64_t dt)
 
bool whirlTo (float dx, float dz, float step, uint64_t dt)
 
bool isRotationAllowed () const
 
auto playAnimByName (std::string_view name, BodyState bs) -> const Animation::Sequence *
 
bool checkGoToNpcdistance (const Npc &other)
 
bool isAiQueueEmpty () const
 
bool isAiBusy () const
 
void clearAiQueue ()
 
auto currentWayPoint () const -> const WayPoint *
 
auto currentTaPoint () const -> const WayPoint *
 
void attachToPoint (const WayPoint *p)
 
GoToHint moveHint () const
 
void clearGoTo ()
 
void stopWalking ()
 
bool canSeeNpc (const Npc &oth, bool freeLos) const
 
bool canSeeNpc (const Tempest::Vec3 pos, bool freeLos) const
 
bool canSeeItem (const Item &it, bool freeLos) const
 
bool canSeeSource () const
 
bool canRayHitPoint (const Tempest::Vec3 pos, bool freeLos=true, float extRange=0.f) const
 
auto canSenseNpc (const Npc &oth, bool freeLos, float extRange=0.f) const -> SensesBit
 
auto canSenseNpc (const Tempest::Vec3 pos, bool freeLos, bool isNoisy, float extRange=0.f) const -> SensesBit
 
void setTarget (Npc *t)
 
Npctarget () const
 
void clearNearestEnemy ()
 
int32_t lastHitSpellId () const
 
void setOther (Npc *ot)
 
void setVictim (Npc *ot)
 
bool haveOutput () const
 
void setAiOutputBarrier (uint64_t dt, bool overlay)
 
bool doAttack (Anim anim, BodyState bs)
 
void commitSpell ()
 
void takeDamage (Npc &other, const Bullet *b)
 
void takeDamage (Npc &other, const Bullet *b, const VisualFx *vfx, int32_t splId)
 
bool isTargetableBySpell (TargetType t) const
 
void emitSoundEffect (std::string_view sound, float range, bool freeSlot)
 
void emitSoundGround (std::string_view sound, float range, bool freeSlot)
 
void emitSoundSVM (std::string_view sound)
 
void startEffect (Npc &to, const VisualFx &vfx)
 
void stopEffect (const VisualFx &vfx)
 
void runEffect (Effect &&e)
 

Friends

class MoveAlgo
 

Detailed Description

Definition at line 25 of file npc.h.

Member Typedef Documentation

◆ Anim

Definition at line 75 of file npc.h.

◆ JumpStatus

Definition at line 27 of file npc.h.

Member Enumeration Documentation

◆ BeginCastResult

enum Npc::BeginCastResult : uint8_t
Enumerator
BC_No 
BC_NoMana 
BC_Cast 
BC_Invest 

Definition at line 68 of file npc.h.

◆ CastState

enum Npc::CastState : uint8_t
Enumerator
CS_NoCast 
CS_Finalize 
CS_Invest_0 
CS_Invest_1 
CS_Invest_2 
CS_Invest_3 
CS_Invest_4 
CS_Invest_5 
CS_Invest_6 
CS_Invest_Last 
CS_Cast_0 
CS_Cast_1 
CS_Cast_2 
CS_Cast_3 
CS_Cast_Last 
CS_Emit_0 
CS_Emit_Last 

Definition at line 45 of file npc.h.

◆ GoToHint

enum Npc::GoToHint : uint8_t
Enumerator
GT_No 
GT_Way 
GT_NextFp 
GT_EnemyA 
GT_Item 
GT_Point 
GT_EnemyG 
GT_Flee 

Definition at line 29 of file npc.h.

◆ HitSound

enum Npc::HitSound : uint8_t
Enumerator
HS_NoSound 
HS_Dead 

Definition at line 40 of file npc.h.

Constructor & Destructor Documentation

◆ Npc() [1/2]

Npc::Npc ( World owner,
size_t  instance,
std::string_view  waypoint,
NpcProcessPolicy  aiPolicy = NpcProcessPolicy::AiNormal 
)

Definition at line 177 of file npc.cpp.

◆ Npc() [2/2]

Npc::Npc ( const Npc )
delete

◆ ~Npc()

Npc::~Npc ( )

Definition at line 200 of file npc.cpp.

Member Function Documentation

◆ activeSpellLevel()

int32_t Npc::activeSpellLevel ( ) const

Definition at line 3887 of file npc.cpp.

◆ activeWeapon()

Item * Npc::activeWeapon ( )

Definition at line 3458 of file npc.cpp.

◆ addItem() [1/4]

void Npc::addItem ( size_t  id,
Interactive chest,
size_t  count = 1 
)

Definition at line 3286 of file npc.cpp.

◆ addItem() [2/4]

void Npc::addItem ( size_t  id,
Npc from,
size_t  count = 1 
)

Definition at line 3290 of file npc.cpp.

◆ addItem() [3/4]

Item * Npc::addItem ( size_t  id,
size_t  amount 
)

Definition at line 3233 of file npc.cpp.

◆ addItem() [4/4]

Item * Npc::addItem ( std::unique_ptr< Item > &&  i)

Definition at line 3237 of file npc.cpp.

◆ addOverlay() [1/2]

void Npc::addOverlay ( const Skeleton sk,
uint64_t  time 
)

Definition at line 763 of file npc.cpp.

◆ addOverlay() [2/2]

void Npc::addOverlay ( std::string_view  sk,
uint64_t  time 
)

Definition at line 758 of file npc.cpp.

◆ addRoutine()

void Npc::addRoutine ( gtime  s,
gtime  e,
uint32_t  callback,
std::string_view  point 
)

Definition at line 4174 of file npc.cpp.

◆ aimBow()

bool Npc::aimBow ( )

Definition at line 3895 of file npc.cpp.

◆ aiPush()

void Npc::aiPush ( AiQueue::AiAction &&  a)

Definition at line 3218 of file npc.cpp.

◆ animMoveSpeed()

Tempest::Vec3 Npc::animMoveSpeed ( uint64_t  dt) const -> Tempest::Vec3

Definition at line 834 of file npc.cpp.

◆ attachToPoint()

void Npc::attachToPoint ( const WayPoint p)

Definition at line 4384 of file npc.cpp.

◆ attitude()

Attitude Npc::attitude ( ) const
inline

Definition at line 226 of file npc.h.

◆ attribute()

int32_t Npc::attribute ( Attribute  a) const

Definition at line 1171 of file npc.cpp.

◆ beginCastSpell()

Npc::BeginCastResult Npc::beginCastSpell ( ) -> BeginCastResult

Definition at line 3716 of file npc.cpp.

◆ blockFist()

bool Npc::blockFist ( )

Definition at line 3666 of file npc.cpp.

◆ blockSword()

bool Npc::blockSword ( )

Definition at line 3708 of file npc.cpp.

◆ bodyState()

BodyState Npc::bodyState ( ) const

Definition at line 3147 of file npc.cpp.

◆ bodyStateMasked()

BodyState Npc::bodyStateMasked ( ) const

Definition at line 3161 of file npc.cpp.

◆ bounds()

Bounds Npc::bounds ( ) const

Definition at line 674 of file npc.cpp.

◆ buyItem()

void Npc::buyItem ( size_t  id,
Npc from,
size_t  count = 1 
)

Definition at line 3306 of file npc.cpp.

◆ cameraBone()

Vec3 Npc::cameraBone ( bool  isFirstPerson = false) const -> Tempest::Vec3

Definition at line 636 of file npc.cpp.

◆ cameraMatrix()

Matrix4x4 Npc::cameraMatrix ( bool  isFirstPerson = false) const -> Tempest::Matrix4x4

Definition at line 650 of file npc.cpp.

◆ canFinish()

bool Npc::canFinish ( Npc oth)

Definition at line 3625 of file npc.cpp.

◆ canRayHitPoint()

bool Npc::canRayHitPoint ( const Tempest::Vec3  pos,
bool  freeLos = true,
float  extRange = 0.f 
) const

Definition at line 4436 of file npc.cpp.

◆ canSeeItem()

bool Npc::canSeeItem ( const Item it,
bool  freeLos 
) const

Definition at line 4487 of file npc.cpp.

◆ canSeeNpc() [1/2]

bool Npc::canSeeNpc ( const Npc oth,
bool  freeLos 
) const

Definition at line 4403 of file npc.cpp.

◆ canSeeNpc() [2/2]

bool Npc::canSeeNpc ( const Tempest::Vec3  pos,
bool  freeLos 
) const

◆ canSeeSource()

bool Npc::canSeeSource ( ) const

Definition at line 4422 of file npc.cpp.

◆ canSenseNpc() [1/2]

SensesBit Npc::canSenseNpc ( const Npc oth,
bool  freeLos,
float  extRange = 0.f 
) const -> SensesBit

Definition at line 4459 of file npc.cpp.

◆ canSenseNpc() [2/2]

SensesBit Npc::canSenseNpc ( const Tempest::Vec3  pos,
bool  freeLos,
bool  isNoisy,
float  extRange = 0.f 
) const -> SensesBit

Definition at line 4468 of file npc.cpp.

◆ canSneak()

bool Npc::canSneak ( ) const

Definition at line 1163 of file npc.cpp.

◆ canSwitchWeapon()

bool Npc::canSwitchWeapon ( ) const

Definition at line 3486 of file npc.cpp.

◆ centerPosition()

Vec3 Npc::centerPosition ( ) const -> Tempest::Vec3

Definition at line 684 of file npc.cpp.

◆ changeAttribute()

void Npc::changeAttribute ( Attribute  a,
int32_t  val,
bool  allowUnconscious 
)

Definition at line 1177 of file npc.cpp.

◆ changeProtection()

void Npc::changeProtection ( Protection  p,
int32_t  val 
)

Definition at line 1214 of file npc.cpp.

◆ checkGoToNpcdistance()

bool Npc::checkGoToNpcdistance ( const Npc other)

Definition at line 3450 of file npc.cpp.

◆ clearAiQueue()

void Npc::clearAiQueue ( )

Definition at line 4369 of file npc.cpp.

◆ clearGoTo()

void Npc::clearGoTo ( )

Definition at line 4389 of file npc.cpp.

◆ clearInventory()

void Npc::clearInventory ( )

Definition at line 3354 of file npc.cpp.

◆ clearNearestEnemy()

void Npc::clearNearestEnemy ( )

Definition at line 2920 of file npc.cpp.

◆ clearSlotItem()

void Npc::clearSlotItem ( std::string_view  slot)

Definition at line 911 of file npc.cpp.

◆ clearSpeed()

void Npc::clearSpeed ( )

Definition at line 523 of file npc.cpp.

◆ clearState()

void Npc::clearState ( bool  noFinalize)

Definition at line 2808 of file npc.cpp.

◆ closeWeapon()

bool Npc::closeWeapon ( bool  noAnim)

Definition at line 3490 of file npc.cpp.

◆ commitSpell()

void Npc::commitSpell ( )

Definition at line 3010 of file npc.cpp.

◆ currentArmor()

Item * Npc::currentArmor ( )

Definition at line 3358 of file npc.cpp.

◆ currentMeleeWeapon()

Item * Npc::currentMeleeWeapon ( )

Definition at line 3362 of file npc.cpp.

◆ currentRangedWeapon()

Item * Npc::currentRangedWeapon ( )

Definition at line 3366 of file npc.cpp.

◆ currentShield()

Item * Npc::currentShield ( )

Definition at line 3370 of file npc.cpp.

◆ currentTaPoint()

const WayPoint * Npc::currentTaPoint ( ) const -> const WayPoint*

Definition at line 3118 of file npc.cpp.

◆ currentWayPoint()

auto Npc::currentWayPoint ( ) const -> const WayPoint*
inline

Definition at line 370 of file npc.h.

◆ delItem()

void Npc::delItem ( size_t  id,
uint32_t  amount 
)

Definition at line 3466 of file npc.cpp.

◆ delOverlay() [1/2]

void Npc::delOverlay ( const Skeleton sk)

Definition at line 773 of file npc.cpp.

◆ delOverlay() [2/2]

void Npc::delOverlay ( std::string_view  sk)

Definition at line 769 of file npc.cpp.

◆ detectedMob()

Interactive * Npc::detectedMob ( ) const -> Interactive*

Definition at line 4145 of file npc.cpp.

◆ dialogChoices()

std::vector< GameScript::DlgChoice > Npc::dialogChoices ( Npc player,
const std::vector< uint32_t > &  except,
bool  includeImp 
) -> std::vector<GameScript::DlgChoice>

Definition at line 4353 of file npc.cpp.

◆ displayName()

std::string_view Npc::displayName ( ) const

Definition at line 734 of file npc.cpp.

◆ displayPosition()

Tempest::Vec3 Npc::displayPosition ( ) const -> Tempest::Vec3

Definition at line 738 of file npc.cpp.

◆ diveTime()

int32_t Npc::diveTime ( ) const

Definition at line 1270 of file npc.cpp.

◆ doAttack()

bool Npc::doAttack ( Anim  anim,
BodyState  bs 
)

Definition at line 3638 of file npc.cpp.

◆ drawMage()

bool Npc::drawMage ( uint8_t  slot)

Definition at line 3588 of file npc.cpp.

◆ drawSpell()

bool Npc::drawSpell ( int32_t  spell)

Definition at line 3599 of file npc.cpp.

◆ drawWeaponBow()

bool Npc::drawWeaponBow ( )

Definition at line 3565 of file npc.cpp.

◆ drawWeaponFist()

bool Npc::drawWeaponFist ( )

Definition at line 3515 of file npc.cpp.

◆ drawWeaponMelee()

bool Npc::drawWeaponMelee ( )

Definition at line 3539 of file npc.cpp.

◆ dropItem()

void Npc::dropItem ( size_t  id,
size_t  count = 1 
)

Definition at line 3325 of file npc.cpp.

◆ emitSoundEffect()

void Npc::emitSoundEffect ( std::string_view  sound,
float  range,
bool  freeSlot 
)

Definition at line 2946 of file npc.cpp.

◆ emitSoundGround()

void Npc::emitSoundGround ( std::string_view  sound,
float  range,
bool  freeSlot 
)

Definition at line 2951 of file npc.cpp.

◆ emitSoundSVM()

void Npc::emitSoundSVM ( std::string_view  sound)

Definition at line 2958 of file npc.cpp.

◆ endCastSpell()

void Npc::endCastSpell ( bool  playerCtrl = false)

Definition at line 3869 of file npc.cpp.

◆ excRoutine()

void Npc::excRoutine ( size_t  callback)

Definition at line 4191 of file npc.cpp.

◆ experience()

int32_t Npc::experience ( ) const

Definition at line 1258 of file npc.cpp.

◆ experienceNext()

int32_t Npc::experienceNext ( ) const

Definition at line 1262 of file npc.cpp.

◆ fatness()

float Npc::fatness ( ) const
inline

Definition at line 101 of file npc.h.

◆ finishingMove()

bool Npc::finishingMove ( )

Definition at line 3674 of file npc.cpp.

◆ fistShoot()

void Npc::fistShoot ( )

Definition at line 3662 of file npc.cpp.

◆ formerPortalName()

std::string_view Npc::formerPortalName ( ) -> std::string_view

Definition at line 698 of file npc.cpp.

◆ getItem()

Item * Npc::getItem ( size_t  id)

Definition at line 3462 of file npc.cpp.

◆ guild()

uint32_t Npc::guild ( ) const

Definition at line 1223 of file npc.cpp.

◆ handle()

zenkit::INpc & Npc::handle ( )
inline

Definition at line 327 of file npc.h.

◆ handlePtr()

const std::shared_ptr< zenkit::INpc > & Npc::handlePtr ( ) const
inline

Definition at line 328 of file npc.h.

◆ hasAmmunition()

bool Npc::hasAmmunition ( ) const

Definition at line 3948 of file npc.cpp.

◆ hasAnim()

bool Npc::hasAnim ( std::string_view  scheme) const

Definition at line 991 of file npc.cpp.

◆ hasCollision()

bool Npc::hasCollision ( ) const
inline

Definition at line 320 of file npc.h.

◆ hasOverlay() [1/2]

bool Npc::hasOverlay ( const Skeleton sk) const

Definition at line 754 of file npc.cpp.

◆ hasOverlay() [2/2]

bool Npc::hasOverlay ( std::string_view  sk) const

Definition at line 749 of file npc.cpp.

◆ hasPerc()

bool Npc::hasPerc ( PercType  perc) const

Definition at line 4093 of file npc.cpp.

◆ hasState()

bool Npc::hasState ( BodyState  s) const

Definition at line 3166 of file npc.cpp.

◆ hasStateFlag()

bool Npc::hasStateFlag ( BodyState  flg) const

Definition at line 3174 of file npc.cpp.

◆ hasSwimAnimations()

bool Npc::hasSwimAnimations ( ) const

Definition at line 995 of file npc.cpp.

◆ haveOutput()

bool Npc::haveOutput ( ) const

Definition at line 2934 of file npc.cpp.

◆ hitChance()

int32_t Npc::hitChance ( Talent  t) const

Definition at line 1149 of file npc.cpp.

◆ instanceSymbol()

uint32_t Npc::instanceSymbol ( ) const

Definition at line 1219 of file npc.cpp.

◆ interactive()

auto Npc::interactive ( ) const -> Interactive*
inline

Definition at line 294 of file npc.h.

◆ invalidateTalentOverlays() [1/2]

void Npc::invalidateTalentOverlays ( )

Definition at line 1049 of file npc.cpp.

◆ invalidateTalentOverlays() [2/2]

void Npc::invalidateTalentOverlays ( Talent  t)

Definition at line 1056 of file npc.cpp.

◆ inventory()

auto Npc::inventory ( ) const -> const Inventory&
inline

Definition at line 330 of file npc.h.

◆ isAiBusy()

bool Npc::isAiBusy ( ) const

Definition at line 4363 of file npc.cpp.

◆ isAiQueueEmpty()

bool Npc::isAiQueueEmpty ( ) const

Definition at line 4357 of file npc.cpp.

◆ isAttack()

bool Npc::isAttack ( ) const

Definition at line 3978 of file npc.cpp.

◆ isAttackAnim()

bool Npc::isAttackAnim ( ) const

Definition at line 3986 of file npc.cpp.

◆ isCasting()

bool Npc::isCasting ( ) const

Definition at line 1021 of file npc.cpp.

◆ isDead()

bool Npc::isDead ( ) const

Definition at line 3962 of file npc.cpp.

◆ isDive()

bool Npc::isDive ( ) const

Definition at line 1017 of file npc.cpp.

◆ isDown()

bool Npc::isDown ( ) const

Definition at line 3974 of file npc.cpp.

◆ isEnemy()

bool Npc::isEnemy ( const Npc other) const

Definition at line 3958 of file npc.cpp.

◆ isFalling()

bool Npc::isFalling ( ) const

Definition at line 1033 of file npc.cpp.

◆ isFallingDeep()

bool Npc::isFallingDeep ( ) const

Definition at line 1037 of file npc.cpp.

◆ isFinishingMove()

bool Npc::isFinishingMove ( ) const

Definition at line 999 of file npc.cpp.

◆ isFlyAnim()

bool Npc::isFlyAnim ( ) const

Definition at line 1029 of file npc.cpp.

◆ isFriend()

bool Npc::isFriend ( ) const

Definition at line 1278 of file npc.cpp.

◆ isHuman()

bool Npc::isHuman ( ) const

Definition at line 1234 of file npc.cpp.

◆ isImmortal()

bool Npc::isImmortal ( ) const

Definition at line 3994 of file npc.cpp.

◆ isInAir()

bool Npc::isInAir ( ) const

Definition at line 1045 of file npc.cpp.

◆ isInRoutine()

bool Npc::isInRoutine ( ScriptFn  stateFn) const

Definition at line 4157 of file npc.cpp.

◆ isInState()

bool Npc::isInState ( ScriptFn  stateFn) const

Definition at line 4153 of file npc.cpp.

◆ isInWater()

bool Npc::isInWater ( ) const

Definition at line 1013 of file npc.cpp.

◆ isJumpAnim()

bool Npc::isJumpAnim ( ) const

Definition at line 1025 of file npc.cpp.

◆ isLie()

bool Npc::isLie ( ) const

Definition at line 3966 of file npc.cpp.

◆ isMonster()

bool Npc::isMonster ( ) const

Definition at line 1227 of file npc.cpp.

◆ isPlayer()

bool Npc::isPlayer ( ) const

Definition at line 539 of file npc.cpp.

◆ isPrehit()

bool Npc::isPrehit ( ) const

Definition at line 3990 of file npc.cpp.

◆ isRefuseTalk()

bool Npc::isRefuseTalk ( ) const

Definition at line 1155 of file npc.cpp.

◆ isRotationAllowed()

bool Npc::isRotationAllowed ( ) const

Definition at line 3444 of file npc.cpp.

◆ isSlide()

bool Npc::isSlide ( ) const

Definition at line 1041 of file npc.cpp.

◆ isStanding()

bool Npc::isStanding ( ) const

Definition at line 1005 of file npc.cpp.

◆ isSwim()

bool Npc::isSwim ( ) const

Definition at line 1009 of file npc.cpp.

◆ isTalk()

bool Npc::isTalk ( ) const

Definition at line 3982 of file npc.cpp.

◆ isTargetableBySpell()

bool Npc::isTargetableBySpell ( TargetType  t) const

Definition at line 2984 of file npc.cpp.

◆ isUnconscious()

bool Npc::isUnconscious ( ) const

Definition at line 3970 of file npc.cpp.

◆ isUsingTorch()

bool Npc::isUsingTorch ( ) const

Definition at line 802 of file npc.cpp.

◆ itemCount()

size_t Npc::itemCount ( size_t  id) const

Definition at line 3454 of file npc.cpp.

◆ lastHitSpellId()

int32_t Npc::lastHitSpellId ( ) const
inline

Definition at line 390 of file npc.h.

◆ learningPoints()

int32_t Npc::learningPoints ( ) const

Definition at line 1266 of file npc.cpp.

◆ level()

int32_t Npc::level ( ) const

Definition at line 1254 of file npc.cpp.

◆ load()

void Npc::load ( Serialize fout,
size_t  id,
std::string_view  directory 
)

Definition at line 251 of file npc.cpp.

◆ lookAtTarget()

Npc * Npc::lookAtTarget ( ) const

Definition at line 690 of file npc.cpp.

◆ mageCycle()

int32_t Npc::mageCycle ( ) const

Definition at line 1159 of file npc.cpp.

◆ magicCyrcle()

int32_t Npc::magicCyrcle ( ) const

Definition at line 1250 of file npc.cpp.

◆ mapBone()

Vec3 Npc::mapBone ( std::string_view  bone) const -> Tempest::Vec3

Definition at line 3382 of file npc.cpp.

◆ mapHeadBone()

Vec3 Npc::mapHeadBone ( ) const -> Tempest::Vec3

Definition at line 3378 of file npc.cpp.

◆ mapWeaponBone()

Vec3 Npc::mapWeaponBone ( ) const -> Tempest::Vec3

Definition at line 3374 of file npc.cpp.

◆ moveHint()

GoToHint Npc::moveHint ( ) const
inline

Definition at line 373 of file npc.h.

◆ moveItem()

void Npc::moveItem ( size_t  id,
Interactive to,
size_t  count = 1 
)

Definition at line 3294 of file npc.cpp.

◆ multSpeed()

void Npc::multSpeed ( float  s)

Definition at line 4197 of file npc.cpp.

◆ onWldItemRemoved()

void Npc::onWldItemRemoved ( const Item itm)

Definition at line 3281 of file npc.cpp.

◆ perceptionProcess() [1/2]

bool Npc::perceptionProcess ( Npc pl)

Definition at line 4023 of file npc.cpp.

◆ perceptionProcess() [2/2]

bool Npc::perceptionProcess ( Npc pl,
Npc victim,
float  quadDist,
PercType  perc 
)

Definition at line 4068 of file npc.cpp.

◆ percNextTime()

uint64_t Npc::percNextTime ( ) const

Definition at line 4097 of file npc.cpp.

◆ playAnimByName()

const Animation::Sequence * Npc::playAnimByName ( std::string_view  name,
BodyState  bs 
) -> const Animation::Sequence*

Definition at line 937 of file npc.cpp.

◆ portalName()

std::string_view Npc::portalName ( ) -> std::string_view

Definition at line 694 of file npc.cpp.

◆ position()

Vec3 Npc::position ( ) const -> Tempest::Vec3

Definition at line 628 of file npc.cpp.

◆ postValidate()

void Npc::postValidate ( )

Definition at line 325 of file npc.cpp.

◆ processDefInvTorch()

void Npc::processDefInvTorch ( )

Definition at line 4133 of file npc.cpp.

◆ processPolicy()

auto Npc::processPolicy ( ) const -> NpcProcessPolicy
inline

Definition at line 109 of file npc.h.

◆ protection()

int32_t Npc::protection ( Protection  p) const

Definition at line 1208 of file npc.cpp.

◆ qDistTo() [1/5]

float Npc::qDistTo ( const Interactive p) const

Definition at line 717 of file npc.cpp.

◆ qDistTo() [2/5]

float Npc::qDistTo ( const Item p) const

Definition at line 722 of file npc.cpp.

◆ qDistTo() [3/5]

float Npc::qDistTo ( const Npc p) const

Definition at line 713 of file npc.cpp.

◆ qDistTo() [4/5]

float Npc::qDistTo ( const Tempest::Vec3  pos) const

◆ qDistTo() [5/5]

float Npc::qDistTo ( const WayPoint p) const

Definition at line 707 of file npc.cpp.

◆ quitInteraction()

void Npc::quitInteraction ( )

Definition at line 4124 of file npc.cpp.

◆ resetPositionToTA()

bool Npc::resetPositionToTA ( )

Definition at line 470 of file npc.cpp.

◆ resumeAiRoutine()

void Npc::resumeAiRoutine ( )

Definition at line 3224 of file npc.cpp.

◆ rotateTo()

bool Npc::rotateTo ( float  dx,
float  dz,
float  speed,
AnimationSolver::TurnType  anim,
uint64_t  dt 
)

Definition at line 3398 of file npc.cpp.

◆ rotation()

float Npc::rotation ( ) const

Definition at line 658 of file npc.cpp.

◆ rotationRad()

float Npc::rotationRad ( ) const

Definition at line 662 of file npc.cpp.

◆ rotationY()

float Npc::rotationY ( ) const

Definition at line 666 of file npc.cpp.

◆ rotationYRad()

float Npc::rotationYRad ( ) const

Definition at line 670 of file npc.cpp.

◆ runAngle()

float Npc::runAngle ( ) const
inline

Definition at line 100 of file npc.h.

◆ runEffect()

void Npc::runEffect ( Effect &&  e)

Definition at line 2980 of file npc.cpp.

◆ save()

void Npc::save ( Serialize fout,
size_t  id,
std::string_view  directory 
)

Definition at line 205 of file npc.cpp.

◆ sellItem()

void Npc::sellItem ( size_t  id,
Npc to,
size_t  count = 1 
)

Definition at line 3298 of file npc.cpp.

◆ setActiveSpellInfo()

void Npc::setActiveSpellInfo ( int32_t  info)

Definition at line 3883 of file npc.cpp.

◆ setAiOutputBarrier()

void Npc::setAiOutputBarrier ( uint64_t  dt,
bool  overlay 
)

Definition at line 2940 of file npc.cpp.

◆ setAmmoItem()

void Npc::setAmmoItem ( MeshObjects::Mesh &&  itm,
std::string_view  slot 
)

Definition at line 907 of file npc.cpp.

◆ setAnim()

bool Npc::setAnim ( Npc::Anim  a)

Definition at line 941 of file npc.cpp.

◆ setAnimAngGet() [1/2]

const Animation::Sequence * Npc::setAnimAngGet ( Anim  a) -> const Animation::Sequence*

Definition at line 945 of file npc.cpp.

◆ setAnimAngGet() [2/2]

const Animation::Sequence * Npc::setAnimAngGet ( Anim  a,
uint8_t  comb 
) -> const Animation::Sequence*

Definition at line 949 of file npc.cpp.

◆ setAnimItem()

bool Npc::setAnimItem ( std::string_view  scheme,
int  state 
)

Definition at line 965 of file npc.cpp.

◆ setAnimRotate()

void Npc::setAnimRotate ( int  rot)

Definition at line 961 of file npc.cpp.

◆ setAttitude()

void Npc::setAttitude ( Attitude  att)

Definition at line 1274 of file npc.cpp.

◆ setCurrentItem()

void Npc::setCurrentItem ( size_t  item)

Definition at line 3478 of file npc.cpp.

◆ setDetectedMob()

void Npc::setDetectedMob ( Interactive id)

Definition at line 4140 of file npc.cpp.

◆ setDirection() [1/2]

void Npc::setDirection ( const Tempest::Vec3 &  pos)

Definition at line 436 of file npc.cpp.

◆ setDirection() [2/2]

void Npc::setDirection ( float  rotation)

Definition at line 441 of file npc.cpp.

◆ setDirectionY()

void Npc::setDirectionY ( float  rotation)

Definition at line 446 of file npc.cpp.

◆ setFatness()

void Npc::setFatness ( float  f)

Definition at line 925 of file npc.cpp.

◆ setInteraction()

bool Npc::setInteraction ( Interactive id,
bool  quick = false 
)

Definition at line 4101 of file npc.cpp.

◆ setMagicWeapon()

void Npc::setMagicWeapon ( Effect &&  spell)

Definition at line 893 of file npc.cpp.

◆ setOther()

void Npc::setOther ( Npc ot)

Definition at line 2924 of file npc.cpp.

◆ setPerceptionDisable()

void Npc::setPerceptionDisable ( PercType  t)

Definition at line 4011 of file npc.cpp.

◆ setPerceptionEnable()

void Npc::setPerceptionEnable ( PercType  t,
size_t  fn 
)

Definition at line 4006 of file npc.cpp.

◆ setPerceptionTime()

void Npc::setPerceptionTime ( uint64_t  time)

Definition at line 3998 of file npc.cpp.

◆ setPhysic()

void Npc::setPhysic ( DynamicWorld::NpcItem &&  item)

Definition at line 919 of file npc.cpp.

◆ setPosition() [1/2]

bool Npc::setPosition ( const Tempest::Vec3 &  pos)

Definition at line 399 of file npc.cpp.

◆ setPosition() [2/2]

bool Npc::setPosition ( float  x,
float  y,
float  z 
)

Definition at line 388 of file npc.cpp.

◆ setProcessPolicy()

void Npc::setProcessPolicy ( NpcProcessPolicy  t)

Definition at line 527 of file npc.cpp.

◆ setRangedWeapon()

void Npc::setRangedWeapon ( MeshObjects::Mesh &&  bow)

Definition at line 883 of file npc.cpp.

◆ setRefuseTalk()

void Npc::setRefuseTalk ( uint64_t  milis)

Definition at line 1167 of file npc.cpp.

◆ setRunAngle()

void Npc::setRunAngle ( float  angle)

Definition at line 458 of file npc.cpp.

◆ setScale()

void Npc::setScale ( float  x,
float  y,
float  z 
)

Definition at line 930 of file npc.cpp.

◆ setShield()

void Npc::setShield ( MeshObjects::Mesh &&  shield)

Definition at line 888 of file npc.cpp.

◆ setSlotItem()

void Npc::setSlotItem ( MeshObjects::Mesh &&  itm,
std::string_view  slot 
)

Definition at line 899 of file npc.cpp.

◆ setStateItem()

void Npc::setStateItem ( MeshObjects::Mesh &&  itm,
std::string_view  slot 
)

Definition at line 903 of file npc.cpp.

◆ setStateTime()

void Npc::setStateTime ( int64_t  time)

Definition at line 4170 of file npc.cpp.

◆ setSword()

void Npc::setSword ( MeshObjects::Mesh &&  sword)

Definition at line 878 of file npc.cpp.

◆ setTalentSkill()

void Npc::setTalentSkill ( Talent  t,
int32_t  lvl 
)

Definition at line 1125 of file npc.cpp.

◆ setTalentValue()

void Npc::setTalentValue ( Talent  t,
int32_t  lvl 
)

Definition at line 1138 of file npc.cpp.

◆ setTarget()

void Npc::setTarget ( Npc t)

Definition at line 2907 of file npc.cpp.

◆ setTempAttitude()

void Npc::setTempAttitude ( Attitude  att)

Definition at line 1284 of file npc.cpp.

◆ setToFightMode()

void Npc::setToFightMode ( const size_t  item)

Definition at line 3182 of file npc.cpp.

◆ setToFistMode()

void Npc::setToFistMode ( )

Definition at line 3208 of file npc.cpp.

◆ setTorch()

void Npc::setTorch ( bool  use)

Definition at line 789 of file npc.cpp.

◆ setTrueGuild()

void Npc::setTrueGuild ( int32_t  g)

Definition at line 1240 of file npc.cpp.

◆ setVictim()

void Npc::setVictim ( Npc ot)

Definition at line 2930 of file npc.cpp.

◆ setVisual() [1/2]

void Npc::setVisual ( const Skeleton visual)

Definition at line 838 of file npc.cpp.

◆ setVisual() [2/2]

void Npc::setVisual ( std::string_view  visual)

Definition at line 743 of file npc.cpp.

◆ setVisualBody()

void Npc::setVisualBody ( int32_t  headTexNr,
int32_t  teethTexNr,
int32_t  bodyVer,
int32_t  bodyColor,
std::string_view  body,
std::string_view  head 
)

Definition at line 843 of file npc.cpp.

◆ setWalkMode()

void Npc::setWalkMode ( WalkBit  m)

Definition at line 535 of file npc.cpp.

◆ shootBow()

bool Npc::shootBow ( Interactive focOverride = nullptr)

Definition at line 3905 of file npc.cpp.

◆ startClimb()

bool Npc::startClimb ( JumpStatus  jump)

Definition at line 543 of file npc.cpp.

◆ startDialog()

void Npc::startDialog ( Npc other)

Definition at line 4016 of file npc.cpp.

◆ startDive()

void Npc::startDive ( )

Definition at line 4333 of file npc.cpp.

◆ startEffect()

void Npc::startEffect ( Npc to,
const VisualFx vfx 
)

Definition at line 2969 of file npc.cpp.

◆ startFaceAnim()

void Npc::startFaceAnim ( std::string_view  anim,
float  intensity,
uint64_t  duration 
)

Definition at line 983 of file npc.cpp.

◆ startState() [1/2]

bool Npc::startState ( ScriptFn  id,
std::string_view  wp 
)

Definition at line 2755 of file npc.cpp.

◆ startState() [2/2]

bool Npc::startState ( ScriptFn  id,
std::string_view  wp,
gtime  endTime,
bool  noFinalize 
)

Definition at line 2759 of file npc.cpp.

◆ stateTime()

uint64_t Npc::stateTime ( ) const

Definition at line 4166 of file npc.cpp.

◆ stopAnim()

void Npc::stopAnim ( std::string_view  ani)

Definition at line 979 of file npc.cpp.

◆ stopDlgAnim()

void Npc::stopDlgAnim ( )

Definition at line 519 of file npc.cpp.

◆ stopEffect()

void Npc::stopEffect ( const VisualFx vfx)

Definition at line 2976 of file npc.cpp.

◆ stopItemStateAnim()

bool Npc::stopItemStateAnim ( )

Definition at line 987 of file npc.cpp.

◆ stopWalking()

void Npc::stopWalking ( )

Definition at line 4396 of file npc.cpp.

◆ swingSword()

void Npc::swingSword ( )

Definition at line 3687 of file npc.cpp.

◆ swingSwordL()

bool Npc::swingSwordL ( )

Definition at line 3694 of file npc.cpp.

◆ swingSwordR()

bool Npc::swingSwordR ( )

Definition at line 3701 of file npc.cpp.

◆ takeDamage() [1/2]

void Npc::takeDamage ( Npc other,
const Bullet b 
)

Definition at line 1868 of file npc.cpp.

◆ takeDamage() [2/2]

void Npc::takeDamage ( Npc other,
const Bullet b,
const VisualFx vfx,
int32_t  splId 
)

Definition at line 1892 of file npc.cpp.

◆ takeItem()

Item * Npc::takeItem ( Item i)

Definition at line 3241 of file npc.cpp.

◆ talentSkill()

int32_t Npc::talentSkill ( Talent  t) const

Definition at line 1132 of file npc.cpp.

◆ talentValue()

int32_t Npc::talentValue ( Talent  t) const

Definition at line 1143 of file npc.cpp.

◆ target()

Npc * Npc::target ( ) const

Definition at line 2916 of file npc.cpp.

◆ tempAttitude()

Attitude Npc::tempAttitude ( ) const
inline

Definition at line 231 of file npc.h.

◆ testMove()

bool Npc::testMove ( const Tempest::Vec3 &  pos)

Definition at line 4201 of file npc.cpp.

◆ tick()

void Npc::tick ( uint64_t  dt)

Definition at line 2186 of file npc.cpp.

◆ tickAnimationTags()

void Npc::tickAnimationTags ( )

Definition at line 2168 of file npc.cpp.

◆ toggleTorch()

bool Npc::toggleTorch ( )

Definition at line 777 of file npc.cpp.

◆ transform()

Matrix4x4 Npc::transform ( ) const -> Tempest::Matrix4x4

Definition at line 632 of file npc.cpp.

◆ transformBack()

void Npc::transformBack ( )

Definition at line 4337 of file npc.cpp.

◆ translateY()

float Npc::translateY ( ) const

Definition at line 680 of file npc.cpp.

◆ trueGuild()

int32_t Npc::trueGuild ( ) const

Definition at line 1244 of file npc.cpp.

◆ tryJump()

Npc::JumpStatus Npc::tryJump ( )

Definition at line 4235 of file npc.cpp.

◆ tryMove() [1/2]

bool Npc::tryMove ( const Tempest::Vec3 &  dp)

◆ tryMove() [2/2]

bool Npc::tryMove ( const Tempest::Vec3 &  dp,
DynamicWorld::CollisionTest out 
)

◆ tryTranslate() [1/2]

bool Npc::tryTranslate ( const Tempest::Vec3 &  to)

◆ tryTranslate() [2/2]

bool Npc::tryTranslate ( const Tempest::Vec3 &  to,
DynamicWorld::CollisionTest out 
)

◆ turnTo()

bool Npc::turnTo ( float  dx,
float  dz,
bool  noAnim,
uint64_t  dt 
)

Definition at line 3394 of file npc.cpp.

◆ unequipItem()

void Npc::unequipItem ( size_t  item)

Definition at line 3482 of file npc.cpp.

◆ updateAnimation()

void Npc::updateAnimation ( uint64_t  dt,
bool  force = false 
)

Definition at line 4569 of file npc.cpp.

◆ updateArmor()

void Npc::updateArmor ( )

Definition at line 860 of file npc.cpp.

◆ updateTransform()

void Npc::updateTransform ( )

Definition at line 4565 of file npc.cpp.

◆ useItem() [1/2]

void Npc::useItem ( size_t  item)

Definition at line 3470 of file npc.cpp.

◆ useItem() [2/2]

void Npc::useItem ( size_t  item,
uint8_t  slotHint,
bool  force 
)

Definition at line 3474 of file npc.cpp.

◆ walkMode()

auto Npc::walkMode ( ) const
inline

Definition at line 113 of file npc.h.

◆ wasInState()

bool Npc::wasInState ( ScriptFn  stateFn) const

Definition at line 4162 of file npc.cpp.

◆ weaponState()

WeaponState Npc::weaponState ( ) const -> WeaponState

Definition at line 3621 of file npc.cpp.

◆ whirlTo()

bool Npc::whirlTo ( float  dx,
float  dz,
float  step,
uint64_t  dt 
)

◆ world()

World & Npc::world ( ) -> World&

Definition at line 624 of file npc.cpp.

Friends And Related Symbol Documentation

◆ MoveAlgo

friend class MoveAlgo
friend

Definition at line 629 of file npc.h.


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