OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
DynamicWorld::NpcBodyList Struct Referencefinal

Classes

struct  Record
 

Public Member Functions

 NpcBodyList (DynamicWorld &wrld)
 
NpcBodycreate (const Tempest::Vec3 &min, const Tempest::Vec3 &max)
 
void add (NpcBody *b)
 
bool del (void *b)
 
bool del (void *b, std::vector< Record > &arr)
 
bool delMisordered (NpcBody *b, std::vector< Record > &arr)
 
void resize (NpcBody &n, float h, float dx, float dz)
 
void onMove (NpcBody &n)
 
bool rayTest (NpcBody &npc, const Tempest::Vec3 &s, const Tempest::Vec3 &e, float extR, float &proj)
 
NpcBodyrayTest (const Tempest::Vec3 &s, const Tempest::Vec3 &e, float extR, const Npc *except)
 
bool hasCollision (const DynamicWorld::NpcItem &obj, Tempest::Vec3 &normal, Npc *&npc)
 
bool hasCollision (const NpcBody &n, const std::vector< Record > &arr, Tempest::Vec3 &normal, Npc *&npc, bool sorted)
 
bool hasCollision (const NpcBody &a, const NpcBody &b, Tempest::Vec3 &normal)
 
void adjustSort ()
 
void tickAabbs ()
 

Public Attributes

DynamicWorldwrld
 
std::vector< Recordbody
 
std::vector< Recordfrozen
 
bool srt =false
 
uint64_t tick =0
 
float maxR =0
 

Detailed Description

Definition at line 64 of file dynamicworld.cpp.

Constructor & Destructor Documentation

◆ NpcBodyList()

DynamicWorld::NpcBodyList::NpcBodyList ( DynamicWorld wrld)
inline

Definition at line 70 of file dynamicworld.cpp.

Member Function Documentation

◆ add()

void DynamicWorld::NpcBodyList::add ( NpcBody b)
inline

Definition at line 100 of file dynamicworld.cpp.

◆ adjustSort()

void DynamicWorld::NpcBodyList::adjustSort ( )
inline

Definition at line 283 of file dynamicworld.cpp.

◆ create()

NpcBody * DynamicWorld::NpcBodyList::create ( const Tempest::Vec3 &  min,
const Tempest::Vec3 &  max 
)
inline

Definition at line 75 of file dynamicworld.cpp.

◆ del() [1/2]

bool DynamicWorld::NpcBodyList::del ( void *  b)
inline

Definition at line 107 of file dynamicworld.cpp.

◆ del() [2/2]

bool DynamicWorld::NpcBodyList::del ( void *  b,
std::vector< Record > &  arr 
)
inline

Definition at line 117 of file dynamicworld.cpp.

◆ delMisordered()

bool DynamicWorld::NpcBodyList::delMisordered ( NpcBody b,
std::vector< Record > &  arr 
)
inline

Definition at line 128 of file dynamicworld.cpp.

◆ hasCollision() [1/3]

bool DynamicWorld::NpcBodyList::hasCollision ( const DynamicWorld::NpcItem obj,
Tempest::Vec3 &  normal,
Npc *&  npc 
)
inline

Definition at line 219 of file dynamicworld.cpp.

◆ hasCollision() [2/3]

bool DynamicWorld::NpcBodyList::hasCollision ( const NpcBody a,
const NpcBody b,
Tempest::Vec3 &  normal 
)
inline

Definition at line 266 of file dynamicworld.cpp.

◆ hasCollision() [3/3]

bool DynamicWorld::NpcBodyList::hasCollision ( const NpcBody n,
const std::vector< Record > &  arr,
Tempest::Vec3 &  normal,
Npc *&  npc,
bool  sorted 
)
inline

Definition at line 241 of file dynamicworld.cpp.

◆ onMove()

void DynamicWorld::NpcBodyList::onMove ( NpcBody n)
inline

Definition at line 152 of file dynamicworld.cpp.

◆ rayTest() [1/2]

NpcBody * DynamicWorld::NpcBodyList::rayTest ( const Tempest::Vec3 &  s,
const Tempest::Vec3 &  e,
float  extR,
const Npc except 
)
inline

Definition at line 194 of file dynamicworld.cpp.

◆ rayTest() [2/2]

bool DynamicWorld::NpcBodyList::rayTest ( NpcBody npc,
const Tempest::Vec3 &  s,
const Tempest::Vec3 &  e,
float  extR,
float &  proj 
)
inline

Definition at line 167 of file dynamicworld.cpp.

◆ resize()

void DynamicWorld::NpcBodyList::resize ( NpcBody n,
float  h,
float  dx,
float  dz 
)
inline

Definition at line 141 of file dynamicworld.cpp.

◆ tickAabbs()

void DynamicWorld::NpcBodyList::tickAabbs ( )
inline

Definition at line 292 of file dynamicworld.cpp.

Member Data Documentation

◆ body

std::vector<Record> DynamicWorld::NpcBodyList::body

Definition at line 327 of file dynamicworld.cpp.

◆ frozen

std::vector<Record> DynamicWorld::NpcBodyList::frozen

Definition at line 327 of file dynamicworld.cpp.

◆ maxR

float DynamicWorld::NpcBodyList::maxR =0

Definition at line 330 of file dynamicworld.cpp.

◆ srt

bool DynamicWorld::NpcBodyList::srt =false

Definition at line 328 of file dynamicworld.cpp.

◆ tick

uint64_t DynamicWorld::NpcBodyList::tick =0

Definition at line 329 of file dynamicworld.cpp.

◆ wrld

DynamicWorld& DynamicWorld::NpcBodyList::wrld

Definition at line 326 of file dynamicworld.cpp.


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