Last change
on this file since 2940 was
2937,
checked in by scheusso, 16 years ago
|
commit for testing reasons
- added possibility to transfer function calls over network
- made MultiType serialisable
- put serialise functions from synchronisable to util
- … (can't remember )
|
File size:
788 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef NETWORKFUNCTIONCALLMANAGER_H |
---|
3 | #define NETWORKFUNCTIONCALLMANAGER_H |
---|
4 | |
---|
5 | #include "NetworkPrereqs.h" |
---|
6 | #include "packet/FunctionCalls.h" |
---|
7 | #include <map> |
---|
8 | |
---|
9 | |
---|
10 | namespace orxonox { |
---|
11 | /** |
---|
12 | @author |
---|
13 | */ |
---|
14 | |
---|
15 | class MultiType; |
---|
16 | |
---|
17 | class _NetworkExport FunctionCallManager |
---|
18 | { |
---|
19 | public: |
---|
20 | static void addCallStatic(uint32_t functionID, uint32_t clientID, MultiType* mt1=0, MultiType* mt2=0, MultiType* mt3=0, MultiType* mt4=0, MultiType* mt5=0); |
---|
21 | static void addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID, MultiType* mt1=0, MultiType* mt2=0, MultiType* mt3=0, MultiType* mt4=0, MultiType* mt5=0); |
---|
22 | static void sendCalls(); |
---|
23 | |
---|
24 | static std::map<uint32_t, packet::FunctionCalls*> clientMap_; |
---|
25 | protected: |
---|
26 | FunctionCallManager(); |
---|
27 | ~FunctionCallManager(); |
---|
28 | }; |
---|
29 | |
---|
30 | } //namespace orxonox |
---|
31 | |
---|
32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.