//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// // Navigation ladders // Author: Michael S. Booth (mike@turtlerockstudios.com), January 2003 #ifndef _NAV_LADDER_H_ #define _NAV_LADDER_H_ class CNavArea; //-------------------------------------------------------------------------------------------------------------- /** * Placeholder ladder class that holds the mins and maxs for a ladder, since its brushes * are merged into the world during the compile. */ class CInfoLadder : public CBaseEntity { public: DECLARE_CLASS( CInfoLadder, CBaseEntity ); bool KeyValue( const char *szKeyName, const char *szValue ); Vector mins; Vector maxs; }; //-------------------------------------------------------------------------------------------------------------- /** * The NavLadder represents ladders in the Navigation Mesh, and their connections to adjacent NavAreas * @todo Deal with ladders that allow jumping off to areas in the middle */ class CNavLadder { public: CNavLadder( void ) { m_topForwardArea = NULL; m_topRightArea = NULL; m_topLeftArea = NULL; m_topBehindArea = NULL; m_bottomArea = NULL; // set an ID for interactive editing - loads will overwrite this m_id = m_nextID++; } ~CNavLadder(); void Save( FileHandle_t file, unsigned int version ) const; void Load( FileHandle_t file, unsigned int version ); unsigned int GetID( void ) const { return m_id; } ///< return this ladder's unique ID static void CompressIDs( void ); /// NavLadderList; //-------------------------------------------------------------------------------------------------------------- inline NavDirType CNavLadder::GetDir( void ) const { return m_dir; } //-------------------------------------------------------------------------------------------------------------- inline const Vector &CNavLadder::GetNormal( void ) const { return m_normal; } #endif // _NAV_LADDER_H_