Last change
on this file since 7280 was
6008,
checked in by adrfried, 15 years ago
|
include fixed
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef _GGZClient_H__ |
---|
2 | #define _GGZClient_H__ |
---|
3 | |
---|
4 | #include "OrxonoxPrereqs.h" |
---|
5 | #include "tools/interfaces/Tickable.h" |
---|
6 | #include "gamestates/GSClient.h" |
---|
7 | |
---|
8 | #include <ggzmod.h> |
---|
9 | #include <boost/asio.hpp> |
---|
10 | |
---|
11 | namespace orxonox |
---|
12 | { |
---|
13 | class _OrxonoxExport GGZClient : public Tickable |
---|
14 | { |
---|
15 | public: |
---|
16 | GGZClient(GSClient * client); |
---|
17 | ~GGZClient(); |
---|
18 | |
---|
19 | static GGZClient& getInstance(); |
---|
20 | static bool isActive(); |
---|
21 | virtual void tick(const float dt); |
---|
22 | |
---|
23 | private: |
---|
24 | static GGZClient* singletonRef_s; |
---|
25 | |
---|
26 | GSClient * client; |
---|
27 | GGZMod * ggzmod; |
---|
28 | boost::asio::io_service io; |
---|
29 | boost::asio::local::stream_protocol::socket ggzSocket; |
---|
30 | boost::asio::local::stream_protocol::socket gameSocket; |
---|
31 | |
---|
32 | void initGGZ(); |
---|
33 | void deinitGGZ(); |
---|
34 | static void handleGame(const boost::system::error_code& e); |
---|
35 | static void handleGGZ(const boost::system::error_code& e); |
---|
36 | static void handleGGZModServer(GGZMod * ggzmod, GGZModEvent e, |
---|
37 | const void *data); |
---|
38 | }; |
---|
39 | } |
---|
40 | |
---|
41 | #endif /* _GGZClient_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.