Changeset 9715 in orxonox.OLD for branches/new_class_id/src/lib/network
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/network
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/network/converter.cc
r9690 r9715 28 28 SHELL_COMMAND_STATIC(debug, Converter, Converter::debug); 29 29 30 NewObjectListDefinition(Converter);30 ObjectListDefinition(Converter); 31 31 /* using namespace std is default, this needs to be here */ 32 32 -
branches/new_class_id/src/lib/network/converter.h
r9690 r9715 24 24 class Converter : public BaseObject 25 25 { 26 NewObjectListDeclaration(Converter);26 ObjectListDeclaration(Converter); 27 27 public: 28 28 static byte* intToByteArray(int x); -
branches/new_class_id/src/lib/network/data_stream.cc
r9691 r9715 20 20 /* using namespace std is default, this needs to be here */ 21 21 22 NewObjectListDefinition(DataStream);22 ObjectListDefinition(DataStream); 23 23 24 24 /** -
branches/new_class_id/src/lib/network/data_stream.h
r9690 r9715 17 17 class DataStream : public BaseObject 18 18 { 19 NewObjectListDeclaration(DataStream);19 ObjectListDeclaration(DataStream); 20 20 public: 21 21 DataStream(); -
branches/new_class_id/src/lib/network/handshake.cc
r9691 r9715 23 23 24 24 25 NewObjectListDefinition(Handshake);25 ObjectListDefinition(Handshake); 26 26 27 27 -
branches/new_class_id/src/lib/network/handshake.h
r9690 r9715 42 42 class Handshake : public Synchronizeable 43 43 { 44 NewObjectListDeclaration(Handshake);44 ObjectListDeclaration(Handshake); 45 45 public: 46 46 Handshake( int nodeType, int clientId = 0, int networkGameManagerId = 0, int messageManagerId = 0 ); -
branches/new_class_id/src/lib/network/message_manager.cc
r9691 r9715 28 28 29 29 30 NewObjectListDefinition(MessageManager);30 ObjectListDefinition(MessageManager); 31 31 MessageManager* MessageManager::singletonRef = NULL; 32 32 -
branches/new_class_id/src/lib/network/message_manager.h
r9690 r9715 96 96 class MessageManager : public Synchronizeable { 97 97 98 NewObjectListDeclaration(MessageManager);98 ObjectListDeclaration(MessageManager); 99 99 public: 100 100 inline static MessageManager * getInstance(){ if (!singletonRef) singletonRef = new MessageManager(); return singletonRef; } -
branches/new_class_id/src/lib/network/monitor/connection_monitor.cc
r9691 r9715 23 23 /* using namespace std is default, this needs to be here */ 24 24 25 NewObjectListDefinition(ConnectionMonitor);25 ObjectListDefinition(ConnectionMonitor); 26 26 /** 27 27 * constructor -
branches/new_class_id/src/lib/network/monitor/connection_monitor.h
r9690 r9715 19 19 class ConnectionMonitor : virtual public BaseObject 20 20 { 21 NewObjectListDeclaration(ConnectionMonitor);21 ObjectListDeclaration(ConnectionMonitor); 22 22 public: 23 23 ConnectionMonitor( int userId ); -
branches/new_class_id/src/lib/network/monitor/network_monitor.cc
r9691 r9715 37 37 SHELL_COMMAND(debug, NetworkMonitor, debug); 38 38 39 NewObjectListDefinition(NetworkMonitor);39 ObjectListDefinition(NetworkMonitor); 40 40 41 41 -
branches/new_class_id/src/lib/network/monitor/network_monitor.h
r9690 r9715 27 27 class NetworkMonitor : public Synchronizeable 28 28 { 29 NewObjectListDeclaration(NetworkMonitor);29 ObjectListDeclaration(NetworkMonitor); 30 30 public: 31 31 NetworkMonitor(NetworkStream* networkStream); -
branches/new_class_id/src/lib/network/monitor/network_stats_widget.cc
r9709 r9715 211 211 212 212 213 NewObjectListDefinition(NetworkStatsWidget);213 ObjectListDefinition(NetworkStatsWidget); 214 214 /** 215 215 * @brief standard constructor -
branches/new_class_id/src/lib/network/monitor/network_stats_widget.h
r9691 r9715 81 81 class NetworkStatsWidget : public OrxGui::GLGuiFixedpositionBox 82 82 { 83 NewObjectListDeclaration(NetworkStatsWidget);83 ObjectListDeclaration(NetworkStatsWidget); 84 84 public: 85 85 static void toggleGUI(); -
branches/new_class_id/src/lib/network/network_game_manager.cc
r9691 r9715 46 46 47 47 48 NewObjectListDefinition(NetworkGameManager);48 ObjectListDefinition(NetworkGameManager); 49 49 NetworkGameManager* NetworkGameManager::singletonRef = NULL; 50 50 … … 97 97 98 98 int team = rules.getTeamForNewUser(); 99 NewClassID playableClassId = rules.getPlayableClassId( userId, team );99 ClassID playableClassId = rules.getPlayableClassId( userId, team ); 100 100 std::string playableModel = rules.getPlayableModelFileName( userId, team, playableClassId ); 101 101 std::string playableTexture = rules.getPlayableModelFileName( userId, team, playableClassId ); … … 186 186 } 187 187 188 for ( NewObjectList<Synchronizeable>::const_iterator it = Synchronizeable::objectList().begin();188 for (ObjectList<Synchronizeable>::const_iterator it = Synchronizeable::objectList().begin(); 189 189 it != Synchronizeable::objectList().end(); 190 190 ++it) -
branches/new_class_id/src/lib/network/network_game_manager.h
r9690 r9715 33 33 class NetworkGameManager: public Synchronizeable 34 34 { 35 NewObjectListDeclaration(NetworkGameManager);35 ObjectListDeclaration(NetworkGameManager); 36 36 public: 37 37 virtual ~NetworkGameManager(); -
branches/new_class_id/src/lib/network/network_manager.cc
r9691 r9715 40 40 41 41 42 NewObjectListDefinition(NetworkManager);42 ObjectListDefinition(NetworkManager); 43 43 NetworkManager* NetworkManager::singletonRef = NULL; 44 44 -
branches/new_class_id/src/lib/network/network_manager.h
r9690 r9715 25 25 class NetworkManager : public BaseObject 26 26 { 27 NewObjectListDeclaration(NetworkManager);27 ObjectListDeclaration(NetworkManager); 28 28 public: 29 29 -
branches/new_class_id/src/lib/network/network_protocol.cc
r9691 r9715 35 35 36 36 37 NewObjectListDefinition(NetworkProtocol);37 ObjectListDefinition(NetworkProtocol); 38 38 /** 39 39 standard constructor -
branches/new_class_id/src/lib/network/network_protocol.h
r9690 r9715 25 25 class NetworkProtocol : virtual public BaseObject 26 26 { 27 NewObjectListDeclaration(NetworkProtocol);27 ObjectListDeclaration(NetworkProtocol); 28 28 public: 29 29 NetworkProtocol(); -
branches/new_class_id/src/lib/network/network_socket.cc
r9690 r9715 24 24 #include "network_socket.h" 25 25 26 NewObjectListDefinition(NetworkSocket);26 ObjectListDefinition(NetworkSocket); 27 27 /** 28 28 * Default constructor -
branches/new_class_id/src/lib/network/network_socket.h
r9690 r9715 17 17 class NetworkSocket : public BaseObject 18 18 { 19 NewObjectListDeclaration(NetworkSocket);19 ObjectListDeclaration(NetworkSocket); 20 20 public: 21 21 NetworkSocket(); -
branches/new_class_id/src/lib/network/network_stream.cc
r9709 r9715 54 54 #define PACKAGE_SIZE 256 55 55 56 NewObjectListDefinition(NetworkStream);56 ObjectListDefinition(NetworkStream); 57 57 /** 58 58 * empty constructor -
branches/new_class_id/src/lib/network/network_stream.h
r9690 r9715 33 33 class NetworkStream : public DataStream 34 34 { 35 NewObjectListDeclaration(NetworkStream);35 ObjectListDeclaration(NetworkStream); 36 36 public: 37 37 NetworkStream(); -
branches/new_class_id/src/lib/network/player_stats.cc
r9709 r9715 32 32 #include "class_id.h" 33 33 34 NewObjectListDefinitionID(PlayerStats, CL_PLAYER_STATS);34 ObjectListDefinitionID(PlayerStats, CL_PLAYER_STATS); 35 35 CREATE_FACTORY(PlayerStats); 36 36 … … 123 123 PlayerStats * PlayerStats::getStats( int userId ) 124 124 { 125 for ( NewObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();125 for (ObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin(); 126 126 it != PlayerStats::objectList().end(); 127 127 ++it) … … 142 142 { 143 143 this->playable = NULL; 144 for ( NewObjectList<Playable>::const_iterator it = Playable::objectList().begin();144 for (ObjectList<Playable>::const_iterator it = Playable::objectList().begin(); 145 145 it != Playable::objectList().end(); 146 146 ++it) … … 266 266 ScoreList result; 267 267 268 for ( NewObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();268 for (ObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin(); 269 269 it != PlayerStats::objectList().end(); 270 270 ++it) -
branches/new_class_id/src/lib/network/player_stats.h
r9691 r9715 36 36 class PlayerStats : public Synchronizeable 37 37 { 38 NewObjectListDeclaration(PlayerStats);38 ObjectListDeclaration(PlayerStats); 39 39 public: 40 40 PlayerStats( const TiXmlElement* root = NULL ); … … 58 58 59 59 inline int getPlayableClassId(){ return playableClassId; } 60 void setPlayableClassId( const NewClassID& classId ){ this->playableClassId = classId.id(); };60 void setPlayableClassId( const ClassID& classId ){ this->playableClassId = classId.id(); }; 61 61 62 62 inline int getPlayableUniqueId(){ return playableUniqueId; } -
branches/new_class_id/src/lib/network/proxy/network_settings.cc
r9691 r9715 27 27 28 28 29 NewObjectListDefinition(NetworkSettings);29 ObjectListDefinition(NetworkSettings); 30 30 31 31 NetworkSettings* NetworkSettings::singletonRef = NULL; -
branches/new_class_id/src/lib/network/proxy/network_settings.h
r9690 r9715 24 24 class NetworkSettings : public BaseObject 25 25 { 26 NewObjectListDeclaration(NetworkSettings);26 ObjectListDeclaration(NetworkSettings); 27 27 public: 28 28 inline static NetworkSettings* getInstance() { if (!NetworkSettings::singletonRef) NetworkSettings::singletonRef = new NetworkSettings(); -
branches/new_class_id/src/lib/network/proxy/proxy_control.cc
r9691 r9715 40 40 41 41 SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell); 42 NewObjectListDefinition(ProxyControl);42 ObjectListDefinition(ProxyControl); 43 43 44 44 /** -
branches/new_class_id/src/lib/network/proxy/proxy_control.h
r9690 r9715 30 30 class ProxyControl : public Synchronizeable 31 31 { 32 NewObjectListDeclaration(ProxyControl);32 ObjectListDeclaration(ProxyControl); 33 33 public: 34 34 inline static ProxyControl* getInstance() { if (!ProxyControl::singletonRef) ProxyControl::singletonRef = new ProxyControl(); -
branches/new_class_id/src/lib/network/server_socket.cc
r9690 r9715 23 23 #include "server_socket.h" 24 24 25 NewObjectListDefinition(ServerSocket);25 ObjectListDefinition(ServerSocket); 26 26 /** 27 27 * constructor -
branches/new_class_id/src/lib/network/server_socket.h
r9690 r9715 19 19 class ServerSocket : public BaseObject 20 20 { 21 NewObjectListDeclaration(ServerSocket);21 ObjectListDeclaration(ServerSocket); 22 22 public: 23 23 ServerSocket( int port); -
branches/new_class_id/src/lib/network/shared_network_data.cc
r9691 r9715 25 25 26 26 27 NewObjectListDefinition(SharedNetworkData);27 ObjectListDefinition(SharedNetworkData); 28 28 SharedNetworkData* SharedNetworkData::singletonRef = NULL; 29 29 -
branches/new_class_id/src/lib/network/shared_network_data.h
r9690 r9715 22 22 class SharedNetworkData : public BaseObject 23 23 { 24 NewObjectListDeclaration(SharedNetworkData);24 ObjectListDeclaration(SharedNetworkData); 25 25 public: 26 26 inline static SharedNetworkData* getInstance() { if (!SharedNetworkData::singletonRef) SharedNetworkData::singletonRef = new SharedNetworkData(); -
branches/new_class_id/src/lib/network/synchronizeable.cc
r9691 r9715 32 32 33 33 34 NewObjectListDefinition(Synchronizeable);34 ObjectListDefinition(Synchronizeable); 35 35 36 36 /** -
branches/new_class_id/src/lib/network/synchronizeable.h
r9690 r9715 41 41 class Synchronizeable : virtual public BaseObject 42 42 { 43 NewObjectListDeclaration(Synchronizeable);43 ObjectListDeclaration(Synchronizeable); 44 44 45 45 public: -
branches/new_class_id/src/lib/network/tcp_server_socket.cc
r9691 r9715 26 26 #include "debug.h" 27 27 28 NewObjectListDefinition(TcpServerSocket);28 ObjectListDefinition(TcpServerSocket); 29 29 TcpServerSocket::TcpServerSocket( int port ) : ServerSocket( port ) 30 30 { -
branches/new_class_id/src/lib/network/tcp_server_socket.h
r9690 r9715 19 19 class TcpServerSocket : public ServerSocket 20 20 { 21 NewObjectListDeclaration(TcpServerSocket);21 ObjectListDeclaration(TcpServerSocket); 22 22 public: 23 23 TcpServerSocket( int port ); -
branches/new_class_id/src/lib/network/tcp_socket.cc
r9691 r9715 30 30 #include "debug.h" 31 31 32 NewObjectListDefinition(TcpSocket);32 ObjectListDefinition(TcpSocket); 33 33 /** 34 34 * Default constructor -
branches/new_class_id/src/lib/network/tcp_socket.h
r9690 r9715 40 40 class TcpSocket : public NetworkSocket 41 41 { 42 NewObjectListDeclaration(TcpSocket);42 ObjectListDeclaration(TcpSocket); 43 43 public: 44 44 TcpSocket(); -
branches/new_class_id/src/lib/network/udp_server_socket.cc
r9690 r9715 18 18 19 19 20 NewObjectListDefinition(UdpServerSocket);20 ObjectListDefinition(UdpServerSocket); 21 21 /** 22 22 * constructor -
branches/new_class_id/src/lib/network/udp_server_socket.h
r9690 r9715 50 50 class UdpServerSocket : public ServerSocket 51 51 { 52 NewObjectListDeclaration(UdpServerSocket);52 ObjectListDeclaration(UdpServerSocket); 53 53 public: 54 54 UdpServerSocket( int port); -
branches/new_class_id/src/lib/network/udp_socket.cc
r9690 r9715 18 18 #include "debug.h" 19 19 20 NewObjectListDefinition(UdpSocket);20 ObjectListDefinition(UdpSocket); 21 21 22 22 void UdpSocket::init( ) -
branches/new_class_id/src/lib/network/udp_socket.h
r9690 r9715 24 24 class UdpSocket : public NetworkSocket 25 25 { 26 NewObjectListDeclaration(UdpSocket);26 ObjectListDeclaration(UdpSocket); 27 27 public: 28 28 UdpSocket();
Note: See TracChangeset
for help on using the changeset viewer.