version info

This commit is contained in:
James Turk 2003-06-10 23:24:47 +00:00
parent c7e236db5c
commit fc991bbcc8
4 changed files with 27 additions and 27 deletions

View File

@ -14,7 +14,7 @@
Definition file for VersinInfo class, simple class for containing and comparing Definition file for VersinInfo class, simple class for containing and comparing
version numbers. version numbers.
<br>$Id: VersionInfo.h,v 1.1 2003/06/10 23:15:31 cozman Exp $<br> <br>$Id: VersionInfo.h,v 1.2 2003/06/10 23:24:47 cozman Exp $<br>
\author James Turk \author James Turk
**/ **/
@ -40,6 +40,17 @@ class VersionInfo
//! String Description of release. (Often blank.) //! String Description of release. (Often blank.)
string extra; string extra;
/*!
\brief Constructor for VersionInfo.
Simple constructor for version info, with a parameter for each member.
\param maj Major version number.
\param min Minor version number.
\param rel Version release number.
\param ext Extra info string, optional (defaults to empty string).
**/
VersionInfo(unsigned int maj, unsigned int min, unsigned int rel, string ext="");
/*! /*!
\brief Get string representing version number. \brief Get string representing version number.

View File

@ -13,7 +13,7 @@
\brief Definition file for core ZEngine class. \brief Definition file for core ZEngine class.
ZEngine Game Engine core Engine definition. ZEngine Game Engine core Engine definition.
<br>$Id: ZE_ZEngine.h,v 1.38 2003/06/09 02:46:22 cozman Exp $<br> <br>$Id: ZE_ZEngine.h,v 1.39 2003/06/10 23:24:47 cozman Exp $<br>
\author James Turk \author James Turk
**/ **/
@ -26,6 +26,7 @@
#include "ZE_Utility.h" #include "ZE_Utility.h"
#include "ZE_Includes.h" #include "ZE_Includes.h"
#include "ZE_ZError.h" #include "ZE_ZError.h"
#include "VersionInfo.h"
/*! /*!
\brief ZEngine Namespace. \brief ZEngine Namespace.
@ -43,16 +44,11 @@ namespace ZE
**/ **/
class ZEngine class ZEngine
{ {
public:
//! Static version information.
static VersionInfo Version;
private: 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 Pointer to Instance of ZEngine for Singleton.
static ZEngine *sInstance; static ZEngine *sInstance;
//! Width of Display //! Width of Display
@ -146,14 +142,6 @@ class ZEngine
**/ **/
static void ReleaseInstance(); static void ReleaseInstance();
/*!
\brief Get Current Version.
Get Version Number of ZEngine. (Major.Minor.Extension#)
\return string containing version number
**/
static string GetVersion();
////////////////// //////////////////
//Initialization// //Initialization//
////////////////// //////////////////

View File

@ -6,10 +6,16 @@
Implementation file for VersinInfo class, simple class for containing and comparing Implementation file for VersinInfo class, simple class for containing and comparing
version numbers. version numbers.
<br>$Id: VersionInfo.cpp,v 1.1 2003/06/10 23:15:32 cozman Exp $<br> <br>$Id: VersionInfo.cpp,v 1.2 2003/06/10 23:24:47 cozman Exp $<br>
\author James Turk \author James Turk
**/ **/
VersionInfo::VersionInfo(unsigned int maj, unsigned int min, unsigned int rel, string ext) :
major(maj), minor(min), release(rel), extra(ext)
{
}
string VersionInfo::GetString() const string VersionInfo::GetString() const
{ {
if(extra.length()) if(extra.length())

View File

@ -13,7 +13,7 @@
\brief Central source file for ZEngine. \brief Central source file for ZEngine.
Actual implementation of ZEngine singleton class, the core of ZEngine. Actual implementation of ZEngine singleton class, the core of ZEngine.
<br>$Id: ZE_ZEngine.cpp,v 1.43 2003/06/09 02:46:22 cozman Exp $<br> <br>$Id: ZE_ZEngine.cpp,v 1.44 2003/06/10 23:24:47 cozman Exp $<br>
\author James Turk \author James Turk
**/ **/
@ -22,7 +22,7 @@
namespace ZE namespace ZE
{ {
const char* ZEngine::VersionStr = "0.8.3"; VersionInfo ZEngine::Version(0,8,3);
ZEngine *ZEngine::sInstance=NULL; ZEngine *ZEngine::sInstance=NULL;
ZEngine::ZEngine() ZEngine::ZEngine()
@ -81,11 +81,6 @@ void ZEngine::ReleaseInstance()
sInstance = NULL; sInstance = NULL;
} }
string ZEngine::GetVersion()
{
return VersionStr;
}
void ZEngine::SetupDisplay(int width, int height, int bpp, bool fullscreen) void ZEngine::SetupDisplay(int width, int height, int bpp, bool fullscreen)
{ {
mWidth = width; mWidth = width;