Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/netp2/src/network/FunctionCallManager.h @ 2937

Last change on this file since 2937 was 2937, checked in by scheusso, 15 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
10namespace orxonox {
11/**
12        @author
13*/
14
15class MultiType;
16
17class _NetworkExport FunctionCallManager
18{
19public:
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_;
25protected:
26  FunctionCallManager();
27  ~FunctionCallManager();
28};
29
30} //namespace orxonox
31
32#endif
Note: See TracBrowser for help on using the repository browser.