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 | |
---|
33 | ProxyControl* ProxyControl::singletonRef = NULL; |
---|
34 | |
---|
35 | |
---|
36 | /** |
---|
37 | * constructor |
---|
38 | */ |
---|
39 | ProxyControl::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 | */ |
---|
52 | ProxyControl::~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 | */ |
---|
63 | void 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 | |
---|