00001 /* 00002 * Copyright (C) 2011 Emweb bvba, Heverlee, Belgium 00003 * 00004 * See the LICENSE file for terms of use. 00005 */ 00006 00007 #include <Wt/WApplication> 00008 00009 #include "HangmanGame.h" 00010 00011 Wt::WApplication *createApplication(const Wt::WEnvironment& env) 00012 { 00013 Wt::WApplication *app = new Wt::WApplication(env); 00014 00015 app->setTitle("Hangman"); 00016 00017 app->messageResourceBundle().use(app->appRoot() + "strings"); 00018 app->messageResourceBundle().use(app->appRoot() + "templates"); 00019 00020 app->useStyleSheet("style/hangman.css"); 00021 00022 new HangmanGame(app->root()); 00023 00024 return app; 00025 } 00026 00027 00028 int main(int argc, char **argv) 00029 { 00030 return WRun(argc, argv, &createApplication); 00031 }
1.7.2