Changeset 3106 for code/branches/ggz
- Timestamp:
- May 28, 2009, 5:18:42 PM (15 years ago)
- Location:
- code/branches/ggz/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ggz/src/CMakeLists.txt
r3002 r3106 32 32 # Tolua binding speedup if required 33 33 ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE) 34 # Enable GGZMode support if found35 IF(GGZMODE_FOUND)36 ADD_COMPILER_FLAGS("-DHAS_GGZ")37 ENDIF()38 34 39 35 ################ OrxonoxConfig.h ################ -
code/branches/ggz/src/SpecialConfig.h.in
r2710 r3106 59 59 #define MACRO_QUOTEME(x) MACRO_QUOTEME_AUX(x) 60 60 61 /* Macro for availability of the ggzmod library */ 62 #cmakedefine GGZMOD_FOUND 63 61 64 /* Handle default ConfigValues */ 62 65 namespace orxonox -
code/branches/ggz/src/orxonox/gamestates/GSClient.cc
r3000 r3106 35 35 #include "core/Core.h" 36 36 #include "network/Client.h" 37 #ifdef GGZMOD_FOUND 38 #include "GGZClient.h" 39 #endif /* GGZMOD_FOUND */ 37 40 38 41 namespace orxonox … … 54 57 Core::setIsClient(true); 55 58 56 #ifdef HAS_GGZ59 #ifdef GGZMOD_FOUND 57 60 ggzClient = NULL; 58 61 if (GGZClient::isActive()) { … … 63 66 COUT(3) << "Not using GGZ\n"; 64 67 } 65 #else /* HAS_GGZ*/68 #else /* GGZMOD_FOUND */ 66 69 COUT(3) << "GGZ support disabled\n"; 67 #endif /* HAS_GGZ*/70 #endif /* GGZMOD_FOUND */ 68 71 69 72 this->client_ = new Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port")); … … 83 86 client_->closeConnection(); 84 87 85 #ifdef HAS_GGZ88 #ifdef GGZMOD_FOUND 86 89 if (ggzClient) 87 90 { 88 91 delete ggzClient; 89 92 } 90 #endif /* HAS_GGZ*/93 #endif /* GGZMOD_FOUND */ 91 94 92 95 // destroy client -
code/branches/ggz/src/orxonox/gamestates/GSClient.h
r3000 r3106 30 30 #define _GSClient_H__ 31 31 32 #include "SpecialConfig.h" 32 33 #include "OrxonoxPrereqs.h" 33 34 #include "network/NetworkPrereqs.h" 34 35 #include "GSLevel.h" 35 36 #include "GSGraphics.h" 36 #ifdef HAS_GGZ37 #include "GGZClient.h"38 #endif /* HAS_GGZ */39 37 40 38 namespace orxonox 41 39 { 40 #ifdef GGZMOD_FOUND 41 class _OrxonoxExport GGZClient; 42 #endif /* GGZMOD_FOUND */ 43 42 44 class _OrxonoxExport GSClient : public GameState<GSGraphics>, public GSLevel 43 45 { … … 45 47 GSClient(); 46 48 ~GSClient(); 47 48 49 49 50 private: … … 53 54 54 55 Client* client_; 55 #ifdef HAS_GGZ56 #ifdef GGZMOD_FOUND 56 57 GGZClient* ggzClient; 57 #endif /* HAS_GGZ */ 58 58 #endif /* GGZMOD_FOUND */ 59 59 }; 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.