MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / startGame

Method startGame

source/ODApplication.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50#include <fstream>
51
52void ODApplication::startGame(boost::program_options::variables_map& options)
53{
54 ResourceManager resMgr(options);
55
56 LogManager logMgr;
57 logMgr.setLevel(resMgr.getLogLevel());
58
59 logMgr.addSink(std::unique_ptr<LogSink>(new LogSinkConsole()));
60 logMgr.addSink(std::unique_ptr<LogSink>(new LogSinkFile(resMgr.getLogFile())));
61
62 if(resMgr.isServerMode())
63 startServer();
64 else
65 startClient();
66}
67
68void ODApplication::startServer()
69{

Callers 1

main.cppFile · 0.80

Calls 4

getLogLevelMethod · 0.80
addSinkMethod · 0.80
isServerModeMethod · 0.80
setLevelMethod · 0.45

Tested by

no test coverage detected