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

#include <waypoint.h>

Classes

struct  Conn
 

Public Member Functions

 WayPoint ()
 
 WayPoint (const zenkit::WayPoint &dat)
 
 WayPoint (const Tempest::Vec3 &pos, std::string_view name)
 
 WayPoint (const Tempest::Vec3 &pos, const Tempest::Vec3 &dir, std::string_view name, bool isFp)
 
 WayPoint (const WayPoint &)=default
 
 WayPoint (WayPoint &&)=default
 
WayPointoperator= (WayPoint &&)=default
 
bool isLocked () const
 
bool isFreePoint () const
 
bool isConnected () const
 
uint32_t useCounter () const
 
bool checkName (std::string_view name, bool inexact=true) const
 
Tempest::Vec3 position () const
 
Tempest::Vec3 direction () const
 
float qDistTo (float x, float y, float z) const
 
void connect (WayPoint &w)
 
const std::vector< Conn > & connections () const
 
bool hasLadderConn (const WayPoint *w) const
 

Public Attributes

Tempest::Vec3 pos
 
Tempest::Vec3 dir
 
bool underWater = false
 
bool freePoint = false
 
std::string name
 
Interactiveladder = nullptr
 
int32_t pathLen = std::numeric_limits<int32_t>::max()
 
uint16_t pathGen = 0
 

Friends

class FpLock
 

Detailed Description

Definition at line 11 of file waypoint.h.

Constructor & Destructor Documentation

◆ WayPoint() [1/6]

WayPoint::WayPoint ( )

Definition at line 16 of file waypoint.cpp.

◆ WayPoint() [2/6]

WayPoint::WayPoint ( const zenkit::WayPoint &  dat)

Definition at line 19 of file waypoint.cpp.

◆ WayPoint() [3/6]

WayPoint::WayPoint ( const Tempest::Vec3 &  pos,
std::string_view  name 
)

◆ WayPoint() [4/6]

WayPoint::WayPoint ( const Tempest::Vec3 &  pos,
const Tempest::Vec3 &  dir,
std::string_view  name,
bool  isFp 
)

◆ WayPoint() [5/6]

WayPoint::WayPoint ( const WayPoint )
default

◆ WayPoint() [6/6]

WayPoint::WayPoint ( WayPoint &&  )
default

Member Function Documentation

◆ checkName()

bool WayPoint::checkName ( std::string_view  name,
bool  inexact = true 
) const

Definition at line 42 of file waypoint.cpp.

◆ connect()

void WayPoint::connect ( WayPoint w)

Definition at line 67 of file waypoint.cpp.

◆ connections()

const std::vector< Conn > & WayPoint::connections ( ) const
inline

Definition at line 50 of file waypoint.h.

◆ direction()

Vec3 WayPoint::direction ( ) const

Definition at line 56 of file waypoint.cpp.

◆ hasLadderConn()

bool WayPoint::hasLadderConn ( const WayPoint w) const

Definition at line 77 of file waypoint.cpp.

◆ isConnected()

bool WayPoint::isConnected ( ) const

Definition at line 38 of file waypoint.cpp.

◆ isFreePoint()

bool WayPoint::isFreePoint ( ) const

Definition at line 34 of file waypoint.cpp.

◆ isLocked()

bool WayPoint::isLocked ( ) const
inline

Definition at line 21 of file waypoint.h.

◆ operator=()

WayPoint & WayPoint::operator= ( WayPoint &&  )
default

◆ position()

Vec3 WayPoint::position ( ) const

Definition at line 52 of file waypoint.cpp.

◆ qDistTo()

float WayPoint::qDistTo ( float  x,
float  y,
float  z 
) const

Definition at line 60 of file waypoint.cpp.

◆ useCounter()

uint32_t WayPoint::useCounter ( ) const
inline

Definition at line 25 of file waypoint.h.

Friends And Related Symbol Documentation

◆ FpLock

friend class FpLock
friend

Definition at line 58 of file waypoint.h.

Member Data Documentation

◆ dir

Tempest::Vec3 WayPoint::dir

Definition at line 32 of file waypoint.h.

◆ freePoint

bool WayPoint::freePoint = false

Definition at line 34 of file waypoint.h.

◆ ladder

Interactive* WayPoint::ladder = nullptr

Definition at line 36 of file waypoint.h.

◆ name

std::string WayPoint::name

Definition at line 35 of file waypoint.h.

◆ pathGen

uint16_t WayPoint::pathGen = 0
mutable

Definition at line 45 of file waypoint.h.

◆ pathLen

int32_t WayPoint::pathLen = std::numeric_limits<int32_t>::max()
mutable

Definition at line 44 of file waypoint.h.

◆ pos

Tempest::Vec3 WayPoint::pos

Definition at line 31 of file waypoint.h.

◆ underWater

bool WayPoint::underWater = false

Definition at line 33 of file waypoint.h.


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