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

#include <dynamicworld.h>

Public Member Functions

 NpcItem ()=default
 
 NpcItem (DynamicWorld *owner, NpcBody *obj, float r)
 
 NpcItem (NpcItem &&it)
 
 ~NpcItem ()
 
NpcItemoperator= (NpcItem &&it)
 
void setPosition (const Tempest::Vec3 &pos)
 
const Tempest::Vec3 & position () const
 
void setEnable (bool e)
 
void setUserPointer (void *p)
 
float centerY () const
 
bool testMove (const Tempest::Vec3 &to, CollisionTest &out)
 
bool testMove (const Tempest::Vec3 &to, const Tempest::Vec3 &from, CollisionTest &out)
 
auto tryMove (const Tempest::Vec3 &to, CollisionTest &out) -> DynamicWorld::MoveCode
 
bool hasCollision () const
 

Friends

class DynamicWorld
 

Detailed Description

Definition at line 72 of file dynamicworld.h.

Constructor & Destructor Documentation

◆ NpcItem() [1/3]

DynamicWorld::NpcItem::NpcItem ( )
default

◆ NpcItem() [2/3]

DynamicWorld::NpcItem::NpcItem ( DynamicWorld owner,
NpcBody obj,
float  r 
)
inline

Definition at line 75 of file dynamicworld.h.

◆ NpcItem() [3/3]

DynamicWorld::NpcItem::NpcItem ( NpcItem &&  it)
inline

Definition at line 76 of file dynamicworld.h.

◆ ~NpcItem()

DynamicWorld::NpcItem::~NpcItem ( )

Definition at line 935 of file dynamicworld.cpp.

Member Function Documentation

◆ centerY()

float DynamicWorld::NpcItem::centerY ( ) const

Definition at line 966 of file dynamicworld.cpp.

◆ hasCollision()

bool DynamicWorld::NpcItem::hasCollision ( ) const

Definition at line 1059 of file dynamicworld.cpp.

◆ operator=()

NpcItem & DynamicWorld::NpcItem::operator= ( NpcItem &&  it)
inline

Definition at line 79 of file dynamicworld.h.

◆ position()

const Tempest::Vec3 & DynamicWorld::NpcItem::position ( ) const

Definition at line 975 of file dynamicworld.cpp.

◆ setEnable()

void DynamicWorld::NpcItem::setEnable ( bool  e)

Definition at line 955 of file dynamicworld.cpp.

◆ setPosition()

void DynamicWorld::NpcItem::setPosition ( const Tempest::Vec3 &  pos)

Definition at line 943 of file dynamicworld.cpp.

◆ setUserPointer()

void DynamicWorld::NpcItem::setUserPointer ( void *  p)

Definition at line 962 of file dynamicworld.cpp.

◆ testMove() [1/2]

bool DynamicWorld::NpcItem::testMove ( const Tempest::Vec3 &  to,
CollisionTest out 
)

Definition at line 979 of file dynamicworld.cpp.

◆ testMove() [2/2]

bool DynamicWorld::NpcItem::testMove ( const Tempest::Vec3 &  to,
const Tempest::Vec3 &  from,
CollisionTest out 
)

Definition at line 985 of file dynamicworld.cpp.

◆ tryMove()

DynamicWorld::MoveCode DynamicWorld::NpcItem::tryMove ( const Tempest::Vec3 &  to,
CollisionTest out 
) -> DynamicWorld::MoveCode

Definition at line 994 of file dynamicworld.cpp.

Friends And Related Symbol Documentation

◆ DynamicWorld

friend class DynamicWorld
friend

Definition at line 106 of file dynamicworld.h.


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