aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/c_props.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/client/c_props.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/client/c_props.h')
-rw-r--r--sp/src/game/client/c_props.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/sp/src/game/client/c_props.h b/sp/src/game/client/c_props.h
new file mode 100644
index 00000000..86d96141
--- /dev/null
+++ b/sp/src/game/client/c_props.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef C_PROPS_H
+#define C_PROPS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "c_breakableprop.h"
+#include "props_shared.h"
+
+#define CDynamicProp C_DynamicProp
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+class C_DynamicProp : public C_BreakableProp
+{
+ DECLARE_CLASS( C_DynamicProp, C_BreakableProp );
+public:
+ DECLARE_NETWORKCLASS();
+
+ // constructor, destructor
+ C_DynamicProp( void );
+ ~C_DynamicProp( void );
+
+ void GetRenderBounds( Vector& theMins, Vector& theMaxs );
+ unsigned int ComputeClientSideAnimationFlags();
+ bool TestBoneFollowers( const Ray_t &ray, unsigned int fContentsMask, trace_t& tr );
+ bool TestCollision( const Ray_t &ray, unsigned int fContentsMask, trace_t& tr );
+
+private:
+ C_DynamicProp( const C_DynamicProp & );
+
+ bool m_bUseHitboxesForRenderBox;
+ int m_iCachedFrameCount;
+ Vector m_vecCachedRenderMins;
+ Vector m_vecCachedRenderMaxs;
+};
+
+#endif // C_PROPS_H