diff --git a/include/ZE_ZConfigFile.h b/include/ZE_ZConfigFile.h index cdfd7d5..c82d2b1 100644 --- a/include/ZE_ZConfigFile.h +++ b/include/ZE_ZConfigFile.h @@ -13,7 +13,7 @@ File: Types/ZE_ZConfigFile.h
Description: Header file for ZEngine INI-Style Config Files.
Author(s): James Turk
-$Id: ZE_ZConfigFile.h,v 1.8 2003/02/10 04:07:04 cozman Exp $
+$Id: ZE_ZConfigFile.h,v 1.9 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZConfigFile.h \brief Definition file for ZConfigFile. @@ -147,7 +147,7 @@ class ZConfigFile Flushes the file, ensures a flush if the file is left open. **/ - ~ZConfigFile(); + virtual ~ZConfigFile(); /*! \brief Parse a file. diff --git a/include/ZE_ZError.h b/include/ZE_ZError.h index ad47a49..033e18d 100755 --- a/include/ZE_ZError.h +++ b/include/ZE_ZError.h @@ -13,7 +13,7 @@ File: ZE_ZError.h
Description: Header file for ZEngine Error Object.
Author(s): James Turk
-$Id: ZE_ZError.h,v 1.5 2003/01/26 00:55:52 cozman Exp $
+$Id: ZE_ZError.h,v 1.6 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZError.h \brief Definition file for ZError. @@ -102,6 +102,13 @@ class ZError **/ ZError(ZErrorCode code=ZERR_NONE, string desc="", string file="", int line=0); + /*! + \brief Virtual Destructor. + + Virtual destructor making future inheritance safe. + **/ + virtual ~ZError(); + /*! \brief Set members of error object. diff --git a/include/ZE_ZFont.h b/include/ZE_ZFont.h index b236dc0..c4899c3 100644 --- a/include/ZE_ZFont.h +++ b/include/ZE_ZFont.h @@ -13,7 +13,7 @@ File: ZE_ZFont.h
Description: Header file for core ZEngine Font Object.
Author(s): James Turk
-$Id: ZE_ZFont.h,v 1.5 2003/02/10 04:07:04 cozman Exp $
+$Id: ZE_ZFont.h,v 1.6 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZFont.h \brief Definition file for ZFont. @@ -78,7 +78,7 @@ class ZFont Destructor calls ZFont::Release(). **/ - ~ZFont(); + virtual ~ZFont(); /*! \brief Opens a font with a certain size. diff --git a/include/ZE_ZImage.h b/include/ZE_ZImage.h index b2ee35c..a5350e8 100644 --- a/include/ZE_ZImage.h +++ b/include/ZE_ZImage.h @@ -13,7 +13,7 @@ File: ZE_ZImage.h
Description: Header file for core ZEngine Image and Texture Object.
Author(s): James Turk, Gamer Tazar
-$Id: ZE_ZImage.h,v 1.12 2003/02/10 04:07:05 cozman Exp $
+$Id: ZE_ZImage.h,v 1.13 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZImage.h \brief Definition file for ZImage. @@ -109,7 +109,7 @@ class ZImage Destructor calls ZImage::Release(). **/ - ~ZImage(); + virtual ~ZImage(); /////////////////////// //Opening and Closing// diff --git a/include/ZE_ZMusic.h b/include/ZE_ZMusic.h index aa7527e..4ea7152 100644 --- a/include/ZE_ZMusic.h +++ b/include/ZE_ZMusic.h @@ -13,7 +13,7 @@ File: ZE_ZMusic.h
Description: Header file for core ZEngine Music Wrapper Object.
Author(s): James Turk
-$Id: ZE_ZMusic.h,v 1.5 2003/02/10 04:07:05 cozman Exp $
+$Id: ZE_ZMusic.h,v 1.6 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZMusic.h \brief Definition file for ZMusic. @@ -72,7 +72,7 @@ class ZMusic Destructor calls ZMusic::Release(). **/ - ~ZMusic(); + virtual ~ZMusic(); /*! \brief Opens a music file. diff --git a/include/ZE_ZRect.h b/include/ZE_ZRect.h index eab6c9e..6d2a8d5 100644 --- a/include/ZE_ZRect.h +++ b/include/ZE_ZRect.h @@ -13,7 +13,7 @@ File: ZE_ZRect.h
Description: Header file for core ZEngine Rectangle Object.
Author(s): James Turk
-$Id: ZE_ZRect.h,v 1.6 2003/02/10 04:07:05 cozman Exp $
+$Id: ZE_ZRect.h,v 1.7 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZRect.h \brief Definition file for ZRect. @@ -83,6 +83,13 @@ class ZRect **/ const ZRect& operator=(const ZRect &rhs); + /*! + \brief Virtual Destructor. + + Virtual destructor making future inheritance safe. + **/ + virtual ~ZRect(); + /*! \brief Overload for < operator with ZRect, based upon location then size. diff --git a/include/ZE_ZSound.h b/include/ZE_ZSound.h index 240e1ab..4325bce 100644 --- a/include/ZE_ZSound.h +++ b/include/ZE_ZSound.h @@ -13,7 +13,7 @@ File: ZE_ZSound.h
Description: Header file for core ZEngine Sound Wrapper Object.
Author(s): James Turk
-$Id: ZE_ZSound.h,v 1.5 2003/02/10 04:07:05 cozman Exp $
+$Id: ZE_ZSound.h,v 1.6 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZSound.h \brief Definition file for ZSound. @@ -74,7 +74,7 @@ class ZSound Destructor calls ZSound::Release(). **/ - ~ZSound(); + virtual ~ZSound(); /*! \brief Opens a sound effect file. diff --git a/include/ZE_ZTimer.h b/include/ZE_ZTimer.h index bff6363..e8152cd 100644 --- a/include/ZE_ZTimer.h +++ b/include/ZE_ZTimer.h @@ -13,7 +13,7 @@ File: ZE_ZTimer.h
Description: Header file for core ZEngine Timer Object.
Author(s): James Turk
-$Id: ZE_ZTimer.h,v 1.5 2003/02/10 04:07:05 cozman Exp $
+$Id: ZE_ZTimer.h,v 1.6 2003/02/10 04:40:16 cozman Exp $
\file ZE_ZTimer.h \brief Definition file for ZTimer. @@ -66,6 +66,13 @@ class ZTimer **/ ZTimer(bool useZEngine=true); + /*! + \brief Virtual Destructor. + + Virtual destructor making future inheritance safe. + **/ + virtual ~ZTimer(); + /*! \brief Reset Timer. diff --git a/src/ZE_ZError.cpp b/src/ZE_ZError.cpp index dcc034b..95bb151 100755 --- a/src/ZE_ZError.cpp +++ b/src/ZE_ZError.cpp @@ -13,7 +13,7 @@ File: ZE_ZError.cpp
Description: Implementation source file for core ZEngine Error Object.
Author(s): James Turk
-$Id: ZE_ZError.cpp,v 1.3 2003/01/26 00:55:52 cozman Exp $
+$Id: ZE_ZError.cpp,v 1.4 2003/02/10 04:40:30 cozman Exp $
\file ZE_ZError.cpp \brief Source file for ZError. @@ -68,6 +68,10 @@ ZError::ZError(ZErrorCode code, string desc, string file, int line) rLine = line; } +ZError::~ZError() +{ +} + void ZError::Create(ZErrorCode code, string desc, string file, int line) { rCode = code; diff --git a/src/ZE_ZRect.cpp b/src/ZE_ZRect.cpp index 4aff8c4..449d4e2 100644 --- a/src/ZE_ZRect.cpp +++ b/src/ZE_ZRect.cpp @@ -13,7 +13,7 @@ File: ZE_ZRect.cpp
Description: Implementation source file for core ZEngine Rectangle Object.
Author(s): James Turk
-$Id: ZE_ZRect.cpp,v 1.7 2003/01/16 05:45:58 cozman Exp $
+$Id: ZE_ZRect.cpp,v 1.8 2003/02/10 04:40:30 cozman Exp $
\file ZE_ZRect.cpp \brief Source file for ZRect. @@ -41,6 +41,10 @@ ZRect::ZRect(const ZRect &rhs) : { } +ZRect::~ZRect() +{ +} + const ZRect& ZRect::operator=(const ZRect &rhs) { if(this != &rhs) diff --git a/src/ZE_ZTimer.cpp b/src/ZE_ZTimer.cpp index 056ad69..1afadaf 100644 --- a/src/ZE_ZTimer.cpp +++ b/src/ZE_ZTimer.cpp @@ -13,7 +13,7 @@ File: ZE_ZTimer.cpp
Description: Implementation source file for core ZEngine Timer Object.
Author(s): James Turk
-$Id: ZE_ZTimer.cpp,v 1.5 2003/02/10 04:02:39 cozman Exp $
+$Id: ZE_ZTimer.cpp,v 1.6 2003/02/10 04:40:30 cozman Exp $
\file ZE_ZTimer.cpp \brief Source file for ZTimer. @@ -42,6 +42,10 @@ ZTimer::ZTimer(bool useZEngine) Reset(); } +ZTimer::~ZTimer() +{ +} + void ZTimer::Reset() { rLastPause = rPausedTime = GetParentTime();