Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/network/proxy/proxy_control.h @ 9588

Last change on this file since 9588 was 9573, checked in by patrick, 18 years ago

entities get now removed throughout the whole network

File size: 1.2 KB
Line 
1/*!
2 * @file player_stats.h
3 * @brief Definition of ProxyControl
4 *
5 * manages the clients on the proxies (connect/disconnect)
6 */
7
8#ifndef _PROXY_SETTINGS_H
9#define _PROXY_SETTINGS_H
10
11#include "synchronizeable.h"
12#include "message_manager.h"
13
14#include <string>
15#include <list>
16
17
18
19
20
21//! A class for storing player information
22class ProxyControl : public Synchronizeable
23{
24
25  public:
26    inline static ProxyControl* getInstance() { if (!ProxyControl::singletonRef) ProxyControl::singletonRef = new ProxyControl();
27      return ProxyControl::singletonRef; }
28    virtual ~ProxyControl();
29
30    virtual void varChangeHandler( std::list<int> & id );
31
32    void signalNewClient(int userId);
33    static bool messageHandlerNewClient( MessageType messageType, byte * data, int dataLength, void * someData, int senderId, int destinationId  );
34
35    void signalLeaveClient(int userId);
36    static bool messageHandlerLeaveClient( MessageType messageType, byte * data, int dataLength, void * someData, int senderId, int destinationId  );
37
38
39  private:
40    ProxyControl();
41
42
43  private:
44    static ProxyControl*      singletonRef;            //!< Pointer to the only instance of this Class
45
46
47};
48
49#endif /* _PROXY_SETTINGS_H */
Note: See TracBrowser for help on using the repository browser.