doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
idForce_Spring Class Reference

#include <Force_Spring.h>

Inheritance diagram for idForce_Spring:
idForce idClass

Public Member Functions

 CLASS_PROTOTYPE (idForce_Spring)
 
 idForce_Spring (void)
 
virtual ~idForce_Spring (void)
 
void InitSpring (float Kstretch, float Kcompress, float damping, float restLength)
 
void SetPosition (idPhysics *physics1, int id1, const idVec3 &p1, idPhysics *physics2, int id2, const idVec3 &p2)
 
virtual void Evaluate (int time)
 
virtual void RemovePhysics (const idPhysics *phys)
 
- Public Member Functions inherited from idForce
 CLASS_PROTOTYPE (idForce)
 
 idForce (void)
 
virtual ~idForce (void)
 
- Public Member Functions inherited from idClass
 ABSTRACT_PROTOTYPE (idClass)
 
voidoperator new (size_t)
 
voidoperator new (size_t s, int, int, char *, int)
 
void operator delete (void *)
 
void operator delete (void *, int, int, char *, int)
 
virtual ~idClass ()
 
void Spawn (void)
 
void CallSpawn (void)
 
bool IsType (const idTypeInfo &c) const
 
const char * GetClassname (void) const
 
const char * GetSuperclass (void) const
 
void FindUninitializedMemory (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool RespondsTo (const idEventDef &ev) const
 
bool PostEventMS (const idEventDef *ev, int time)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool PostEventSec (const idEventDef *ev, float time)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEvent (const idEventDef *ev)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEventArgPtr (const idEventDef *ev, int *data)
 
void CancelEvents (const idEventDef *ev)
 
void Event_Remove (void)
 

Private Attributes

float Kstretch
 
float Kcompress
 
float damping
 
float restLength
 
idPhysicsphysics1
 
int id1
 
idVec3 p1
 
idPhysicsphysics2
 
int id2
 
idVec3 p2
 

Additional Inherited Members

- Static Public Member Functions inherited from idForce
static void DeletePhysics (const idPhysics *phys)
 
static void ClearForceList (void)
 
- Static Public Member Functions inherited from idClass
static void Init (void)
 
static void Shutdown (void)
 
static idTypeInfoGetClass (const char *name)
 
static void DisplayInfo_f (const idCmdArgs &args)
 
static void ListClasses_f (const idCmdArgs &args)
 
static idClassCreateInstance (const char *name)
 
static int GetNumTypes (void)
 
static int GetTypeNumBits (void)
 
static idTypeInfoGetType (int num)
 

Detailed Description

Definition at line 40 of file Force_Spring.h.

Constructor & Destructor Documentation

END_CLASS idForce_Spring::idForce_Spring ( void  )

Definition at line 42 of file Force_Spring.cpp.

idForce_Spring::~idForce_Spring ( void  )
virtual

Definition at line 60 of file Force_Spring.cpp.

Member Function Documentation

idForce_Spring::CLASS_PROTOTYPE ( idForce_Spring  )
void idForce_Spring::Evaluate ( int  time)
virtual

Reimplemented from idForce.

Definition at line 94 of file Force_Spring.cpp.

void idForce_Spring::InitSpring ( float  Kstretch,
float  Kcompress,
float  damping,
float  restLength 
)

Definition at line 68 of file Force_Spring.cpp.

void idForce_Spring::RemovePhysics ( const idPhysics phys)
virtual

Reimplemented from idForce.

Definition at line 158 of file Force_Spring.cpp.

void idForce_Spring::SetPosition ( idPhysics physics1,
int  id1,
const idVec3 p1,
idPhysics physics2,
int  id2,
const idVec3 p2 
)

Definition at line 80 of file Force_Spring.cpp.

Member Data Documentation

float idForce_Spring::damping
private

Definition at line 62 of file Force_Spring.h.

int idForce_Spring::id1
private

Definition at line 67 of file Force_Spring.h.

int idForce_Spring::id2
private

Definition at line 70 of file Force_Spring.h.

float idForce_Spring::Kcompress
private

Definition at line 61 of file Force_Spring.h.

float idForce_Spring::Kstretch
private

Definition at line 60 of file Force_Spring.h.

idVec3 idForce_Spring::p1
private

Definition at line 68 of file Force_Spring.h.

idVec3 idForce_Spring::p2
private

Definition at line 71 of file Force_Spring.h.

idPhysics* idForce_Spring::physics1
private

Definition at line 66 of file Force_Spring.h.

idPhysics* idForce_Spring::physics2
private

Definition at line 69 of file Force_Spring.h.

float idForce_Spring::restLength
private

Definition at line 63 of file Force_Spring.h.


The documentation for this class was generated from the following files: