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

ExManagerLight Class Reference

#include <ExManagerLight.h>


Public Methods

 ExManagerLight (void)
 ~ExManagerLight (void)
void SetManagerPVS (ExManagerPVS *PVS)
void SetManagerCollision (ExManagerCollision *Collision)
void SetManagerId (ExManagerId *Id)
void Reset (void)
void Init (void)
bool Init (char *FileName)
ExId NewObject (void)
ExCLightGet (char *Name)
ExCLightGet (ExId Id)
ExId Add (ExCLight Object)
bool Remove (ExId Id)
ExId GetIdByName (char *Name)
char * GetNameById (ExId Id)

Data Fields

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

Private Methods

void RegisterToPVS (ExId Id)

Private Attributes

ExManagerPVSManagerPVS
ExManagerCollisionManagerCollision
ExManagerIdManagerId
std::vector< ExCLightm_VecLight
std::vector< ExCLight >::iterator m_ItVecLight


Constructor & Destructor Documentation

ExManagerLight void   
 

Definition at line 26 of file ExManagerLight.cpp.

References ExManagerLight(), Guard, and UnGuard.

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

00027 {
00028 Guard(ExManagerLight::ExManagerLight(void))
00029 UnGuard
00030 }

~ExManagerLight void   
 

Definition at line 33 of file ExManagerLight.cpp.

References ExManagerLight(), Guard, and UnGuard.

00034 {
00035 Guard(ExManagerLight::~ExManagerLight(void))
00036 UnGuard
00037 }


Member Function Documentation

ExId Add ExCLight    Object
 

Definition at line 106 of file ExManagerLight.cpp.

References Add(), ExId, ExCObject::GetId(), Guard, m_VecLight, and UnGuard.

Referenced by Add().

00107 {
00108 Guard(ExId ExManagerLight::Add(ExCLight Object))
00109         m_VecLight.push_back(Object);
00110         return Object.GetId();
00111 UnGuard
00112 }

ExCLight * Get ExId    Id
 

Definition at line 90 of file ExManagerLight.cpp.

References ExId, Get(), Guard, m_ItVecLight, m_VecLight, and UnGuard.

00091 {
00092 Guard(ExCLight * ExManagerLight::Get(ExId Id))
00093         int i=0;
00094         for(m_ItVecLight=m_VecLight.begin();m_ItVecLight!=m_VecLight.end();m_ItVecLight++,i++)
00095         {
00096                 if(m_ItVecLight->GetId()==Id)
00097                 {
00098                         return &m_VecLight.at(i);
00099                 }
00100         }
00101         return NULL;    
00102 UnGuard
00103 }

ExCLight * Get char *    Name
 

Definition at line 74 of file ExManagerLight.cpp.

References Get(), Guard, m_ItVecLight, m_VecLight, and UnGuard.

Referenced by Get().

00075 {
00076 Guard(ExCLight * ExManagerLight::Get(char * Name))
00077         int i=0;
00078         for(m_ItVecLight=m_VecLight.begin();m_ItVecLight!=m_VecLight.end();m_ItVecLight++,i++)
00079         {
00080                 if(strcmp(m_ItVecLight->GetName(),Name)==0)
00081                 {
00082                         return &m_VecLight.at(i);
00083                 }
00084         }
00085         return NULL;
00086 UnGuard
00087 }

ExId GetIdByName char *    Name
 

Definition at line 131 of file ExManagerLight.cpp.

References ExId, GetIdByName(), Guard, m_ItVecLight, m_VecLight, and UnGuard.

Referenced by GetIdByName().

00132 {
00133 Guard(ExId ExManagerLight::GetIdByName(char *Name))
00134         for(m_ItVecLight=m_VecLight.begin();m_ItVecLight!=m_VecLight.end();m_ItVecLight++)
00135         {
00136                 if(strcmp(m_ItVecLight->GetName(),Name)==0)
00137                 {
00138                         return m_ItVecLight->GetId();
00139                 }
00140         }
00141         return -1;
00142 UnGuard
00143 }

char * GetNameById ExId    Id
 

Definition at line 146 of file ExManagerLight.cpp.

References ExId, GetNameById(), Guard, m_ItVecLight, m_VecLight, and UnGuard.

Referenced by GetNameById().

00147 {
00148 Guard(char * ExManagerLight::GetNameById(ExId Id))
00149         for(m_ItVecLight=m_VecLight.begin();m_ItVecLight!=m_VecLight.end();m_ItVecLight++)
00150         {
00151                 if(m_ItVecLight->GetId()==Id)
00152                 {
00153                         return m_ItVecLight->GetName();
00154                 }
00155         }
00156         return NULL;
00157 UnGuard
00158 }

bool Init char *    FileName
 

Definition at line 55 of file ExManagerLight.cpp.

References Guard, Init(), and UnGuard.

00056 {
00057 Guard(bool  ExManagerLight::Init(char * FileName))
00058         //openf file and load object
00059         return true;
00060 UnGuard
00061 }

void Init void   
 

Definition at line 48 of file ExManagerLight.cpp.

References Guard, Init(), and UnGuard.

Referenced by Init().

00049 {
00050 Guard(void  ExManagerLight::Init(void))
00051 UnGuard
00052 }

ExId NewObject void   
 

Definition at line 64 of file ExManagerLight.cpp.

References ExId, ExCObject::GetId(), Guard, m_VecLight, NewObject(), and UnGuard.

Referenced by NewObject().

00065 {
00066 Guard(ExId  ExManagerLight::NewObject(void))
00067         ExCLight NewLight;
00068         m_VecLight.push_back(NewLight);
00069         return NewLight.GetId();
00070 UnGuard
00071 }

void RegisterToPVS ExId    Id [private]
 

bool Remove ExId    Id
 

Definition at line 115 of file ExManagerLight.cpp.

References ExId, Guard, m_ItVecLight, m_VecLight, Remove(), and UnGuard.

Referenced by Remove().

00116 {
00117 Guard(bool ExManagerLight::Remove(ExId Id))
00118         for(m_ItVecLight=m_VecLight.begin();m_ItVecLight!=m_VecLight.end();m_ItVecLight++)
00119         {
00120                 if(m_ItVecLight->GetId()==Id)
00121                 {
00122                         m_VecLight.erase(m_ItVecLight);
00123                         return true;
00124                 }
00125         }
00126         return false;
00127 UnGuard
00128 }

void Reset void   
 

Definition at line 40 of file ExManagerLight.cpp.

References Guard, m_VecLight, Reset(), and UnGuard.

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

00041 {
00042 Guard(void  ExManagerLight::Reset(void))
00043         m_VecLight.clear();
00044 UnGuard
00045 }

void SetManagerCollision ExManagerCollision   Collision [inline]
 

Definition at line 63 of file ExManagerLight.h.

Referenced by SetManagerLink().

00063 {ManagerCollision = Collision;}

void SetManagerId ExManagerId   Id [inline]
 

Definition at line 64 of file ExManagerLight.h.

Referenced by SetManagerLink().

00064 {ManagerId      = Id;}

void SetManagerPVS ExManagerPVS   PVS [inline]
 

Definition at line 62 of file ExManagerLight.h.

Referenced by SetManagerLink().

00062 {ManagerPVS = PVS;}


Field Documentation

std::ostrstream* Consol
 

Definition at line 59 of file ExManagerLight.h.

Referenced by SetManagerLink().

std::vector<ExCLight>::iterator m_ItVecLight [private]
 

Definition at line 47 of file ExManagerLight.h.

Referenced by Get(), GetIdByName(), GetNameById(), and Remove().

std::vector<ExCLight> m_VecLight [private]
 

Definition at line 46 of file ExManagerLight.h.

Referenced by Add(), Get(), GetIdByName(), GetNameById(), NewObject(), Remove(), and Reset().

ExManagerCollision* ManagerCollision [private]
 

Definition at line 43 of file ExManagerLight.h.

ExManagerId* ManagerId [private]
 

Definition at line 44 of file ExManagerLight.h.

ExManagerPVS* ManagerPVS [private]
 

Definition at line 42 of file ExManagerLight.h.

void(* WriteToConsol)(const char *Label)
 

Referenced by 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