|
OpenGothic
Open source reimplementation of Gothic I and II
|
#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 | |
| WayPoint & | operator= (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 |
| Interactive * | ladder = nullptr |
| int32_t | pathLen = std::numeric_limits<int32_t>::max() |
| uint16_t | pathGen = 0 |
Friends | |
| class | FpLock |
Definition at line 11 of file waypoint.h.
| WayPoint::WayPoint | ( | ) |
Definition at line 16 of file waypoint.cpp.
| WayPoint::WayPoint | ( | const zenkit::WayPoint & | dat | ) |
Definition at line 19 of file waypoint.cpp.
| WayPoint::WayPoint | ( | const Tempest::Vec3 & | pos, |
| std::string_view | name | ||
| ) |
| WayPoint::WayPoint | ( | const Tempest::Vec3 & | pos, |
| const Tempest::Vec3 & | dir, | ||
| std::string_view | name, | ||
| bool | isFp | ||
| ) |
|
default |
|
default |
| bool WayPoint::checkName | ( | std::string_view | name, |
| bool | inexact = true |
||
| ) | const |
Definition at line 42 of file waypoint.cpp.
| void WayPoint::connect | ( | WayPoint & | w | ) |
Definition at line 67 of file waypoint.cpp.
|
inline |
Definition at line 50 of file waypoint.h.
| Vec3 WayPoint::direction | ( | ) | const |
Definition at line 56 of file waypoint.cpp.
| bool WayPoint::hasLadderConn | ( | const WayPoint * | w | ) | const |
Definition at line 77 of file waypoint.cpp.
| bool WayPoint::isConnected | ( | ) | const |
Definition at line 38 of file waypoint.cpp.
| bool WayPoint::isFreePoint | ( | ) | const |
Definition at line 34 of file waypoint.cpp.
|
inline |
Definition at line 21 of file waypoint.h.
| Vec3 WayPoint::position | ( | ) | const |
Definition at line 52 of file waypoint.cpp.
| float WayPoint::qDistTo | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) | const |
Definition at line 60 of file waypoint.cpp.
|
inline |
Definition at line 25 of file waypoint.h.
|
friend |
Definition at line 58 of file waypoint.h.
| Tempest::Vec3 WayPoint::dir |
Definition at line 32 of file waypoint.h.
| bool WayPoint::freePoint = false |
Definition at line 34 of file waypoint.h.
| Interactive* WayPoint::ladder = nullptr |
Definition at line 36 of file waypoint.h.
| std::string WayPoint::name |
Definition at line 35 of file waypoint.h.
|
mutable |
Definition at line 45 of file waypoint.h.
|
mutable |
Definition at line 44 of file waypoint.h.
| Tempest::Vec3 WayPoint::pos |
Definition at line 31 of file waypoint.h.
| bool WayPoint::underWater = false |
Definition at line 33 of file waypoint.h.