virtual destructor

This commit is contained in:
James Turk 2003-02-10 04:40:16 +00:00
parent 2cc3e556e0
commit 4a9e49fba0
11 changed files with 49 additions and 16 deletions

View File

@ -13,7 +13,7 @@
File: Types/ZE_ZConfigFile.h <br> File: Types/ZE_ZConfigFile.h <br>
Description: Header file for ZEngine INI-Style Config Files.<br> Description: Header file for ZEngine INI-Style Config Files.<br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZConfigFile.h,v 1.8 2003/02/10 04:07:04 cozman Exp $<br> $Id: ZE_ZConfigFile.h,v 1.9 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZConfigFile.h \file ZE_ZConfigFile.h
\brief Definition file for ZConfigFile. \brief Definition file for ZConfigFile.
@ -147,7 +147,7 @@ class ZConfigFile
Flushes the file, ensures a flush if the file is left open. Flushes the file, ensures a flush if the file is left open.
**/ **/
~ZConfigFile(); virtual ~ZConfigFile();
/*! /*!
\brief Parse a file. \brief Parse a file.

View File

@ -13,7 +13,7 @@
File: ZE_ZError.h <br> File: ZE_ZError.h <br>
Description: Header file for ZEngine Error Object. <br> Description: Header file for ZEngine Error Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZError.h,v 1.5 2003/01/26 00:55:52 cozman Exp $<br> $Id: ZE_ZError.h,v 1.6 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZError.h \file ZE_ZError.h
\brief Definition file for ZError. \brief Definition file for ZError.
@ -102,6 +102,13 @@ class ZError
**/ **/
ZError(ZErrorCode code=ZERR_NONE, string desc="", string file="", int line=0); 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. \brief Set members of error object.

View File

@ -13,7 +13,7 @@
File: ZE_ZFont.h <br> File: ZE_ZFont.h <br>
Description: Header file for core ZEngine Font Object. <br> Description: Header file for core ZEngine Font Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZFont.h,v 1.5 2003/02/10 04:07:04 cozman Exp $<br> $Id: ZE_ZFont.h,v 1.6 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZFont.h \file ZE_ZFont.h
\brief Definition file for ZFont. \brief Definition file for ZFont.
@ -78,7 +78,7 @@ class ZFont
Destructor calls ZFont::Release(). Destructor calls ZFont::Release().
**/ **/
~ZFont(); virtual ~ZFont();
/*! /*!
\brief Opens a font with a certain size. \brief Opens a font with a certain size.

View File

@ -13,7 +13,7 @@
File: ZE_ZImage.h <br> File: ZE_ZImage.h <br>
Description: Header file for core ZEngine Image and Texture Object. <br> Description: Header file for core ZEngine Image and Texture Object. <br>
Author(s): James Turk, Gamer Tazar <br> Author(s): James Turk, Gamer Tazar <br>
$Id: ZE_ZImage.h,v 1.12 2003/02/10 04:07:05 cozman Exp $<br> $Id: ZE_ZImage.h,v 1.13 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZImage.h \file ZE_ZImage.h
\brief Definition file for ZImage. \brief Definition file for ZImage.
@ -109,7 +109,7 @@ class ZImage
Destructor calls ZImage::Release(). Destructor calls ZImage::Release().
**/ **/
~ZImage(); virtual ~ZImage();
/////////////////////// ///////////////////////
//Opening and Closing// //Opening and Closing//

View File

@ -13,7 +13,7 @@
File: ZE_ZMusic.h <br> File: ZE_ZMusic.h <br>
Description: Header file for core ZEngine Music Wrapper Object. <br> Description: Header file for core ZEngine Music Wrapper Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZMusic.h,v 1.5 2003/02/10 04:07:05 cozman Exp $<br> $Id: ZE_ZMusic.h,v 1.6 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZMusic.h \file ZE_ZMusic.h
\brief Definition file for ZMusic. \brief Definition file for ZMusic.
@ -72,7 +72,7 @@ class ZMusic
Destructor calls ZMusic::Release(). Destructor calls ZMusic::Release().
**/ **/
~ZMusic(); virtual ~ZMusic();
/*! /*!
\brief Opens a music file. \brief Opens a music file.

View File

@ -13,7 +13,7 @@
File: ZE_ZRect.h <br> File: ZE_ZRect.h <br>
Description: Header file for core ZEngine Rectangle Object. <br> Description: Header file for core ZEngine Rectangle Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZRect.h,v 1.6 2003/02/10 04:07:05 cozman Exp $<br> $Id: ZE_ZRect.h,v 1.7 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZRect.h \file ZE_ZRect.h
\brief Definition file for ZRect. \brief Definition file for ZRect.
@ -83,6 +83,13 @@ class ZRect
**/ **/
const ZRect& operator=(const ZRect &rhs); 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. \brief Overload for < operator with ZRect, based upon location then size.

View File

@ -13,7 +13,7 @@
File: ZE_ZSound.h <br> File: ZE_ZSound.h <br>
Description: Header file for core ZEngine Sound Wrapper Object. <br> Description: Header file for core ZEngine Sound Wrapper Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZSound.h,v 1.5 2003/02/10 04:07:05 cozman Exp $<br> $Id: ZE_ZSound.h,v 1.6 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZSound.h \file ZE_ZSound.h
\brief Definition file for ZSound. \brief Definition file for ZSound.
@ -74,7 +74,7 @@ class ZSound
Destructor calls ZSound::Release(). Destructor calls ZSound::Release().
**/ **/
~ZSound(); virtual ~ZSound();
/*! /*!
\brief Opens a sound effect file. \brief Opens a sound effect file.

View File

@ -13,7 +13,7 @@
File: ZE_ZTimer.h <br> File: ZE_ZTimer.h <br>
Description: Header file for core ZEngine Timer Object. <br> Description: Header file for core ZEngine Timer Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZTimer.h,v 1.5 2003/02/10 04:07:05 cozman Exp $<br> $Id: ZE_ZTimer.h,v 1.6 2003/02/10 04:40:16 cozman Exp $<br>
\file ZE_ZTimer.h \file ZE_ZTimer.h
\brief Definition file for ZTimer. \brief Definition file for ZTimer.
@ -66,6 +66,13 @@ class ZTimer
**/ **/
ZTimer(bool useZEngine=true); ZTimer(bool useZEngine=true);
/*!
\brief Virtual Destructor.
Virtual destructor making future inheritance safe.
**/
virtual ~ZTimer();
/*! /*!
\brief Reset Timer. \brief Reset Timer.

View File

@ -13,7 +13,7 @@
File: ZE_ZError.cpp <br> File: ZE_ZError.cpp <br>
Description: Implementation source file for core ZEngine Error Object. <br> Description: Implementation source file for core ZEngine Error Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZError.cpp,v 1.3 2003/01/26 00:55:52 cozman Exp $<br> $Id: ZE_ZError.cpp,v 1.4 2003/02/10 04:40:30 cozman Exp $<br>
\file ZE_ZError.cpp \file ZE_ZError.cpp
\brief Source file for ZError. \brief Source file for ZError.
@ -68,6 +68,10 @@ ZError::ZError(ZErrorCode code, string desc, string file, int line)
rLine = line; rLine = line;
} }
ZError::~ZError()
{
}
void ZError::Create(ZErrorCode code, string desc, string file, int line) void ZError::Create(ZErrorCode code, string desc, string file, int line)
{ {
rCode = code; rCode = code;

View File

@ -13,7 +13,7 @@
File: ZE_ZRect.cpp <br> File: ZE_ZRect.cpp <br>
Description: Implementation source file for core ZEngine Rectangle Object. <br> Description: Implementation source file for core ZEngine Rectangle Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZRect.cpp,v 1.7 2003/01/16 05:45:58 cozman Exp $<br> $Id: ZE_ZRect.cpp,v 1.8 2003/02/10 04:40:30 cozman Exp $<br>
\file ZE_ZRect.cpp \file ZE_ZRect.cpp
\brief Source file for ZRect. \brief Source file for ZRect.
@ -41,6 +41,10 @@ ZRect::ZRect(const ZRect &rhs) :
{ {
} }
ZRect::~ZRect()
{
}
const ZRect& ZRect::operator=(const ZRect &rhs) const ZRect& ZRect::operator=(const ZRect &rhs)
{ {
if(this != &rhs) if(this != &rhs)

View File

@ -13,7 +13,7 @@
File: ZE_ZTimer.cpp <br> File: ZE_ZTimer.cpp <br>
Description: Implementation source file for core ZEngine Timer Object. <br> Description: Implementation source file for core ZEngine Timer Object. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZTimer.cpp,v 1.5 2003/02/10 04:02:39 cozman Exp $<br> $Id: ZE_ZTimer.cpp,v 1.6 2003/02/10 04:40:30 cozman Exp $<br>
\file ZE_ZTimer.cpp \file ZE_ZTimer.cpp
\brief Source file for ZTimer. \brief Source file for ZTimer.
@ -42,6 +42,10 @@ ZTimer::ZTimer(bool useZEngine)
Reset(); Reset();
} }
ZTimer::~ZTimer()
{
}
void ZTimer::Reset() void ZTimer::Reset()
{ {
rLastPause = rPausedTime = GetParentTime(); rLastPause = rPausedTime = GetParentTime();