Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ctCatastropheManager Class Reference

this class provides an interface to sources of discontinuity in the physical simulation. More...

#include <ctcat.h>

List of all members.

Public Methods

 ctCatastropheManager ()
virtual real check_catastrophe ()=0
 check for a catastrophe and return a real indicating the "magnitude" of the worst ( bigger number ) catastrophe. More...

virtual void handle_catastrophe ()=0
 take care of the catastrophe so that when integrated forward that catasrophe will not exist.

virtual real get_epsilon ()
 Return epsilon value such that anything less than epsilon is treated as 0 for the catastrophe value ( and thus there is no catastrophe ).


Protected Attributes

real cat_epsilon


Detailed Description

this class provides an interface to sources of discontinuity in the physical simulation.

i.e. collision detection etc... Register it with ctWorld and check_cata- will be called each frame and handle_cat will be called if check_cata- return > 0.


Member Function Documentation

real ctCatastropheManager::check_catastrophe ( ) [pure virtual]
 

check for a catastrophe and return a real indicating the "magnitude" of the worst ( bigger number ) catastrophe.

Return 0 for no catastrophe


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000