From a9f2fdec574190eda4fbcf144fcc2844c76e7fcc Mon Sep 17 00:00:00 2001 From: James Turk Date: Fri, 6 Jun 2003 18:55:57 +0000 Subject: [PATCH] version info moved --- include/ZE_Defines.h | 13 ++++--------- include/ZE_ZEngine.h | 10 +++++++++- src/ZE_ZEngine.cpp | 5 +++-- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/include/ZE_Defines.h b/include/ZE_Defines.h index 05cf6a0..67b4a2a 100644 --- a/include/ZE_Defines.h +++ b/include/ZE_Defines.h @@ -22,15 +22,6 @@ //Defines- undefine any of these if you dont have the indicated SDL extension// -//! Major version number. -#define VERSION_MAJOR 0 -//! Minor version number. -#define VERSION_MINOR 8 -//! Version release number. -#define VERSION_RELEASE 3 -//! String representation of Version # -#define VERSION_STR "0.8.3" - //! Define to include font support. #define USE_SDL_TTF //! Define to include non-bmp image file support. @@ -42,9 +33,13 @@ //! Define to use the Physfs file system. //#define USE_PHYSFS +#ifdef USE_SDL_MIXER + //! Maximum message length (for SDL_net). (10kb [10240] default) #define MAX_MSG_LEN 10240 //! Define a ZByte as a plain char (for SDL_net). typedef char ZByte; +#endif + #endif //__ze_defines_h__ diff --git a/include/ZE_ZEngine.h b/include/ZE_ZEngine.h index 911cb64..0088c36 100644 --- a/include/ZE_ZEngine.h +++ b/include/ZE_ZEngine.h @@ -13,7 +13,7 @@ \brief Definition file for core ZEngine class. ZEngine Game Engine core Engine definition. -
$Id: ZE_ZEngine.h,v 1.35 2003/05/13 01:30:51 cozman Exp $
+
$Id: ZE_ZEngine.h,v 1.36 2003/06/06 18:55:58 cozman Exp $
\author James Turk **/ @@ -45,6 +45,14 @@ class ZEngine { private: + //! Major version number. + static const int VersionMajor = 0; + //! Minor version number, changes upon signifigant releases. + static const int VersionMinor = 8; + //! Version release number, changes on every release. + static const int VersionRelease = 3; + //! Version string. + static const char* VersionStr; //! Static Pointer to Instance of ZEngine for Singleton. static ZEngine *sInstance; //! Width of Display diff --git a/src/ZE_ZEngine.cpp b/src/ZE_ZEngine.cpp index ca18587..6a6ad60 100644 --- a/src/ZE_ZEngine.cpp +++ b/src/ZE_ZEngine.cpp @@ -13,7 +13,7 @@ \brief Central source file for ZEngine. Actual implementation of ZEngine singleton class, the core of ZEngine. -
$Id: ZE_ZEngine.cpp,v 1.41 2003/06/02 02:16:57 cozman Exp $
+
$Id: ZE_ZEngine.cpp,v 1.42 2003/06/06 18:55:57 cozman Exp $
\author James Turk **/ @@ -22,6 +22,7 @@ namespace ZE { +const char* ZEngine::VersionStr = "0.8.3"; ZEngine *ZEngine::sInstance=NULL; ZEngine::ZEngine() @@ -81,7 +82,7 @@ void ZEngine::ReleaseInstance() string ZEngine::GetVersion() { - return VERSION_STR; + return VersionStr; } void ZEngine::SetupDisplay(int width, int height, int bpp, bool fullscreen)