00001 00003 // 00004 // -= Operator =- 00005 // 00006 // Definition: "Base class for all DynamicSystem operators" 00007 // 00009 // 00010 // $RCSfile: Operator.h,v $ 00011 // $Date: 2002/01/10 03:10:47 $ 00012 // $Revision: 1.4 $ 00013 // Copyright (C) 1998, 1999, 2000 Kevin Meinert, kevin@vrsource.org 00014 // 00015 // This library is free software; you can redistribute it and/or 00016 // modify it under the terms of the GNU Library General Public 00017 // License as published by the Free Software Foundation; either 00018 // version 2 of the License, or (at your option) any later version. 00019 // 00020 // This library is distributed in the hope that it will be useful, 00021 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 // Library General Public License for more details. 00024 // 00025 // You should have received a copy of the GNU Library General Public 00026 // License along with this library; if not, write to the Free 00027 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00028 // 00030 #ifndef PS_OPERATOR_H 00031 #define PS_OPERATOR_H 00032 #include <vector> 00033 00034 #include "ani/Dynamics/Operator.h" 00035 #include "ani/Dynamics/Memory.h" 00036 00037 namespace ani 00038 { 00039 template <class __EntityType> 00040 class DynamicSystem; 00041 00042 template<class __EntityType> 00043 class Operator : public ani::Memory 00044 { 00045 public: 00046 Operator() 00047 { 00048 } 00049 virtual ~Operator() {} 00050 virtual void exec( ani::DynamicSystem<__EntityType>& ps, float timeDelta ) = 0; 00051 }; 00052 }; 00053 00054 #endif