28 #ifndef HPL_PHYSICS_JOINT_SCREW_H 29 #define HPL_PHYSICS_JOINT_SCREW_H 31 #include "hpl1/engine/physics/PhysicsJoint.h" 37 kSaveData_ChildClass(iPhysicsJoint, iPhysicsJointScrew) {
38 kSaveData_ClassInit(iPhysicsJointScrew) public :
float mfMaxDistance;
42 virtual iSaveObject *CreateSaveObject(cSaveObjectHandler * apSaveObjectHandler, cGame * apGame);
43 virtual int GetSaveCreatePrio();
54 :
iPhysicsJoint(asName, apParentBody, apChildBody, apWorld, avPivotPoint) {}
64 virtual void SetMinDistance(
float afX) = 0;
65 virtual float GetMaxDistance() = 0;
66 virtual float GetMinDistance() = 0;
68 ePhysicsJointType GetType() {
return ePhysicsJointType_Screw; }
85 #endif // HPL_PHYSICS_JOINT_SCREW_H
virtual iSaveData * CreateSaveData()
Definition: PhysicsWorld.h:115
virtual void SaveToSaveData(iSaveData *apSaveData)
Definition: SaveGame.h:130
virtual void SaveDataSetup(cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
Definition: PhysicsJointScrew.h:48
Definition: PhysicsBody.h:117
Definition: SaveGame.h:111
virtual void SetMaxDistance(float afX)=0
virtual void LoadFromSaveData(iSaveData *apSaveData)
Definition: PhysicsJoint.h:135
Definition: SaveGame.h:183