YAPOG  0.0.1
Yet Another Pokemon Online Game
Client.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
3 #include <boost/exception/all.hpp>
4 
6 
7 #include "Game.hpp"
9 
10 int main ()
11 {
12  try
13  {
14 
15 #ifndef YAPOG_WIN
16  ycl::GameData::Init ("../Content/Configuration.xml");
17 # else
18  ycl::GameData::Init ("../../Content/Configuration.xml");
19 #endif // YAPOG_WIN
20 
21  ycl::Game game ("YAPOG");
22 
23  game.Init ();
24 
25  game.Launch ();
26  }
27  catch (yap::Exception& ex)
28  {
29  ex.GetMessage (std::cout) << std::endl;
30  getchar ();
31  }
32  catch (boost::exception& ex)
33  {
34  std::cout << boost::diagnostic_information (ex) << std::endl;
35  getchar ();
36  }
37 }