Beginning to create the placeholder classes

This commit is contained in:
Kayne Ruse
2013-08-29 19:57:25 +10:00
parent d5f7363c33
commit b675f516e7
13 changed files with 135 additions and 50 deletions
+21
View File
@@ -0,0 +1,21 @@
#include "room_manager.hpp"
#include <iostream>
RoomManager RoomManager::instance;
int roomThread(void* ptr) {
std::cout << "Opening room" << std::endl;
try {
reinterpret_cast<BaseRoom*>(ptr)->Init();
reinterpret_cast<BaseRoom*>(ptr)->Loop();
reinterpret_cast<BaseRoom*>(ptr)->Quit();
}
catch(std::exception& e) {
std::cerr << "Fatal room error: " << e.what() << std::endl;
return 1;
}
std::cout << "Closing room" << std::endl;
return 0;
}