]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/testdriver/main.cpp
0616d44fbb1ac80eb5126b54cc3ab20cac363973
[irc/gameservirc.git] / gameserv-2.0 / testdriver / main.cpp
1 #include <iostream>
2 using namespace std;
3 #include <GameServ/GameLayer/GameObjects/PlayerGO.h>
4 using GameServ::GameLayer::GameObjects::PlayerGO;
5 #include <GameServ/GameLayer/PlayerGL.h>
6 using GameServ::GameLayer::PlayerGL;
7
8 #include <GameServ/GameServException.h>
9 using GameServ::Exceptions::GameServException;
10
11 int main()
12 {
13 try
14 {
15 PlayerGL pgl;
16 shared_ptr<PlayerGO> spPlayer = pgl.GetById("Kain");
17 cout << spPlayer->Name() << endl;
18 }
19 catch (GameServException &e)
20 {
21 cout << e.VerboseError() << endl;
22
23 }
24 string temp;
25 cin >> temp;
26 return 0;
27 }