Last change
on this file since 2991 was
2889,
checked in by adrfried, 16 years ago
|
FDWatcher and GGZClient Objects introduced
|
File size:
749 bytes
|
Line | |
---|
1 | #ifndef _GGZClient_H__ |
---|
2 | #define _GGZClient_H__ |
---|
3 | |
---|
4 | #include "OrxonoxPrereqs.h" |
---|
5 | #include "objects/FDWatcher.h" |
---|
6 | |
---|
7 | #include <ggzmod.h> |
---|
8 | |
---|
9 | namespace orxonox |
---|
10 | { |
---|
11 | class _OrxonoxExport GGZClient |
---|
12 | { |
---|
13 | public: |
---|
14 | GGZClient(); |
---|
15 | ~GGZClient(); |
---|
16 | |
---|
17 | static GGZClient& getInstance(); |
---|
18 | |
---|
19 | private: |
---|
20 | static GGZClient* singletonRef_s; |
---|
21 | |
---|
22 | bool active; |
---|
23 | GGZMod *ggzmod; |
---|
24 | FDWatcher sockets; |
---|
25 | |
---|
26 | void initGGZ(); |
---|
27 | void deinitGGZ(); |
---|
28 | static void handleGame(int fd); |
---|
29 | static void handleGGZ(int fd); |
---|
30 | static void handleGGZModServer(GGZMod * ggzmod, GGZModEvent e, |
---|
31 | const void *data); |
---|
32 | }; |
---|
33 | } |
---|
34 | |
---|
35 | #endif /* _GGZClient_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.