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