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

ExManagerParticuleSystem Class Reference

#include <ExManagerParticuleSystem.h>


Public Methods

 ExManagerParticuleSystem (void)
 ~ExManagerParticuleSystem (void)
void SetManagerTexture (ExManagerTexture *Texture)
void SetManagerPVS (ExManagerPVS *PVS)
void SetManagerCollision (ExManagerCollision *Collision)
bool LoadParticuleSysteme (const char *FileName)
int StartParticuleSysteme (char *param)
int StopParticuleSysteme (char *param)
int PauseParticuleSysteme (char *param)
int StartAllParticuleSysteme (void)
int StopAllParticuleSysteme (void)
int PauseAllParticuleSysteme (void)
int GetNumberEnableParticuleSysteme (void)
void ListParticuleSysteme (void)
void RecordToManagerPVS (void)

Data Fields

std::ostrstream * Consol
void(* WriteToConsol )(const char *Label)

Private Methods

void CreateVecPobject (void)

Private Attributes

ExManagerTextureManagerTexture
ExManagerPVSManagerPVS
ExManagerCollisionManagerCollision
std::vector< ExCSystemeParticule > * m_VecParticuleSysteme
std::vector< ExCSystemeParticule * > * m_VecPParticuleSysteme
std::vector< ExCSystemeParticule
>::iterator 
m_ItVecParticuleSysteme


Constructor & Destructor Documentation

ExManagerParticuleSystem void   
 

Definition at line 25 of file ExManagerParticuleSystem.cpp.

References ExManagerParticuleSystem(), Guard, m_VecParticuleSysteme, m_VecPParticuleSysteme, and UnGuard.

Referenced by ExManagerParticuleSystem(), and ~ExManagerParticuleSystem().

00026 {
00027 Guard(ExManagerParticuleSystem::ExManagerParticuleSystem(void))
00028         m_VecParticuleSysteme = new std::vector<ExCSystemeParticule>;
00029         m_VecPParticuleSysteme = new std::vector<ExCSystemeParticule *>;
00030 UnGuard
00031 }

~ExManagerParticuleSystem void   
 

Definition at line 34 of file ExManagerParticuleSystem.cpp.

References ExManagerParticuleSystem(), Guard, and UnGuard.

00035 {
00036 Guard(ExManagerParticuleSystem::~ExManagerParticuleSystem(void))
00037 UnGuard
00038 }


Member Function Documentation

void CreateVecPobject void    [private]
 

Definition at line 147 of file ExManagerParticuleSystem.cpp.

References Consol, CreateVecPobject(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, m_VecPParticuleSysteme, and UnGuard.

Referenced by CreateVecPobject(), and LoadParticuleSysteme().

00148 {
00149 Guard(void ExManagerParticuleSystem::CreateVecPobject(void))    
00150         m_VecPParticuleSysteme->clear();
00151         int i=0;
00152         for(m_ItVecParticuleSysteme=m_VecParticuleSysteme->begin();m_ItVecParticuleSysteme!=m_VecParticuleSysteme->end();m_ItVecParticuleSysteme++,i++)
00153         {
00154                 m_VecPParticuleSysteme->push_back(&m_VecParticuleSysteme->at(i));
00155         }
00156         *Consol<<"Number of Particule syteme :"<<m_VecPParticuleSysteme->size()<<std::endl;
00157 UnGuard
00158 }

int GetNumberEnableParticuleSysteme void    [inline]
 

Definition at line 78 of file ExManagerParticuleSystem.h.

References m_VecParticuleSysteme.

Referenced by PauseAllParticuleSysteme(), PauseParticuleSysteme(), StartAllParticuleSysteme(), StartParticuleSysteme(), StopAllParticuleSysteme(), and StopParticuleSysteme().

00078 {return m_VecParticuleSysteme->size();}

void ListParticuleSysteme void   
 

Definition at line 131 of file ExManagerParticuleSystem.cpp.

References Consol, Guard, ListParticuleSysteme(), m_ItVecParticuleSysteme, m_VecParticuleSysteme, and UnGuard.

Referenced by ListParticuleSysteme(), and ExManagerCommand::ProcessAction().

00132 {
00133 Guard(void ExManagerParticuleSystem::ListParticuleSysteme(void))
00134         for(m_ItVecParticuleSysteme=m_VecParticuleSysteme->begin();m_ItVecParticuleSysteme!=m_VecParticuleSysteme->end();m_ItVecParticuleSysteme++)
00135         {
00136                 if(m_ItVecParticuleSysteme->GetParticuleSystemeState())
00137                 {
00138                         *Consol<<"ParticuleSysteme :"<<m_ItVecParticuleSysteme->GetParticuleSystemeName()<<" State : Enable"<<std::endl; 
00139                 }else
00140                 {
00141                         *Consol<<"ParticuleSysteme :"<<m_ItVecParticuleSysteme->GetParticuleSystemeName()<<" State : Disable"<<std::endl;
00142                 }
00143         }
00144 UnGuard
00145 }

bool LoadParticuleSysteme const char *    FileName
 

Definition at line 41 of file ExManagerParticuleSystem.cpp.

References CreateVecPobject(), Guard, ExCSystemeParticule::LoadParticuleSysteme(), LoadParticuleSysteme(), m_VecParticuleSysteme, UnGuard, WriteToConsol, and ExCSystemeParticule::WriteToConsol.

Referenced by LoadParticuleSysteme(), and ExManagerCommand::ProcessAction().

00042 {
00043 Guard(bool ExManagerParticuleSystem::LoadParticuleSysteme(const char * FileName))
00044         ExCSystemeParticule     systeme;
00045         systeme.WriteToConsol=WriteToConsol;
00046         if(systeme.LoadParticuleSysteme(FileName))
00047         {
00048                 m_VecParticuleSysteme->push_back(systeme);
00049                 CreateVecPobject();
00050                 return true;
00051         }
00052         return false;
00053 UnGuard
00054 }

int PauseAllParticuleSysteme void   
 

Definition at line 120 of file ExManagerParticuleSystem.cpp.

References GetNumberEnableParticuleSysteme(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, PauseAllParticuleSysteme(), and UnGuard.

Referenced by PauseAllParticuleSysteme(), and ExManagerCommand::ProcessAction().

int PauseParticuleSysteme char *    param
 

Definition at line 84 of file ExManagerParticuleSystem.cpp.

References GetNumberEnableParticuleSysteme(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, PauseParticuleSysteme(), and UnGuard.

Referenced by PauseParticuleSysteme(), and ExManagerCommand::ProcessAction().

00085 {
00086 Guard(int ExManagerParticuleSystem::PauseParticuleSysteme(char *param))
00087         for(m_ItVecParticuleSysteme=m_VecParticuleSysteme->begin();m_ItVecParticuleSysteme!=m_VecParticuleSysteme->end();m_ItVecParticuleSysteme++)
00088         {
00089                 if(strcmp(m_ItVecParticuleSysteme->GetParticuleSystemeName(),param)==0)
00090                 {
00091                         m_ItVecParticuleSysteme->Pause();
00092                 }
00093         }
00094         return GetNumberEnableParticuleSysteme();
00095 UnGuard
00096 }

void RecordToManagerPVS void    [inline]
 

Definition at line 80 of file ExManagerParticuleSystem.h.

References m_VecPParticuleSysteme, and ExManagerPVS::SetVecSystemeParticule().

Referenced by SetManagerLink().

void SetManagerCollision ExManagerCollision   Collision [inline]
 

Definition at line 66 of file ExManagerParticuleSystem.h.

Referenced by SetManagerLink().

00066 {ManagerCollision = Collision;}

void SetManagerPVS ExManagerPVS   PVS [inline]
 

Definition at line 65 of file ExManagerParticuleSystem.h.

Referenced by SetManagerLink().

00065 {ManagerPVS = PVS;}

void SetManagerTexture ExManagerTexture   Texture [inline]
 

Definition at line 64 of file ExManagerParticuleSystem.h.

Referenced by SetManagerLink().

00064 {ManagerTexture = Texture;}

int StartAllParticuleSysteme void   
 

Definition at line 98 of file ExManagerParticuleSystem.cpp.

References GetNumberEnableParticuleSysteme(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, StartAllParticuleSysteme(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and StartAllParticuleSysteme().

int StartParticuleSysteme char *    param
 

Definition at line 56 of file ExManagerParticuleSystem.cpp.

References GetNumberEnableParticuleSysteme(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, StartParticuleSysteme(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and StartParticuleSysteme().

00057 {
00058 Guard(int ExManagerParticuleSystem::StartParticuleSysteme(char *param))
00059         for(m_ItVecParticuleSysteme=m_VecParticuleSysteme->begin();m_ItVecParticuleSysteme!=m_VecParticuleSysteme->end();m_ItVecParticuleSysteme++)
00060         {
00061                 if(strcmp(m_ItVecParticuleSysteme->GetParticuleSystemeName(),param)==0)
00062                 {
00063                         m_ItVecParticuleSysteme->Start();
00064                 }
00065         }
00066         return GetNumberEnableParticuleSysteme();
00067 UnGuard
00068 }

int StopAllParticuleSysteme void   
 

Definition at line 109 of file ExManagerParticuleSystem.cpp.

References GetNumberEnableParticuleSysteme(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, StopAllParticuleSysteme(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and StopAllParticuleSysteme().

int StopParticuleSysteme char *    param
 

Definition at line 70 of file ExManagerParticuleSystem.cpp.

References GetNumberEnableParticuleSysteme(), Guard, m_ItVecParticuleSysteme, m_VecParticuleSysteme, StopParticuleSysteme(), and UnGuard.

Referenced by ExManagerCommand::ProcessAction(), and StopParticuleSysteme().

00071 {
00072 Guard(int ExManagerParticuleSystem::StopParticuleSysteme(char *param))
00073         for(m_ItVecParticuleSysteme=m_VecParticuleSysteme->begin();m_ItVecParticuleSysteme!=m_VecParticuleSysteme->end();m_ItVecParticuleSysteme++)
00074         {
00075                 if(strcmp(m_ItVecParticuleSysteme->GetParticuleSystemeName(),param)==0)
00076                 {
00077                         m_ItVecParticuleSysteme->Stop();
00078                 }
00079         }
00080         return GetNumberEnableParticuleSysteme();
00081 UnGuard
00082 }


Field Documentation

std::ostrstream* Consol
 

Definition at line 61 of file ExManagerParticuleSystem.h.

Referenced by CreateVecPobject(), ListParticuleSysteme(), and SetManagerLink().

std::vector<ExCSystemeParticule>::iterator m_ItVecParticuleSysteme [private]
 

Definition at line 49 of file ExManagerParticuleSystem.h.

Referenced by CreateVecPobject(), ListParticuleSysteme(), PauseAllParticuleSysteme(), PauseParticuleSysteme(), StartAllParticuleSysteme(), StartParticuleSysteme(), StopAllParticuleSysteme(), and StopParticuleSysteme().

std::vector<ExCSystemeParticule>* m_VecParticuleSysteme [private]
 

Definition at line 47 of file ExManagerParticuleSystem.h.

Referenced by CreateVecPobject(), ExManagerParticuleSystem(), GetNumberEnableParticuleSysteme(), ListParticuleSysteme(), LoadParticuleSysteme(), PauseAllParticuleSysteme(), PauseParticuleSysteme(), StartAllParticuleSysteme(), StartParticuleSysteme(), StopAllParticuleSysteme(), and StopParticuleSysteme().

std::vector<ExCSystemeParticule*>* m_VecPParticuleSysteme [private]
 

Definition at line 48 of file ExManagerParticuleSystem.h.

Referenced by CreateVecPobject(), ExManagerParticuleSystem(), and RecordToManagerPVS().

ExManagerCollision* ManagerCollision [private]
 

Definition at line 45 of file ExManagerParticuleSystem.h.

ExManagerPVS* ManagerPVS [private]
 

Definition at line 44 of file ExManagerParticuleSystem.h.

ExManagerTexture* ManagerTexture [private]
 

Definition at line 43 of file ExManagerParticuleSystem.h.

void(* WriteToConsol)(const char *Label)
 

Referenced by LoadParticuleSysteme(), and SetManagerLink().


The documentation for this class was generated from the following files:
Generated on Tue Aug 6 20:27:27 2002 for ExNihilo by doxygen1.2.17