// Program entry point. int main(int argc, char **argv) { GameApp game; game.manageGame(); return 0; }
void ToggleDebugMessage::process() { GameApp* pGame = dynamic_cast<GameApp*>(gpGame); if (pGame != NULL) { pGame->toggleDebugMode(); } }
int main(int argc, char** argv) { GameApp App; App.Init(); App.Run(); return 0; }
void GiveUnitPathMessage::process() { GameApp* pGame = dynamic_cast<GameApp*>(gpGame); if (pGame != NULL) { pGame->updateUnitPath(mPath, mReversed); } }
INT WINAPI _tWinMain(HINSTANCE hInst, HINSTANCE, LPTSTR, INT) { GameApp app; app.Setup(hInst); return app.Run(); }
int main() { cout << "Create gameApp" << endl; GameApp * game = new GameApp(); cout << "iter gameApp" << endl; game->StartGame(); cout << "Finish gameApp" << endl; return 0; }
KVOID DoWork(KCHAR *argv) { GameApp app; #ifdef _DEBUG if (app.Initialize("OGRE Sample ...",MAKEINTRESOURCE(IDR_MAINFRAME))) #else if (app.Initialize("ÆæÃÅ",MAKEINTRESOURCE(IDR_MAINFRAME))) #endif // _DEBUG { app.Entrance(argv); app.Run(); } }
int main(int argc, char *argv[]) { Q_UNUSED(argc); Q_UNUSED(argv); cout << "Create gameApp" << endl; GameApp * game = new GameApp(); cout << "Start gameApp" << endl; game->startGame(); cout << "Finish gameApp" << endl; return 0; }
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) { try { // Set up to support Chinese path setlocale(LC_ALL,"Chinese-simplified"); GameApp *app = GameApp::getSingletonPtr(); app->startGame(); } catch( Ogre::Exception& e ) { MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); } return 0; }
int main() { //TODO: faire un systeme de "logs" GameApp app; GameLogic game; app.initialize(); game.initialize(); app.startLoop(); game.terminate(); app.terminate(); return 0; }
int main(int argc, char *argv[]) #endif { try { if (!theApp.init()) { theApp.exit(); return -1; } theApp.run(); } catch (Ogre::Exception &e) { #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); #else std::cerr << "An exception has occured: " << e.getFullDescription().c_str() << std::endl; #endif } catch (VException &e) { #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); #else std::cerr << "An exception has occured: " << e.getFullDescription().c_str() << std::endl; #endif } theApp.exit(); return 0; }