Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ggz/src/orxonox/GGZClient.h @ 3000

Last change on this file since 3000 was 3000, checked in by adrfried, 15 years ago

some ggz things

File size: 1.0 KB
Line 
1#ifndef _GGZClient_H__
2#define _GGZClient_H__
3
4#include "OrxonoxPrereqs.h"
5#include "objects/Tickable.h"
6
7#include <ggzmod.h>
8#include <boost/asio.hpp>
9
10namespace orxonox
11{
12    class _OrxonoxExport GGZClient : public Tickable
13    {
14        public:
15            GGZClient();
16            ~GGZClient();
17
18            static GGZClient& getInstance();
19            static bool isActive();
20            virtual void tick(const float dt);
21
22        private:
23            static GGZClient* singletonRef_s;
24
25            GGZMod * ggzmod;
26            boost::asio::io_service io;
27            boost::asio::local::stream_protocol::socket ggzSocket;
28            boost::asio::local::stream_protocol::socket gameSocket;
29
30            void initGGZ();
31            void deinitGGZ();
32            static void handleGame(const boost::system::error_code& e);
33            static void handleGGZ(const boost::system::error_code& e);
34            static void handleGGZModServer(GGZMod * ggzmod, GGZModEvent e,
35                    const void *data);
36    };
37}
38
39#endif /* _GGZClient_H__ */
Note: See TracBrowser for help on using the repository browser.