big restructuring

This commit is contained in:
gmueller
2011-01-14 14:59:18 +01:00
parent 890dc9b29f
commit 45e085b370
10 changed files with 815 additions and 647 deletions

22
src/server.cpp Normal file
View File

@ -0,0 +1,22 @@
#include "Application.h"
#include <iostream>
int main(int argc, char ** argv) {
try {
Application app;
app.setMaster();
app.initialize(argc, argv);
while (app.isRunning())
app.update();
app.shutdown();
return 0;
} catch (const char *str) {
std::cerr << "Exception: " << str << std::endl;
return 1;
} catch (const std::exception &e) {
std::cerr << "Exception: " << e.what() << std::endl;
return 1;
}
}