Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members
dynmove.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2003 by Jorrit Tyberghein 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef __CEL_PF_DYNMOVE__ 00021 #define __CEL_PF_DYNMOVE__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 00026 class csVector3; 00027 class csBox3; 00028 class csOrthoTransform; 00029 class csPlane3; 00030 struct iDynamicSystem; 00031 struct iRigidBody; 00032 struct iPcMesh; 00033 struct iPcDynamicBody; 00034 00035 SCF_VERSION (iPcDynamicSystem, 0, 0, 1); 00036 00040 struct iPcDynamicSystem : public iBase 00041 { 00043 virtual iDynamicSystem* GetDynamicSystem () = 0; 00047 virtual void SetStepTime (float delta) = 0; 00049 virtual float GetStepTime () const = 0; 00050 00056 virtual void AddForceDuration (iPcDynamicBody* pcbody, 00057 const csVector3& force, float seconds) = 0; 00058 00063 virtual void AddForceFrame (iPcDynamicBody* pcbody, 00064 const csVector3& force) = 0; 00065 00070 virtual void ClearForces (iPcDynamicBody* pcbody) = 0; 00071 00075 virtual void ClearAllForces () = 0; 00076 }; 00077 00078 SCF_VERSION (iPcDynamicBody, 0, 1, 0); 00079 00083 struct iPcDynamicBody : public iBase 00084 { 00090 virtual void SetMesh (iPcMesh* mesh) = 0; 00091 00093 virtual iPcMesh* GetMesh () = 0; 00094 00098 virtual void SetDynamicSystem (iPcDynamicSystem* dynsys) = 0; 00099 00101 virtual iPcDynamicSystem* GetDynamicSystem () = 0; 00102 00104 virtual iRigidBody* GetBody () = 0; 00105 00111 virtual void SetParameters (float friction, float density, 00112 float elasticity, float softness, float mass) = 0; 00113 00117 virtual void MakeStatic (bool stat) = 0; 00119 virtual bool IsStatic () const = 0; 00120 00122 virtual void AttachColliderSphere (float radius, const csVector3& offset) = 0; 00123 00125 virtual void AttachColliderCylinder (float length, float radius, 00126 const csOrthoTransform& trans) = 0; 00127 00129 virtual void AttachColliderBox (const csVector3& size, 00130 const csOrthoTransform& trans) = 0; 00131 00133 virtual void AttachColliderPlane (const csPlane3& plane) = 0; 00134 00136 virtual void AttachColliderMesh () = 0; 00137 00141 virtual void AddForceOnce (const csVector3& force) = 0; 00142 00147 virtual void AddForceDuration (const csVector3& force, float seconds) = 0; 00148 00152 virtual void AddForceFrame (const csVector3& force) = 0; 00153 00157 virtual void ClearForces () = 0; 00158 }; 00159 00160 #endif // __CEL_PF_DYNMOVE__ 00161
Generated for CEL: Crystal Entity Layer by doxygen 1.4.4