reactive.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003-2004 by David Saxton                               *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef REACTIVE_H
00012 #define REACTIVE_H
00013 
00014 #include "element.h"
00015 
00020 class Reactive : public Element
00021 {
00022 public:
00023         Reactive( const double delta );
00024         virtual ~Reactive();
00025         
00026         virtual bool isReactive() { return true; }
00030         void setDelta( double delta );
00034         virtual void time_step() = 0;
00035         
00036 protected:
00037         virtual bool updateStatus();
00038         
00039         double m_delta; // Delta time interval
00040 };
00041 
00042 #endif

Generated on Tue May 8 17:05:32 2007 for KTechLab by  doxygen 1.5.1