Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

ExManagerObject.h

Go to the documentation of this file.
00001 /*
00002  * ExNihilo 3D Engine
00003  * 
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  *
00018  * Please read AUTHORS file !!!
00019  * 
00020  * $Id: ExManagerObject.h,v 1.4 2002/06/16 00:51:03 binny Exp $
00021  *
00022  */
00023 
00024 #ifndef __EXMANAGEROBJECT_H__
00025 #define __EXMANAGEROBJECT_H__
00026 //--------------------------------
00027 // File to include
00028 //--------------------------------
00029 #include "ExDefine.h"
00030 #include "ExMath.h"
00031 #include "ExManagerPVS.h"
00032 #include "ExManagerCollision.h"
00033 //--------------------------------
00034 template <class TypeA>
00035 class ExManagerObject
00036 {
00037 protected:
00038 //--------------------------------
00039 // Variable
00040 //--------------------------------
00041         ExManagerPVS                            *ManagerPVS;
00042         ExManagerCollision                      *ManagerCollision;
00043 //--------------------------------
00044 //Using vector 
00045 //--------------------------------
00046         std::vector<TypeA> m_Vec;
00047         typename std::vector<TypeA>::iterator m_ItVec;
00048 public :
00049 //--------------------------------
00050 // Constructor // Destructor
00051 //--------------------------------
00052         ExManagerObject();
00053         ~ExManagerObject();
00054 //--------------------------------
00055 // Methode
00056 //--------------------------------
00057         inline void SetManagerPVS(ExManagerPVS * PVS){ManagerPVS = PVS;}
00058         inline void SetManagerCollision(ExManagerCollision *Collision){ManagerCollision = Collision;}
00059         void Reset(void);
00060 };
00061 
00062 template<class TypeA>
00063 ExManagerObject<TypeA>::ExManagerObject(void)
00064 {
00065 Guard(ExManagerObject<TypeA>::ExManagerObject(void))
00066 UnGuard
00067 }
00068 
00069 template<class TypeA>
00070 ExManagerObject<TypeA>::~ExManagerObject(void)
00071 {
00072 Guard(ExManagerObject<TypeA>::~ExManagerObject(void))
00073 UnGuard
00074 }
00075 
00076 template<class TypeA>
00077 void  ExManagerObject<TypeA>::Reset(void)
00078 {
00079 Guard(void  ExManagerObject<TypeA>::Reset(void))
00080         m_Vec.clear();
00081 UnGuard
00082 }
00083 
00084 
00085 
00086 #endif //__EXMANAGEROBJECT_H__

Generated on Tue Aug 6 20:27:14 2002 for ExNihilo by doxygen1.2.17