Changeset 984 for code/branches/network
- Timestamp:
- Apr 3, 2008, 2:56:48 PM (17 years ago)
- Location:
- code/branches/network/src
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/CMakeLists.txt
r790 r984 11 11 Server.cc 12 12 Synchronisable.cc 13 dummyserver3.cc14 13 ) 15 14 … … 31 30 # build those parts only on request. 32 31 IF(NETWORK_TESTING_ENABLED) 32 ##### test for gamestate stuff ##### 33 SET( TEST_SRC_FILES 34 ConnectionManager.cc 35 GameStateManager.cc 36 PacketBuffer.cc 37 PacketDecoder.cc 38 PacketGenerator.cc 39 ClientConnection.cc 40 ClientInformation.cc 41 diffTest.cc 42 GameStateClient.cc 43 Server.cc 44 Client.cc 45 Synchronisable.cc 46 ) 47 48 ADD_EXECUTABLE(networktest ${TEST_SRC_FILES}) 49 TARGET_LINK_LIBRARIES( networktest 50 ${OGRE_LIBRARIES} 51 network 52 ${ENet_LIBRARY} 53 ${ZLIB_LIBRARY} 54 ${WINDOWS_ENET_DEPENDENCIES} 55 ) 56 ##### end test for gamestate stuff ##### 57 ENDIF(NETWORK_TESTING_ENABLED) 58 IF(BLABLA) 33 59 SET( CHATCLIENT_SRC_FILES 34 60 ClientConnection.cc … … 96 122 ${WINDOWS_ENET_DEPENDENCIES} 97 123 ) 98 ENDIF(NETWORK_TESTING_ENABLED) 124 ENDIF(BLABLA) 125 -
code/branches/network/src/network/GameStateClient.cc
r912 r984 151 151 } 152 152 153 //##### ADDED FOR TESTING PURPOSE ##### 154 GameState* GameStateClient::testDecompress( GameStateCompressed* gc ) { 155 return decompress( gc ); 156 } 157 158 GameState* GameStateClient::testUndiff( GameState* g_old, GameState* g_diffed ) { 159 return undiff( g_old, g_diffed ); 160 } 161 //##### ADDED FOR TESTING PURPOSE ##### 162 153 163 GameState *GameStateClient::decompress(GameStateCompressed *a) { 154 164 int normsize = a->normsize; -
code/branches/network/src/network/GameStateClient.h
r905 r984 23 23 GameStateClient(); 24 24 ~GameStateClient(); 25 //#### ADDED FOR TESTING PURPOSE #### 26 GameState* testDecompress( GameStateCompressed* gc ); 27 GameState* testUndiff( GameState* g_old, GameState* g_diffed ); 28 //#### END TESTING PURPOSE #### 25 29 bool pushGameState(GameStateCompressed *compstate); 26 30 private: -
code/branches/network/src/network/GameStateManager.cc
r905 r984 140 140 COUT(5) << "Gamestate size: " << totalsize << std::endl; 141 141 retval->size=totalsize; 142 //#### bugfix 143 retval->diffed = false; 142 144 return retval; 143 145 } 146 147 //##### ADDED FOR TESTING PURPOSE ##### 148 GameStateCompressed* GameStateManager::testCompress( GameState* g ) { 149 return compress_( g ); 150 } 151 152 GameState* GameStateManager::testDiff( GameState* a, GameState* b ) { 153 return diff( a, b ); 154 } 155 //##### END TESTING PURPOSE ##### 144 156 145 157 GameStateCompressed *GameStateManager::encode(GameState *a, GameState *b) { -
code/branches/network/src/network/GameStateManager.h
r894 r984 42 42 GameStateManager(ClientInformation *head); 43 43 ~GameStateManager(); 44 //#### ADDED FOR TESTING PURPOSE #### 45 GameStateCompressed* testCompress( GameState* g ); 46 GameState* testDiff( GameState* a, GameState* b ); 47 //#### END TESTING PURPOSE #### 44 48 void update(); 45 49 GameStateCompressed *popGameState(int clientID); -
code/branches/network/src/network/PacketDecoder.cc
r915 r984 1 /*1 /* 2 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 3 * -
code/branches/network/src/orxonox/Orxonox.cc
r934 r984 280 280 281 281 server_g->open(); 282 282 283 283 startRenderLoop(); 284 284 }
Note: See TracChangeset
for help on using the changeset viewer.