Advertisement
captmicro

Untitled

Oct 24th, 2012
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.66 KB | None | 0 0
  1. class CTraceFilterSimple : public CTraceFilter
  2. {
  3. public:
  4.     // It does have a base, but we'll never network anything below here..
  5.     DECLARE_CLASS_NOBASE( CTraceFilterSimple );
  6.    
  7.     CTraceFilterSimple( const IHandleEntity *passentity, int collisionGroup );
  8.     virtual bool ShouldHitEntity( IHandleEntity *pHandleEntity, int contentsMask );
  9.     virtual void SetPassEntity( const IHandleEntity *pPassEntity ) { m_pPassEnt = pPassEntity; }
  10.     virtual void SetCollisionGroup( int iCollisionGroup ) { m_collisionGroup = iCollisionGroup; }
  11.  
  12.     const IHandleEntity *GetPassEntity( void ){ return m_pPassEnt;}
  13.  
  14. private:
  15.     const IHandleEntity *m_pPassEnt;
  16.     int m_collisionGroup;
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement