74 lines
1.2 KiB
C++
74 lines
1.2 KiB
C++
// Copyright (C) 2007 Id Software, Inc.
|
|
//
|
|
|
|
#include "../precompiled.h"
|
|
#pragma hdrstop
|
|
|
|
#if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE )
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
#include "Force.h"
|
|
|
|
CLASS_DECLARATION( idClass, idForce )
|
|
END_CLASS
|
|
|
|
idList<idForce*> idForce::forceList;
|
|
|
|
/*
|
|
================
|
|
idForce::idForce
|
|
================
|
|
*/
|
|
idForce::idForce( void ) {
|
|
forceList.Append( this );
|
|
}
|
|
|
|
/*
|
|
================
|
|
idForce::~idForce
|
|
================
|
|
*/
|
|
idForce::~idForce( void ) {
|
|
forceList.Remove( this );
|
|
}
|
|
|
|
/*
|
|
================
|
|
idForce::DeletePhysics
|
|
================
|
|
*/
|
|
void idForce::DeletePhysics( const idPhysics *phys ) {
|
|
int i;
|
|
|
|
for ( i = 0; i < forceList.Num(); i++ ) {
|
|
forceList[i]->RemovePhysics( phys );
|
|
}
|
|
}
|
|
|
|
/*
|
|
================
|
|
idForce::ClearForceList
|
|
================
|
|
*/
|
|
void idForce::ClearForceList( void ) {
|
|
forceList.Clear();
|
|
}
|
|
|
|
/*
|
|
================
|
|
idForce::Evaluate
|
|
================
|
|
*/
|
|
void idForce::Evaluate( int time ) {
|
|
}
|
|
|
|
/*
|
|
================
|
|
idForce::RemovePhysics
|
|
================
|
|
*/
|
|
void idForce::RemovePhysics( const idPhysics *phys ) {
|
|
}
|