-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathClimableObject.h
34 lines (30 loc) · 1.18 KB
/
ClimableObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "physicsshellholder.h"
class CPHStaticGeomShell;
class CPHCharacter;
class CClimableObject: public CPhysicsShellHolder
#ifdef DEBUG
,public pureRender
#endif
{
typedef CPhysicsShellHolder inherited;
CPHStaticGeomShell* m_pStaticShell;
Fobb m_box;
float m_radius;
public:
CClimableObject ();
~CClimableObject ();
virtual void Load ( LPCSTR section);
virtual BOOL net_Spawn ( LPVOID DC);
virtual void net_Destroy ();
virtual void shedule_Update ( u32 dt); // Called by sheduler
virtual void UpdateCL ( ); // Called each frame, so no need for dt
virtual void Center (Fvector &C) const;
virtual float Radius () const;
#ifdef DEBUG
virtual void OnRender ();
#endif
float DistLoverEdge (CPHCharacter *actor);
float DistApperEdge (CPHCharacter *actor);
void DefineClimbState (CPHCharacter *actor);
};