#ifndef __PBMSIMOBJECT_H__ #define __PBMSIMOBJECT_H__ /*************************************************************************** File: PBMSimObject.h Created: 02/06/2002 Author: Maxim Garber Computer Science Department University of North Carolina - Chapel Hill garber@cs.unc.edu Description: Base class for an object in a physical simulation. ----------------------------------------------------------------------------. Copyright 2001 Maxim Garber UNC Motion Planning Research Group *****************************************************************************/ class PBMSimObject { public: // pure virtual functions virtual void Update(float timeStep) = 0; virtual void Draw() = 0; virtual bool IsActive() = 0; }; /**************************************************************************** Function : PBMSimObjectActive Description: predicate function to test if the object is alive ****************************************************************************/ inline bool PBMSimObjectActive(PBMSimObject* object) { return object->IsActive(); } #endif //__PBMSIMOBJECT_H__