|
|
@ -84,12 +84,14 @@ public: |
|
|
|
// Purpose: Stores a node graph through which an AI may pathfind
|
|
|
|
// Purpose: Stores a node graph through which an AI may pathfind
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
class CAI_Network : public IPartitionEnumerator |
|
|
|
class CAI_Network : public IPartitionEnumerator, public IEntityListener |
|
|
|
{ |
|
|
|
{ |
|
|
|
public: |
|
|
|
public: |
|
|
|
CAI_Network(); |
|
|
|
CAI_Network(); |
|
|
|
~CAI_Network(); |
|
|
|
~CAI_Network(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void OnEntityDeleted( CBaseEntity *pEntity ); |
|
|
|
|
|
|
|
|
|
|
|
CAI_Node * AddNode( const Vector &origin, float yaw ); // Returns a new node in the network
|
|
|
|
CAI_Node * AddNode( const Vector &origin, float yaw ); // Returns a new node in the network
|
|
|
|
CAI_Link * CreateLink( int srcID, int destID, CAI_DynamicLink *pDynamicLink = NULL ); |
|
|
|
CAI_Link * CreateLink( int srcID, int destID, CAI_DynamicLink *pDynamicLink = NULL ); |
|
|
|
|
|
|
|
|
|
|
@ -128,6 +130,8 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
CAI_Node** AccessNodes() const { return m_pAInode; } |
|
|
|
CAI_Node** AccessNodes() const { return m_pAInode; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
friend class CAI_NetworkManager; |
|
|
|
friend class CAI_NetworkManager; |
|
|
|
|
|
|
|
|
|
|
|