Page principale | Liste des namespaces | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Membres des namespaces | Composants | Déclarations

Référence de la classe ExManagerMap

#include <ExManagerMap.h>

Graphe d'héritage de la classe ExManagerMap

ExManager

Membres publics

void Init (void)
void Reset (void)
ExCAction InputCommand (ExCCommand Command)
ExCAction InputAction (ExCAction Action)
void SetManagerId (ExManagerId *Id)
void SetManagerTexture (ExManagerTexture *Texture)
void SetManagerFog (ExManagerFog *Fog)
void Draw (void)
void LoadSkybox (std::string FileName)
void Load (std::string FileName)
void SetFlux (std::ostrstream *consol, ExCFluxAction *action)
bool GetStatus (void)
void SetStatus (bool status)
void SetAskForCommand (bool status)
void SetAskForExclusifCommand (bool status)
bool AskForCommand (void)
bool AskForExclusifCommand (void)
virtual void Reload (void)

Membres publics statiques

ExManagerMapCreateSingleton (void)

Attributs Publics

std::ostrstream * Consol
ExCFluxActionFluxAction

Attributs Protégés

bool m_Status
bool m_AskForCommand
bool m_Exclusif

Membres privés

 ExManagerMap (void)
 ~ExManagerMap (void)

Attributs Privés

ExManagerIdManagerId
ExManagerTextureManagerTexture
ExManagerFogManagerFog
ExCHeightMapHeightMap
ExCSkyBoxSkybox
bool MapLoaded
bool SkyLoaded

Attributs Privés Statiques

bool m_flag = false
ExManagerMapm_instance = NULL

Documentation des contructeurs et destructeurs

ExManagerMap::ExManagerMap void   )  [private]
 

Définition à la ligne 43 du fichier ExManagerMap.cpp.

Références MapLoaded, et SkyLoaded.

00044 {
00045         MapLoaded=false;
00046         SkyLoaded=false;
00047 }

ExManagerMap::~ExManagerMap void   )  [private]
 

Définition à la ligne 49 du fichier ExManagerMap.cpp.

00050 {
00051 }


Documentation des méthodes

bool ExManager::AskForCommand void   )  [inline, inherited]
 

Définition à la ligne 89 du fichier ExManager.h.

Références ExManager::m_AskForCommand.

Référencé par ExManagerCommand::InputCommand().

00089 {return m_AskForCommand;}

bool ExManager::AskForExclusifCommand void   )  [inline, inherited]
 

Définition à la ligne 90 du fichier ExManager.h.

Références ExManager::m_Exclusif.

Référencé par ExManagerCommand::InputCommand().

00090 {return m_Exclusif;}

ExManagerMap * ExManagerMap::CreateSingleton void   )  [static]
 

Définition à la ligne 29 du fichier ExManagerMap.cpp.

Références CreateSingleton(), Guard, m_flag, m_instance, et UnGuard.

Référencé par CreateManager(), et CreateSingleton().

00029                                                {
00030 Guard(ExManagerMap* ExManagerMap::CreateSingleton(void))
00031         if(!m_flag)
00032         {
00033                 m_flag = true; // We are creating the error log now, so set flag to true
00034                 m_instance = new ExManagerMap; // Create the error log
00035         }else
00036         {
00037                 std::cout<<"Error singleton already created"<<std::endl;
00038         }
00039         return m_instance; 
00040 UnGuard
00041 }

void ExManagerMap::Draw void   ) 
 

Définition à la ligne 102 du fichier ExManagerMap.cpp.

Références ExCSkyBox::Draw(), ExCHeightMap::Draw(), Draw(), Guard, HeightMap, MapLoaded, Skybox, SkyLoaded, et UnGuard.

Référencé par Draw(), et ExManagerOutput::DrawScene().

00103 {
00104 Guard(void ExManagerMap::Draw(void))
00105         if(MapLoaded)
00106         {
00107                 HeightMap->Draw();
00108         }
00109         if(SkyLoaded)
00110         {
00111                 Skybox->Draw();
00112         }
00113 UnGuard
00114 }

bool ExManager::GetStatus void   )  [inline, inherited]
 

Définition à la ligne 85 du fichier ExManager.h.

Références ExManager::m_Status.

Référencé par ExManagerInterface::Draw(), ExManagerConsole::Draw(), et ExManagerOutput::DrawScene().

00085 {return m_Status;}

void ExManagerMap::Init void   )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 53 du fichier ExManagerMap.cpp.

Référencé par PreInitManager().

00054 {
00055 
00056 }

ExCAction ExManagerMap::InputAction ExCAction  Action  )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 123 du fichier ExManagerMap.cpp.

Références ExManager::Consol, ExCHeightMap::DereaseDetailLevel(), ExCHeightMap::DereaseFogDepthLevel(), ExCHeightMap::DereaseTexture2Repetition(), ExCObject::GetFileName(), ExCHeightMap::GetFogState(), Guard, HeightMap, HEIGHTMAP_DECREASE_DETAIL_LEVEL, HEIGHTMAP_DECREASE_FOG_DEPHT_LEVEL, HEIGHTMAP_DECREASE_TEXTURE_2_REPETITION, HEIGHTMAP_DISABLE_FOG, HEIGHTMAP_ENABLE_FOG, HEIGHTMAP_INCREASE_DETAIL_LEVEL, HEIGHTMAP_INCREASE_FOG_DEPHT_LEVEL, HEIGHTMAP_INCREASE_TEXTURE_2_REPETITION, HEIGHTMAP_SWITCH_FOG, ExCHeightMap::IncreaseDetailLevel(), ExCHeightMap::IncreaseFogDepthLevel(), ExCHeightMap::IncreaseTexture2Repetition(), InputAction(), ExCHeightMap::Load(), ExCSkyBox::Load(), ExCAction::m_Action, ExCAction::m_NextAction, MapLoaded, NOTHING, RELOAD_MANAGER_MAP, ExCHeightMap::SetFogState(), Skybox, SkyLoaded, et UnGuard.

Référencé par InputAction(), et ExManagerCommand::ProcesExCAction().

00124 {
00125 Guard(ExCAction ExManagerMap::InputAction(ExCAction Action))
00126         switch(Action.m_Action)
00127         {
00128         
00129         case HEIGHTMAP_INCREASE_DETAIL_LEVEL:HeightMap->IncreaseDetailLevel();break;
00130         case HEIGHTMAP_DECREASE_DETAIL_LEVEL:HeightMap->DereaseDetailLevel();break;
00131         case HEIGHTMAP_ENABLE_FOG:HeightMap->SetFogState(true);break;
00132         case HEIGHTMAP_DISABLE_FOG:HeightMap->SetFogState(false);break;
00133         case HEIGHTMAP_SWITCH_FOG:HeightMap->GetFogState()? HeightMap->SetFogState(false):HeightMap->SetFogState(true);
00134 
00135         case HEIGHTMAP_INCREASE_FOG_DEPHT_LEVEL:HeightMap->IncreaseFogDepthLevel();break;
00136         case HEIGHTMAP_DECREASE_FOG_DEPHT_LEVEL:HeightMap->DereaseFogDepthLevel();break;
00137 
00138         case HEIGHTMAP_INCREASE_TEXTURE_2_REPETITION:HeightMap->IncreaseTexture2Repetition();break;
00139         case HEIGHTMAP_DECREASE_TEXTURE_2_REPETITION:HeightMap->DereaseTexture2Repetition();break;
00140         case RELOAD_MANAGER_MAP:
00141                 if(SkyLoaded)Skybox->Load(Skybox->GetFileName());
00142                 if(MapLoaded)HeightMap->Load(HeightMap->GetFileName());
00143                 break;
00144         default:
00145                 *Consol<<"Can not file action in MAP_ACTION_MAP"<<std::endl;
00146                 break;
00147         }       
00148         if(Action.m_NextAction){return *Action.m_NextAction;}
00149         else{return NOTHING;}
00150 UnGuard
00151 }

ExCAction ExManagerMap::InputCommand ExCCommand  Command  )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 116 du fichier ExManagerMap.cpp.

Références Guard, InputCommand(), NOTHING, et UnGuard.

Référencé par InputCommand().

00117 {
00118 Guard(ExCAction ExManagerMap::InputCommand(ExCCommand Command))
00119         return NOTHING;
00120 UnGuard
00121 }

void ExManagerMap::Load std::string  FileName  ) 
 

Définition à la ligne 64 du fichier ExManagerMap.cpp.

Références Guard, HeightMap, ExCHeightMap::Load(), ExCSkyBox::Load(), Load(), ManagerFog, ManagerTexture, MapLoaded, ExCObject::SetFileName(), ExCHeightMap::SetManagerFog(), ExCHeightMap::SetManagerTexture(), ExCSkyBox::SetManagerTexture(), Skybox, SkyLoaded, et UnGuard.

Référencé par ExManagerLoad::InputAction(), Load(), et ExManagerLoad::LoadSetOfFile().

00065 {
00066 Guard(ExManagerMap::Load(std::string FileName))
00067 
00068         //find extension type of map
00069         if(FileName.find("."))
00070         {
00071                 //skybox
00072                 if(FileName.find(".skyb")==(FileName.length()-5))
00073                 {
00074                         Skybox=new ExCSkyBox();
00075                         Skybox->SetManagerTexture(ManagerTexture);
00076                         Skybox->SetFileName(FileName);
00077                         Skybox->Load(FileName);
00078                         SkyLoaded=true;
00079                         return;
00080                 }
00081                 //bsp map
00082                 if(FileName.find(".bsp")==(FileName.length()-4))
00083                 {
00084                         return;
00085                 }
00086                 //height map
00087                 if(FileName.find(".hgmp")==(FileName.length()-5))
00088                 {
00089                         HeightMap=new ExCHeightMap();
00090                         HeightMap->SetManagerTexture(ManagerTexture);
00091                         HeightMap->SetManagerFog(ManagerFog);
00092                         HeightMap->SetFileName(FileName);
00093                         HeightMap->Load(FileName);
00094                         MapLoaded=true;
00095                         return;
00096                 }
00097         }
00098 
00099 UnGuard
00100 }

void ExManagerMap::LoadSkybox std::string  FileName  ) 
 

void ExManager::Reload void   )  [virtual, inherited]
 

Redéfinie dans ExManagerCollision, ExManagerAnimation, ExManagerEntity, ExManagerModel, ExManagerObject< TypeA >, ExManagerTexture, ExManagerObject< ExCAnimation >, ExManagerObject< ExCModel * >, ExManagerObject< ExCWindow >, ExManagerObject< ExCVertexProgram >, ExManagerObject< ExCLight >, ExManagerObject< ExCLoadingAnimation >, ExManagerObject< ExCInterface >, ExManagerObject< ExCSound >, ExManagerObject< ExCCamera * >, ExManagerObject< ExCFont >, ExManagerObject< ExCGizmo >, ExManagerObject< ExCMesh * >, ExManagerObject< ExCTexture >, ExManagerObject< ExCEntity * >, ExManagerObject< ExCSystemeParticule >, et ExManagerObject< ExCSpirit >.

Définition à la ligne 33 du fichier ExManager.cpp.

Référencé par ExManagerCommand::ProcesExCAction().

00034 {}

void ExManagerMap::Reset void   )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 58 du fichier ExManagerMap.cpp.

Références MapLoaded, et SkyLoaded.

Référencé par ExManagerCommand::ProcesExCAction().

00059 {
00060         MapLoaded=false;
00061         SkyLoaded=false;
00062 }

void ExManager::SetAskForCommand bool  status  )  [inline, inherited]
 

Définition à la ligne 87 du fichier ExManager.h.

Références ExManager::m_AskForCommand.

Référencé par ExManagerConsole::ExManagerConsole(), ExManagerModel::ExManagerModel(), ExManagerObjectWindow::Init(), ExManagerNetwork::Init(), ExManagerConsole::InputAction(), ExManagerNetwork::InputCommand(), ExManagerLoad::LoadSetOfFile(), et ExManagerNetwork::Say().

00087 {m_AskForCommand=status;} 

void ExManager::SetAskForExclusifCommand bool  status  )  [inline, inherited]
 

Définition à la ligne 88 du fichier ExManager.h.

Références ExManager::m_Exclusif.

Référencé par ExManagerConsole::ExManagerConsole(), ExManagerModel::ExManagerModel(), ExManagerObjectWindow::Init(), ExManagerNetwork::Init(), ExManagerConsole::InputAction(), ExManagerNetwork::InputCommand(), et ExManagerNetwork::Say().

00088 {m_Exclusif=status;}

void ExManager::SetFlux std::ostrstream *  consol,
ExCFluxAction action
[inherited]
 

Définition à la ligne 35 du fichier ExManager.cpp.

Références ExManager::Consol, et ExManager::FluxAction.

Référencé par SetManagerLink().

00036 {
00037         Consol=consol;
00038         FluxAction=action;
00039 }

void ExManagerMap::SetManagerFog ExManagerFog Fog  )  [inline]
 

Définition à la ligne 104 du fichier ExManagerMap.h.

Références ManagerFog.

Référencé par SetManagerLink().

00104 {ManagerFog=Fog;}

void ExManagerMap::SetManagerId ExManagerId Id  )  [inline]
 

Définition à la ligne 102 du fichier ExManagerMap.h.

Références ManagerId.

Référencé par SetManagerLink().

00102 {ManagerId      = Id;}

void ExManagerMap::SetManagerTexture ExManagerTexture Texture  )  [inline]
 

Définition à la ligne 103 du fichier ExManagerMap.h.

Références ManagerTexture.

Référencé par SetManagerLink().

00103 {ManagerTexture=Texture;}

void ExManager::SetStatus bool  status  )  [inline, inherited]
 

Définition à la ligne 86 du fichier ExManager.h.

Références ExManager::m_Status.

Référencé par ExManagerConsole::Draw(), ExManagerConsole::ExManagerConsole(), ExManagerObjectWindow::Init(), ExManagerInterface::Init(), ExManagerConsole::InputAction(), ExManagerLoad::LoadSetOfFile(), et ExManagerConsole::SetConsoleState().

00086 {m_Status=status;}


Documentation des données imbriquées

std::ostrstream* ExManager::Consol [inherited]
 

Définition à la ligne 73 du fichier ExManager.h.

Référencé par ExManagerObject< TypeA >::Add(), ExManagerConsole::AddStringAction(), ExManagerConsole::ApplyBuffCommand(), ExManagerInputGLUT::CheckInput(), ExManagerSound::DisplayAviableInput(), ExManagerInputGLUT::DisplayAviableInput(), ExManagerLoad::DisplayFileType(), ExManagerLoad::GetFileType(), ExManagerVertexArrays::Init(), ExManagerTexture::Init(), ExManagerSound::Init(), ExManagerFog::Init(), ExManagerSound::InputAction(), ExManagerPVS::InputAction(), ExManagerParticuleSystem::InputAction(), ExManagerModel::InputAction(), ExManagerMesh::InputAction(), InputAction(), ExManagerLoad::InputAction(), ExManagerInterface::InputAction(), ExManagerFog::InputAction(), ExManagerEntity::InputAction(), ExManagerConsole::InputAction(), ExManagerCommand::InputAction(), ExManagerCamera::InputAction(), ExManagerAnimation::InputAction(), ExManagerObject< TypeA >::List(), ExManagerModel::List(), ExManagerId::List(), ExManagerConsole::ListConsoleCommand(), ExManagerTexture::Load(), ExManagerParticuleSystem::Load(), ExManagerModel::Load(), ExManagerInterface::Load(), ExManagerTexture::LoadCubeMap(), ExManagerLoad::LoadSetOfFile(), ExManagerSound::LoadSound(), ExManagerSound::PauseSound(), ExManagerSound::PlaySound(), ExManagerCommand::ProcesExCAction(), ExManagerId::RecordObject(), ExManager::SetFlux(), ExManagerSound::SetRepeatSound(), ExManagerSound::StopSound(), ExManagerConsole::UpdateConsolBuffer(), et ExManagerConsole::Write().

ExCFluxAction* ExManager::FluxAction [inherited]
 

Définition à la ligne 74 du fichier ExManager.h.

Référencé par ExManagerWindow::Apply(), ExManagerCommand::ApplyAction(), ExManagerCommand::LoadExecFile(), ExManagerId::RecordObject(), ExManager::SetFlux(), et ExManagerSpecialEffect::Specialeffect().

ExCHeightMap* ExManagerMap::HeightMap [private]
 

Définition à la ligne 80 du fichier ExManagerMap.h.

Référencé par Draw(), InputAction(), et Load().

bool ExManager::m_AskForCommand [protected, inherited]
 

Définition à la ligne 70 du fichier ExManager.h.

Référencé par ExManager::AskForCommand(), ExManagerConsole::ExManagerConsole(), et ExManager::SetAskForCommand().

bool ExManager::m_Exclusif [protected, inherited]
 

Définition à la ligne 71 du fichier ExManager.h.

Référencé par ExManager::AskForExclusifCommand(), et ExManager::SetAskForExclusifCommand().

bool ExManagerMap::m_flag = false [static, private]
 

Définition à la ligne 26 du fichier ExManagerMap.cpp.

Référencé par CreateSingleton().

ExManagerMap * ExManagerMap::m_instance = NULL [static, private]
 

Définition à la ligne 27 du fichier ExManagerMap.cpp.

Référencé par CreateSingleton().

bool ExManager::m_Status [protected, inherited]
 

Définition à la ligne 69 du fichier ExManager.h.

Référencé par ExManager::GetStatus(), et ExManager::SetStatus().

ExManagerFog* ExManagerMap::ManagerFog [private]
 

Définition à la ligne 79 du fichier ExManagerMap.h.

Référencé par Load(), et SetManagerFog().

ExManagerId* ExManagerMap::ManagerId [private]
 

Définition à la ligne 77 du fichier ExManagerMap.h.

Référencé par SetManagerId().

ExManagerTexture* ExManagerMap::ManagerTexture [private]
 

Définition à la ligne 78 du fichier ExManagerMap.h.

Référencé par Load(), et SetManagerTexture().

bool ExManagerMap::MapLoaded [private]
 

Définition à la ligne 82 du fichier ExManagerMap.h.

Référencé par Draw(), ExManagerMap(), InputAction(), Load(), et Reset().

ExCSkyBox* ExManagerMap::Skybox [private]
 

Définition à la ligne 81 du fichier ExManagerMap.h.

Référencé par Draw(), InputAction(), et Load().

bool ExManagerMap::SkyLoaded [private]
 

Définition à la ligne 83 du fichier ExManagerMap.h.

Référencé par Draw(), ExManagerMap(), InputAction(), Load(), et Reset().


La documentation associée à cette classe a été générée à partir des fichiers suivants :
Généré le Tue Oct 28 12:44:03 2003 pour ExNihilo par doxygen 1.3.4