QTfrontend/util/DataManager.cpp
changeset 6958 8230a516ba93
parent 6953 4c2dd25630a7
child 6959 fce378ee4191
equal deleted inserted replaced
6957:ab8034208fcd 6958:8230a516ba93
   116 
   116 
   117 
   117 
   118     return "";
   118     return "";
   119 }
   119 }
   120 
   120 
       
   121 GameStyleModel * DataManager::gameStyleModel()
       
   122 {
       
   123     if (m_gameStyleModel == NULL) {
       
   124         m_gameStyleModel = new GameStyleModel();
       
   125         m_gameStyleModel->loadGameStyles();
       
   126     }
       
   127     return m_gameStyleModel;
       
   128 }
       
   129 
   121 HatModel * DataManager::hatModel()
   130 HatModel * DataManager::hatModel()
   122 {
   131 {
   123     if (m_hatModel == NULL) {
   132     if (m_hatModel == NULL) {
   124         m_hatModel = new HatModel();
   133         m_hatModel = new HatModel();
   125         m_hatModel->loadHats();
   134         m_hatModel->loadHats();