UDPNetworkUtility is a singleton, disabled InCombat scene

I found incombat to be way too finicky to keep up to date, so I disabled
it for now.
This commit is contained in:
Kayne Ruse
2014-08-13 06:53:43 +10:00
parent 182101b592
commit 74f809a801
15 changed files with 41 additions and 42 deletions
+7 -2
View File
@@ -23,6 +23,7 @@
//singletons
#include "config_utility.hpp"
#include "udp_network_utility.hpp"
#include <stdexcept>
#include <iostream>
@@ -32,18 +33,22 @@ using namespace std;
int main(int argc, char** argv) {
try {
//create the singletons
ClientApplication::Create();
ConfigUtility::Create();
UDPNetworkUtility::Create();
//call the server's routines
ClientApplication::Create();
ClientApplication& app = ClientApplication::GetSingleton();
app.Init(argc, argv);
app.Proc();
app.Quit();
ClientApplication::Delete();
//delete the singletons
ConfigUtility::Delete();
ClientApplication::Delete();
UDPNetworkUtility::Delete();
}
catch(exception& e) {
cerr << "Fatal exception thrown: " << e.what() << endl;