#include <ExManagerMenu.h>
Graphe d'héritage de la classe ExManagerMenu
Membres publics | |
void | Reset (void) |
void | Init (void) |
void | Draw (void) |
bool | Load (std::string FileName) |
bool | Add (std::string FileName) |
bool | Add (ExCMenu object) |
ExCAction | InputCommand (ExCCommand Command) |
ExCAction | InputAction (ExCAction Action) |
Membres publics statiques | |
ExManagerMenu * | CreateSingleton (void) |
Membres privés | |
ExManagerMenu (void) | |
~ExManagerMenu (void) | |
Attributs Privés Statiques | |
bool | m_flag = false |
ExManagerMenu * | m_instance = NULL |
|
Définition à la ligne 43 du fichier ExManagerMenu.cpp.
00044 { 00045 } |
|
Définition à la ligne 47 du fichier ExManagerMenu.cpp.
00048 { 00049 } |
|
Redéfinie à partir de ExManagerObject< ExCMenu >. Définition à la ligne 110 du fichier ExManagerMenu.cpp. Références ExManagerObject::Add(), Add(), et Guard.
00111 { 00112 Guard(ExManagerMenu::Add(ExCMenu object)) 00113 return ExManagerObject<ExCMenu>::Add(object); 00114 UnGuard 00115 } |
|
Redéfinie à partir de ExManagerObject< ExCMenu >. Définition à la ligne 118 du fichier ExManagerMenu.cpp. Références Add(), ExManager::Consol, Guard, et ExCMenu::LoadFile(). Référencé par Add(), Init(), et Load().
00119 { 00120 Guard(ExManagerMenu::Add(std::string FileName)) 00121 try 00122 { 00123 ExCMenu object; 00124 object.LoadFile(FileName); 00125 Add(object); 00126 } 00127 catch(ExCExpFileNotFound) 00128 { 00129 *Consol<<"ExManagerObject::ExCeption =>"<<FileName<<" File not found"<<std::endl; 00130 } 00131 catch(ExCExpFileReadError) 00132 { 00133 *Consol<<"ExManagerObject::ExCeption =>"<<FileName<<" Read file error"<<std::endl; 00134 } 00135 catch(...) 00136 { 00137 *Consol<<"ExManagerObject::ExCeption =>"<<FileName<<" Unknow exception"<<std::endl; 00138 } 00139 return false; 00140 UnGuard 00141 } |
|
Définition à la ligne 29 du fichier ExManagerMenu.cpp. Références CreateSingleton(), Guard, m_flag, et m_instance. Référencé par CreateSingleton(), et main().
00029 { 00030 Guard(ExManagerMenu* ExManagerMenu::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 ExManagerMenu; // Create the error log 00035 }else 00036 { 00037 std::cout<<"Error singleton already created"<<std::endl; 00038 } 00039 return m_instance; 00040 UnGuard 00041 } |
|
Redéfinie à partir de ExManagerObject< ExCMenu >. Définition à la ligne 93 du fichier ExManagerMenu.cpp. Références ExCMenu::Draw(), Draw(), ExManagerObject< ExCMenu >::GetCurrentObject(), ExManager::GetStatus(), et Guard. Référencé par Draw(), et ExManagerOutput::DrawScene().
00094 { 00095 Guard(void ExManagerMenu::Draw(void)) 00096 if(!GetStatus())return; 00097 glDisable(GL_LIGHTING); 00098 if(GetCurrentObject()!=NULL)GetCurrentObject()->Draw(); 00099 glEnable(GL_LIGHTING); 00100 UnGuard 00101 } |
|
Redéfinie à partir de ExManagerObject< ExCMenu >. Définition à la ligne 51 du fichier ExManagerMenu.cpp. Références Add(), Guard, ExManagerObject::Init(), Init(), ExCMenu::LoadFile(), ExManager::SetAskForCommand(), ExManager::SetAskForExclusifCommand(), ExManagerObject< ExCMenu >::SetCurrentObject(), ExCObject::SetName(), et ExManager::SetStatus(). Référencé par Init(), InitManager(), et Reset().
00052 { 00053 Guard(void ExManagerMenu::Init(void)) 00054 ExManagerObject<ExCMenu>::Init(); 00055 00056 SetStatus(true); 00057 SetAskForCommand(true); 00058 SetAskForExclusifCommand(true); 00059 00060 ExCMenu object; 00061 object.LoadFile("start.men"); 00062 object.SetName("StartMenu"); 00063 ExManagerMenu::Add(object); 00064 SetCurrentObject("StartMenu"); 00065 00066 ExCMenu object2; 00067 object2.LoadFile("credit.men"); 00068 object2.SetName("CreditMenu"); 00069 ExManagerMenu::Add(object2); 00070 00071 ExCMenu object3; 00072 object3.LoadFile("option.men"); 00073 object3.SetName("OptionMenu"); 00074 ExManagerMenu::Add(object3); 00075 00076 ExCMenu object4; 00077 object4.LoadFile("commandmenu.men"); 00078 object4.SetName("CommandMenu"); 00079 ExManagerMenu::Add(object4); 00080 00081 UnGuard 00082 } |
|
|
Redéfinie à partir de ExManager. Définition à la ligne 143 du fichier ExManagerMenu.cpp. Références DISABLE_MENU, ExCMenu::GetCurrentItemAction(), ExManagerObject< ExCMenu >::GetCurrentObject(), Guard, InputCommand(), ExCCommand::m_Command, ExCMenu::NextItem(), et ExCMenu::PreviousItem(). Référencé par InputCommand(), et ExManagerCommand::InputCommand().
00144 { 00145 Guard(ExManagerMenu::InputCommand(ExCCommand Command)) 00146 if(GetCurrentObject()==NULL)return NOTHING; 00147 switch(Command.m_Command) 00148 { 00149 case KEYBOARD_DOWN_ARROW_UP: 00150 GetCurrentObject()->PreviousItem(); 00151 break; 00152 case KEYBOARD_DOWN_ARROW_DOWN: 00153 GetCurrentObject()->NextItem(); 00154 break; 00155 case KEYBOARD_DOWN_ENTER: 00156 return GetCurrentObject()->GetCurrentItemAction(); 00157 break; 00158 case KEYBOARD_DOWN_ESC: 00159 return DISABLE_MENU; 00160 break; 00161 } 00162 return NOTHING; 00163 UnGuard 00164 } |
|
Redéfinie à partir de ExManagerObject< ExCMenu >. Définition à la ligne 103 du fichier ExManagerMenu.cpp. Références Add(), Guard, et Load(). Référencé par Load().
00104 { 00105 Guard(ExManagerMenu::Load(std::string FileName)) 00106 return Add(FileName); 00107 UnGuard 00108 } |
|
Redéfinie à partir de ExManagerObject< ExCMenu >. Définition à la ligne 84 du fichier ExManagerMenu.cpp. Références Guard, Init(), ExManagerObject::Reset(), Reset(), et ExManagerObject< ExCMenu >::SetCurrentObject(). Référencé par ExManagerCommand::ProcesExCAction(), et Reset().
00085 { 00086 Guard(void ExManagerMenu::Reset(void)) 00087 ExManagerObject<ExCMenu>::Reset(); 00088 Init(); 00089 SetCurrentObject("StartMenu0"); 00090 UnGuard 00091 } |
|
Définition à la ligne 26 du fichier ExManagerMenu.cpp. Référencé par CreateSingleton(). |
|
Définition à la ligne 27 du fichier ExManagerMenu.cpp. Référencé par CreateSingleton(). |