Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/network/proxy/proxy_control.cc @ 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: 1.5 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Patrick Boenzli (patrick@orxonox.ethz.ch)
13*/
14
15#include "proxy_control.h"
16
17#include "class_list.h"
18
19
20#include "player.h"
21#include "state.h"
22#include "shared_network_data.h"
23
24#include "converter.h"
25
26#include "preferences.h"
27
28#include "debug.h"
29
30
31
32
33ProxyControl* ProxyControl::singletonRef = NULL;
34
35
36/**
37 * constructor
38 */
39ProxyControl::ProxyControl()
40{
41  this->setClassID( CL_PROXY_CONTROL, "ProxyControl" );
42
43//   MessageManager::getInstance()->registerMessageHandler( MSGID_CHANGENICKNAME, changeNickHandler, NULL );
44
45  PRINTF(0)("ProxyControl created\n");
46}
47
48
49/**
50 * standard deconstructor
51 */
52ProxyControl::~ProxyControl()
53{
54  ProxyControl::singletonRef = NULL;
55}
56
57
58 /**
59 * override this function to be notified on change
60 * of your registred variables.
61 * @param id id's which have changed
62  */
63void ProxyControl::varChangeHandler( std::list< int > & id )
64{
65//   if ( std::find( id.begin(), id.end(), playableUniqueId_handle ) != id.end() )
66//   {
67//     this->setPlayableUniqueId( this->playableUniqueId );
68//
69//     PRINTF(0)("uniqueID changed %d %d %d\n", userId, SharedNetworkData::getInstance()->getHostID(), getUniqueID());
70//   }
71}
72
Note: See TracBrowser for help on using the repository browser.