Changeset 3000 for code/branches/ggz/src/orxonox/gamestates
- Timestamp:
- May 20, 2009, 8:47:08 PM (16 years ago)
- Location:
- code/branches/ggz/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ggz/src/orxonox/gamestates/GSClient.cc
r2171 r3000 24 24 * Co-authors: 25 25 * Fabian 'x3n' Landau 26 * Adrian Friedli 26 27 * 27 28 */ … … 53 54 Core::setIsClient(true); 54 55 56 #ifdef HAS_GGZ 57 ggzClient = NULL; 58 if (GGZClient::isActive()) { 59 COUT(3) << "Initializing GGZ\n"; 60 ggzClient = new GGZClient; 61 } 62 else { 63 COUT(3) << "Not using GGZ\n"; 64 } 65 #else /* HAS_GGZ */ 66 COUT(3) << "GGZ support disabled\n"; 67 #endif /* HAS_GGZ */ 68 55 69 this->client_ = new Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port")); 56 70 … … 69 83 client_->closeConnection(); 70 84 85 #ifdef HAS_GGZ 86 if (ggzClient) 87 { 88 delete ggzClient; 89 } 90 #endif /* HAS_GGZ */ 91 71 92 // destroy client 72 93 delete this->client_; -
code/branches/ggz/src/orxonox/gamestates/GSClient.h
r2171 r3000 23 23 * Reto Grieder 24 24 * Co-authors: 25 * ...25 * Adrian Friedli 26 26 * 27 27 */ … … 34 34 #include "GSLevel.h" 35 35 #include "GSGraphics.h" 36 #ifdef HAS_GGZ 37 #include "GGZClient.h" 38 #endif /* HAS_GGZ */ 36 39 37 40 namespace orxonox … … 50 53 51 54 Client* client_; 55 #ifdef HAS_GGZ 56 GGZClient* ggzClient; 57 #endif /* HAS_GGZ */ 58 52 59 }; 53 60 }
Note: See TracChangeset
for help on using the changeset viewer.