10 #ifndef Navigation_NavFloorPtr_H
11 #define Navigation_NavFloorPtr_H
66 mutable Ptr<NavFloor> m_navFloorPtr;
70 KY_INLINE
NavFloorPtr::NavFloorPtr(
const NavFloorRawPtr& navFloorRawPtr) : m_navFloorPtr(navFloorRawPtr.GetNavFloor()) {}
76 if(m_navFloorPtr->IsStillLoaded())
77 return m_navFloorPtr->IsActive();
94 KY_INLINE
bool NavFloorPtr::operator==(
const NavFloorPtr& rhs)
const {
return m_navFloorPtr == rhs.m_navFloorPtr; }
95 KY_INLINE
bool NavFloorPtr::operator!=(
const NavFloorPtr& rhs)
const {
return m_navFloorPtr != rhs.m_navFloorPtr; }
101 #endif //Navigation_NavFloorPtr_H
NavFloor * GetNavFloor() const
Returns a pointer to the NavFloor identified by this object. Returns KY_NULL if this object is not va...
Definition: navfloorptr.h:97
Each instance of this class uniquely identifies a single NavFloor.
Definition: navfloorptr.h:21
This class is a runtime wrapper of a NavFloorBlob, it gathers all the runtime information associated ...
Definition: navfloor.h:40
The NavFloorBlob contains a connected and not overlapping part of triangle mesh static data within a ...
Definition: navfloorblob.h:42
const CellPos & GetCellPos() const
Returns a const reference to the CellPos that indicates the position of the cell that contains this N...
Definition: navfloorrawptr.h:86
const CellPos & GetCellPos() const
Returns a const reference to the CellPos that indicates the position of the cell that contains this N...
Definition: navfloorptr.h:108
NavFloor * GetNavFloor_Unsafe() const
Returns a pointer to the NavFloor identified by this object.
Definition: navfloorptr.h:100
#define KY_NULL
Null value.
Definition: types.h:247
bool IsValid() const
Returns true if this object refers to a valid NavFloor, which means a NavFloor:that exists...
Definition: navfloorptr.h:83
const NavFloorBlob * GetNavFloorBlob() const
Returns a const pointer to the NavFloorBlob identified by this object. Returns KY_NULL if this object...
Definition: navfloorptr.h:98
const NavFloorBlob * GetNavFloorBlob_Unsafe() const
Returns a const pointer to the NavFloorBlob identified by this object.
Definition: navfloorptr.h:101
bool operator==(const NavFloorPtr &rhs) const
Returns true if this object identifies the same NavFloor as rhs, or if both are invalid.
Definition: navfloorptr.h:105
NavFloorRawPtr GetRawPtr() const
Constructs and returns a NavFloorRawPtr that refers to the same NavFloor.
Definition: navfloorptr.h:103
This class defines a two-dimensional vector whose coordinates are stored using 32-bit integers...
Definition: vec2i.h:26
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
NavFloorPtr(NavFloor *navFloor=0)
Creates an invalid NavFloorPtr.
Definition: navfloorptr.h:80
void Invalidate()
Invalidates this object.
Definition: navfloorptr.h:82
Each instance of this class uniquely identifies a single NavFloor.
Definition: navfloorrawptr.h:30
bool operator!=(const NavFloorPtr &rhs) const
Returns true if this object identifies a different NavFloor from rhs.
Definition: navfloorptr.h:106