Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

found the bug. there is need for another control center for proxies to signal new clients and leavings. This is a central part of the proxy synchronization process

File size: 767 bytes
Line 
1/*!
2 * @file player_stats.h
3 * @brief Definition of ProxyControl
4 */
5
6#ifndef _PROXY_SETTINGS_H
7#define _PROXY_SETTINGS_H
8
9#include "synchronizeable.h"
10#include "message_manager.h"
11
12#include <string>
13#include <list>
14
15
16
17
18//! A class for storing player information
19class ProxyControl : public Synchronizeable
20{
21
22  public:
23    inline static ProxyControl* getInstance() { if (!ProxyControl::singletonRef) ProxyControl::singletonRef = new ProxyControl();
24      return ProxyControl::singletonRef; }
25    virtual ~ProxyControl();
26
27    virtual void varChangeHandler( std::list<int> & id );
28
29
30  private:
31    ProxyControl();
32
33
34  private:
35    static ProxyControl*      singletonRef;            //!< Pointer to the only instance of this Class
36
37
38};
39
40#endif /* _PROXY_SETTINGS_H */
Note: See TracBrowser for help on using the repository browser.