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