12#ifndef TT_INCLUDE__DYNAMICPHYSCLASS_H
13#define TT_INCLUDE__DYNAMICPHYSCLASS_H
16#include "DynamicPhysDefClass.h"
19class DynamicPhysClass :
public PhysClass
22 DynamicPhysClass(
void);
23 ~DynamicPhysClass(
void);
24 virtual DynamicPhysClass * As_DynamicPhysClass(
void) {
return this; }
25 void Init(
const DynamicPhysDefClass & definition);
26 virtual void Set_Model(RenderObjClass * model);
27 void Update_Visibility_Status(
void);
28 virtual int Get_Vis_Object_ID(
void);
29 virtual bool Is_Simulation_Disabled(
void) {
return _DisableDynamicPhysSimulation; }
30 virtual bool Is_Rendering_Disabled(
void) {
return _DisableDynamicPhysRendering || PhysClass::Is_Rendering_Disabled(); }
31 static void Disable_All_Simulation(
bool onoff) { _DisableDynamicPhysSimulation = onoff; }
32 static void Disable_All_Rendering(
bool onoff) { _DisableDynamicPhysRendering = onoff; }
33 virtual bool Save (ChunkSaveClass &csave);
34 virtual bool Load (ChunkLoadClass &cload);
35 virtual void On_Post_Load(
void);
37 void Internal_Update_Visibility_Status(
void);
38 bool DirtyVisObjectID;
40 unsigned int VisStatusLastUpdated;
42 static bool _DisableDynamicPhysSimulation;
43 static bool _DisableDynamicPhysRendering;
44 DynamicPhysClass(
const DynamicPhysClass &);
45 DynamicPhysClass & operator = (
const DynamicPhysClass &);