Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.9 KiB

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef AI_DEBUG_SHARED_H
#define AI_DEBUG_SHARED_H
#ifdef _WIN32
#pragma once
#endif
#include "tier0/vprof.h"
// This uses VPROF to profile
//#define VPROF_AI 1
#ifdef VPROF_AI
inline void AI_TraceLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, unsigned int mask,
const IHandleEntity *ignore, int collisionGroup, trace_t *ptr )
{
VPROF( "AI_TraceLine" );
UTIL_TraceLine( vecAbsStart, vecAbsEnd, mask, ignore, collisionGroup, ptr );
}
inline void AI_TraceLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, unsigned int mask,
ITraceFilter *pFilter, trace_t *ptr )
{
VPROF( "AI_TraceLine" );
UTIL_TraceLine( vecAbsStart, vecAbsEnd, mask, pFilter, ptr );
}
inline void AI_TraceHull( const Vector &vecAbsStart, const Vector &vecAbsEnd, const Vector &hullMin,
const Vector &hullMax, unsigned int mask, const IHandleEntity *ignore,
int collisionGroup, trace_t *ptr )
{
VPROF( "AI_TraceHull" );
UTIL_TraceHull( vecAbsStart, vecAbsEnd, hullMin, hullMax, mask, ignore, collisionGroup, ptr );
}
inline void AI_TraceHull( const Vector &vecAbsStart, const Vector &vecAbsEnd, const Vector &hullMin,
const Vector &hullMax, unsigned int mask, ITraceFilter *pFilter, trace_t *ptr )
{
VPROF( "AI_TraceHull" );
UTIL_TraceHull( vecAbsStart, vecAbsEnd, hullMin, hullMax, mask, pFilter, ptr );
}
inline void AI_TraceEntity( CBaseEntity *pEntity, const Vector &vecAbsStart, const Vector &vecAbsEnd, unsigned int mask, trace_t *ptr )
{
VPROF( "AI_TraceEntity" );
UTIL_TraceEntity( pEntity, vecAbsStart, vecAbsEnd, mask, ptr );
}
#else
#define AI_TraceLine UTIL_TraceLine
#define AI_TraceHull UTIL_TraceHull
#define AI_TraceEntity UTIL_TraceEntity
#endif
#endif // AI_DEBUG_SHARED_H