Changeset 9856 in orxonox.OLD for branches/new_class_id/src/lib
- Timestamp:
- Sep 28, 2006, 6:17:58 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib
- Files:
-
- 19 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/event/key_mapper.cc
r9715 r9856 25 25 #include "globals.h" 26 26 #include "parser/ini_parser/ini_parser.h" 27 #include " util/preferences.h"27 #include "parser/preferences/preferences.h" 28 28 #include "key_names.h" 29 29 #include "event_def.h" -
branches/new_class_id/src/lib/graphics/graphics_engine.cc
r9833 r9856 27 27 #include "debug.h" 28 28 29 #include " util/preferences.h"29 #include "parser/preferences/preferences.h" 30 30 #include "substring.h" 31 31 #include "text.h" -
branches/new_class_id/src/lib/gui/gui.cc
r7661 r9856 18 18 #include "gui.h" 19 19 #include "gui_saveable.h" 20 #include "p references.h"20 #include "parser/preferences/preferences.h" 21 21 22 22 namespace OrxGui -
branches/new_class_id/src/lib/gui/gui_saveable.cc
r9406 r9856 18 18 #include "gui_saveable.h" 19 19 #include "gui.h" 20 #include "p references.h"20 #include "parser/preferences/preferences.h" 21 21 22 22 #include "debug.h" -
branches/new_class_id/src/lib/network/network_game_manager.cc
r9757 r9856 42 42 #include "multiplayer_team_deathmatch.h" 43 43 44 #include "p references.h"44 #include "parser/preferences/preferences.h" 45 45 46 46 -
branches/new_class_id/src/lib/network/network_log.cc
r7954 r9856 15 15 16 16 #include "network_log.h" 17 #include <cassert> 17 18 18 19 /** … … 53 54 return false; 54 55 } 55 56 56 57 listensock = SDLNet_TCP_Open( &ip ); 57 58 58 59 if( !listensock ) { 59 60 PRINT(1)( "SDLNet_TCP_Open: %s\n", SDLNet_GetError() ); 60 61 return false; 61 } 62 } 62 63 63 64 return true; … … 71 72 va_list ap; 72 73 va_start( ap, format ); 73 74 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 75 76 va_end( ap ); 77 74 75 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 76 77 va_end( ap ); 78 78 79 printfnet(); 79 80 } … … 85 86 { 86 87 TCPsocket newSock = SDLNet_TCP_Accept( listensock ); 87 88 88 89 if ( newSock ) 89 90 sockets.push_back( newSock ); … … 97 98 va_list ap; 98 99 va_start( ap, format ); 99 100 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 101 102 va_end( ap ); 103 100 101 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 102 103 va_end( ap ); 104 104 105 PRINT(0)( buf ); 105 106 printfnet(); … … 114 115 va_list ap; 115 116 va_start( ap, format ); 116 117 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 118 119 va_end( ap ); 120 117 118 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 119 120 va_end( ap ); 121 121 122 PRINT(1)( buf ); 122 123 printfnet(); … … 131 132 va_list ap; 132 133 va_start( ap, format ); 133 134 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 135 136 va_end( ap ); 137 134 135 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 136 137 va_end( ap ); 138 138 139 PRINT(2)( buf ); 139 140 printfnet(); … … 148 149 va_list ap; 149 150 va_start( ap, format ); 150 151 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 152 153 va_end( ap ); 154 151 152 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 153 154 va_end( ap ); 155 155 156 PRINT(3)( buf ); 156 157 printfnet(); … … 165 166 va_list ap; 166 167 va_start( ap, format ); 167 168 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 169 170 va_end( ap ); 171 168 169 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 170 171 va_end( ap ); 172 172 173 PRINT(4)( buf ); 173 174 printfnet(); … … 182 183 va_list ap; 183 184 va_start( ap, format ); 184 185 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 186 187 va_end( ap ); 188 185 186 assert( vsnprintf( buf, NETWORK_LOG_BUFLEN, format, ap ) < NETWORK_LOG_BUFLEN ); 187 188 va_end( ap ); 189 189 190 PRINT(5)( buf ); 190 191 printfnet(); … … 200 201 if ( !listensock ) 201 202 return; 202 203 203 204 acceptNewConnections(); 204 205 … … 213 214 continue; 214 215 } 215 216 216 217 it++; 217 218 } -
branches/new_class_id/src/lib/network/network_manager.cc
r9715 r9856 27 27 #include "shared_network_data.h" 28 28 #include "network_stream.h" 29 #include "p references.h"29 #include "parser/preferences/preferences.h" 30 30 #include "network_log.h" 31 31 #include "network_game_manager.h" -
branches/new_class_id/src/lib/network/network_stream.cc
r9836 r9856 33 33 #include "shared_network_data.h" 34 34 #include "message_manager.h" 35 #include "p references.h"35 #include "parser/preferences/preferences.h" 36 36 #include "zip.h" 37 37 -
branches/new_class_id/src/lib/network/player_stats.cc
r9716 r9856 25 25 #include "converter.h" 26 26 27 #include "p references.h"27 #include "parser/preferences/preferences.h" 28 28 29 29 #include "debug.h" -
branches/new_class_id/src/lib/network/proxy/proxy_control.cc
r9715 r9856 27 27 #include "converter.h" 28 28 29 #include "p references.h"29 #include "parser/preferences/preferences.h" 30 30 31 31 #include "debug.h" -
branches/new_class_id/src/lib/parser/Makefile.am
r7256 r9856 2 2 tinyxml \ 3 3 ini_parser \ 4 preferences\5 cmdline_parser4 cmdline_parser \ 5 preferences 6 6 7 7 -
branches/new_class_id/src/lib/parser/cmdline_parser/Makefile.am
r7256 r9856 1 2 INCLUDES=../../../../ 1 3 2 4 noinst_LIBRARIES = libCmdLineParser.a -
branches/new_class_id/src/lib/parser/cmdline_parser/cmdline_parser.h
r8316 r9856 11 11 #include <vector> 12 12 13 #include " src/defs/debug.h"14 #include " src/lib/util/multi_type.h"13 #include "defs/debug.h" 14 #include "util/multi_type.h" 15 15 16 16 -
branches/new_class_id/src/lib/parser/preferences/Makefile.am
r7256 r9856 6 6 libPrefsParser_a_SOURCES = \ 7 7 cmd_line_prefs_reader.cc \ 8 ini_file_prefs_reader.cc 8 ini_file_prefs_reader.cc \ 9 preferences.cc 9 10 10 11 11 12 noinst_HEADERS = \ 12 13 cmd_line_prefs_reader.h \ 13 ini_file_prefs_reader.h 14 ini_file_prefs_reader.h \ 15 preferences.h -
branches/new_class_id/src/lib/parser/preferences/cmd_line_prefs_reader.h
r7256 r9856 7 7 #define _CMD_LINE_PREFS_READER_H 8 8 9 #include "stdincl.h"10 9 #include "debug.h" 11 10 … … 45 44 }; 46 45 47 #define REGISTER_ARG_FLAG(shortOption,longOption,section,key,description,value) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,"",value) 46 #define REGISTER_ARG_FLAG(shortOption,longOption,section,key,description,value) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,"",value) 48 47 49 #define REGISTER_ARG_ARG(shortOption,longOption,section,key,description,argname) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,argname) 48 #define REGISTER_ARG_ARG(shortOption,longOption,section,key,description,argname) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,argname) 50 49 51 50 //! A class for reading commandline arguments into Preferences 52 class CmdLinePrefsReader 51 class CmdLinePrefsReader 53 52 { 54 53 … … 58 57 59 58 bool parse(int argc, char** argv); 60 59 61 60 static bool registerArgument( const char shortOption, const std::string & longOption, const std::string & section, const std::string & key, const std::string & help, const std::string & argName = "", const std::string & value = "%arg%" ); 62 61 63 62 static bool asdf; 64 63 65 64 private: 66 65 static bool callBack( ArgTableEntry entry, void* data, const std::string & arg, const std::vector<MultiType> & argArgs ); 67 66 68 67 static RegistredArgs regArgs; 69 68 -
branches/new_class_id/src/lib/shell/shell_buffer.cc
r9110 r9856 21 21 22 22 #include "debug.h" 23 #include " shell.h"23 #include "compiler.h" 24 24 #include "lib/util/threading.h" 25 25 -
branches/new_class_id/src/lib/sound/sound_engine.cc
r9833 r9856 23 23 #include "p_node.h" 24 24 #include "debug.h" 25 #include " util/preferences.h"25 #include "parser/preferences/preferences.h" 26 26 #include "globals.h" 27 27 #include "resource_sound_buffer.h" -
branches/new_class_id/src/lib/util/Makefile.am
r9836 r9856 28 28 filesys/net_link.cc \ 29 29 \ 30 preferences.cc \31 30 threading.cc \ 32 31 timer.cc … … 61 60 filesys/net_link.h \ 62 61 \ 63 preferences.h \64 62 threading.h \ 65 63 timer.h \ -
branches/new_class_id/src/lib/util/loading/load_param_class_description.cc
r9780 r9856 18 18 #include "multi_type.h" 19 19 #include "debug.h" 20 #include <cassert> 20 21 21 22 /**
Note: See TracChangeset
for help on using the changeset viewer.