From 7c7141863cbb9f2d9240738409e6389ed159039f Mon Sep 17 00:00:00 2001 From: James Turk Date: Sat, 5 Jul 2003 00:40:44 +0000 Subject: [PATCH] *** empty log message *** --- changelog.txt | 12 +- doc/ZEngine.win32.doxygen | 5 +- doc/html/SDLGL__Util_8h-source.html | 6 +- doc/html/ZE__Defines_8h-source.html | 51 +- doc/html/ZE__Defines_8h.html | 51 +- doc/html/ZE__Includes_8h-source.html | 75 +- doc/html/ZE__Includes_8h.html | 27 +- doc/html/ZE__Utility_8cpp.html | 16 +- doc/html/ZE__Utility_8h-source.html | 67 +- doc/html/ZE__Utility_8h.html | 16 +- doc/html/ZE__ZClient_8cpp.html | 16 +- doc/html/ZE__ZClient_8h-source.html | 92 +- doc/html/ZE__ZClient_8h.html | 18 +- doc/html/ZE__ZConfigFile_8cpp.html | 16 +- doc/html/ZE__ZConfigFile_8h-source.html | 158 ++-- doc/html/ZE__ZConfigFile_8h.html | 16 +- doc/html/ZE__ZEngine_8cpp.html | 16 +- doc/html/ZE__ZEngine_8h-source.html | 432 ++++----- doc/html/ZE__ZEngine_8h.html | 18 +- doc/html/ZE__ZError_8cpp.html | 16 +- doc/html/ZE__ZError_8h-source.html | 124 ++- doc/html/ZE__ZError_8h.html | 16 +- doc/html/ZE__ZFont_8cpp.html | 16 +- doc/html/ZE__ZFont_8h-source.html | 150 +-- doc/html/ZE__ZFont_8h.html | 17 +- doc/html/ZE__ZImage_8cpp.html | 16 +- doc/html/ZE__ZImage_8h-source.html | 184 ++-- doc/html/ZE__ZImage_8h.html | 16 +- doc/html/ZE__ZMusic_8cpp.html | 16 +- doc/html/ZE__ZMusic_8h-source.html | 126 +-- doc/html/ZE__ZMusic_8h.html | 16 +- doc/html/ZE__ZRect_8cpp.html | 16 +- doc/html/ZE__ZRect_8h-source.html | 150 +-- doc/html/ZE__ZRect_8h.html | 16 +- doc/html/ZE__ZServer_8cpp.html | 16 +- doc/html/ZE__ZServer_8h-source.html | 96 +- doc/html/ZE__ZServer_8h.html | 18 +- doc/html/ZE__ZSound_8cpp.html | 16 +- doc/html/ZE__ZSound_8h-source.html | 124 +-- doc/html/ZE__ZSound_8h.html | 16 +- doc/html/ZE__ZTimer_8cpp.html | 16 +- doc/html/ZE__ZTimer_8h-source.html | 84 +- doc/html/ZE__ZTimer_8h.html | 16 +- doc/html/ZEngine_8h-source.html | 48 +- doc/html/ZEngine_8h.html | 18 +- doc/html/annotated.html | 10 +- doc/html/classZE_1_1ZConfigFile-members.html | 36 +- doc/html/classZE_1_1ZConfigFile.html | 256 ++--- ..._1ZConfigFile_1_1ZCF__Section-members.html | 6 +- ...lassZE_1_1ZConfigFile_1_1ZCF__Section.html | 14 +- ...1ZConfigFile_1_1ZCF__Variable-members.html | 6 +- ...assZE_1_1ZConfigFile_1_1ZCF__Variable.html | 16 +- doc/html/classZE_1_1ZEngine-members.html | 57 +- doc/html/classZE_1_1ZEngine.html | 885 +++++++++--------- doc/html/classZE_1_1ZError-members.html | 16 +- doc/html/classZE_1_1ZError.html | 148 +-- doc/html/classZE_1_1ZFont-members.html | 20 +- doc/html/classZE_1_1ZFont.html | 177 ++-- doc/html/classZE_1_1ZImage-members.html | 18 +- doc/html/classZE_1_1ZImage.html | 282 +++--- doc/html/classZE_1_1ZMusic-members.html | 10 +- doc/html/classZE_1_1ZMusic.html | 112 +-- doc/html/classZE_1_1ZRect-members.html | 6 +- doc/html/classZE_1_1ZRect.html | 174 ++-- doc/html/classZE_1_1ZSound-members.html | 10 +- doc/html/classZE_1_1ZSound.html | 108 +-- doc/html/classZE_1_1ZTimer-members.html | 6 +- doc/html/classZE_1_1ZTimer.html | 68 +- doc/html/doxygen.css | 1 + doc/html/files.html | 13 +- doc/html/functions.html | 179 ++-- doc/html/globals.html | 30 +- doc/html/index.html | 25 +- doc/html/namespaceZE.html | 84 +- doc/html/namespacemembers.html | 6 +- doc/html/namespaces.html | 6 +- doc/html/physfsrwops_8h-source.html | 6 +- include/ZE_Includes.h | 2 - include/ZE_ZEngine.h | 68 +- include/ZE_ZError.h | 19 +- src/ZE_ZEngine.cpp | 44 +- src/ZE_ZError.cpp | 55 +- src/ZE_ZImage.cpp | 15 +- test/ZMouseTest.cpp | 4 +- vc7/ZEngine.vcproj | 12 +- 85 files changed, 2678 insertions(+), 2803 deletions(-) diff --git a/changelog.txt b/changelog.txt index 9c51e88..6180fcc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,12 +1,18 @@ ZEngine Version Log for Version 0.8.3 -$Id: changelog.txt,v 1.35 2003/06/11 05:58:29 cozman Exp $ +$Id: changelog.txt,v 1.36 2003/07/05 00:40:44 cozman Exp $ + +As of 0.8.3 changes with a !!! may break backwards compatibility. 0.8.4 + -Changed implementation of parts of ZImage for tiny optimization. + !!! Removed Rand* functions from ZEngine and replaced with overloaded Rand. + -Removed mt19937ar.h/cpp replaced with ZE_ZRandGen.h/cpp + -Fixed tiny problem ZImage use of alpha. -Changed default font rendering to blended, much better results. Also added alpha parameter. -ZEngine no longer forces use namespace std, library references prefixed with std::. -Revised all source, cleaned up various areas. -Moved versioning information. - -Changed way event hook is implemented, more control, threadsafe. + -Changed way event hook is implemented, more control, should be threadsafe. 0.8.3 -Changed Macros in ZE_Utility to functions. @@ -21,7 +27,7 @@ $Id: changelog.txt,v 1.35 2003/06/11 05:58:29 cozman Exp $ -Simple ZServer and ZClient classes using SDL_net. -Fixed ZImage::SetColorKey. (thanks to Kevin Watters) -Added floats to ZConfigFile. - -Removed ZObject inheritance hierarchy and made classes inheritance-safe. + !!! Removed ZObject inheritance hierarchy and made classes inheritance-safe. -Added ZImage<-->ZImage drawing in OpenFromImage. -Added ZImage::Draw(int,int) and ZImage::DrawRotated(float,float,float). -New ZRect constructor (construct from SDL_Rect). diff --git a/doc/ZEngine.win32.doxygen b/doc/ZEngine.win32.doxygen index ebd7c52..a95e9fa 100644 --- a/doc/ZEngine.win32.doxygen +++ b/doc/ZEngine.win32.doxygen @@ -1,4 +1,4 @@ -# Doxyfile 1.3-rc2 +# Doxyfile 1.3 #--------------------------------------------------------------------------- # General configuration options @@ -7,6 +7,7 @@ PROJECT_NAME = ZEngine PROJECT_NUMBER = 0.8.3 OUTPUT_DIRECTORY = C:\libs\ZEngine-0.8.3\doc\ OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES EXTRACT_ALL = NO EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES @@ -118,6 +119,7 @@ LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- @@ -188,6 +190,7 @@ DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- diff --git a/doc/html/SDLGL__Util_8h-source.html b/doc/html/SDLGL__Util_8h-source.html index 95e1654..0e6ae40 100755 --- a/doc/html/SDLGL__Util_8h-source.html +++ b/doc/html/SDLGL__Util_8h-source.html @@ -3,7 +3,7 @@ /include/external/SDLGL_Util.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/external/SDLGL_Util.h

00001 /*This code comes from testgl.c which is part of the SDL source distribution.
@@ -18,9 +18,9 @@
 00010 GLuint SDL_GL_LoadTexture(SDL_Surface *surface, GLfloat *texcoord);
 00011 
 00012 #endif //__sdlgl_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Defines_8h-source.html b/doc/html/ZE__Defines_8h-source.html index a2fce18..6973e69 100644 --- a/doc/html/ZE__Defines_8h-source.html +++ b/doc/html/ZE__Defines_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_Defines.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Defines.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,31 +16,36 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_defines_h__
-00025 #define __ze_defines_h__
-00026 
-00027 //Defines- undefine any of these if you dont have the indicated SDL extension//
-00028 
-00030 #define VERSION "0.8.3"
+00020 #ifndef __ze_defines_h__
+00021 #define __ze_defines_h__
+00022 
+00023 //Defines- undefine any of these if you dont have the indicated SDL extension//
+00024 
+00026 #define USE_SDL_TTF
+00027 
+00028 #define USE_SDL_IMAGE
+00029 
+00030 #define USE_SDL_MIXER
 00031 
-00033 #define USE_SDL_TTF
-00034 
-00035 #define USE_SDL_IMAGE
-00036 
-00037 #define USE_SDL_MIXER
-00038 
-00039 #define USE_SDL_NET
-00040 
-00041 #define USE_PHYSFS
-00042 
-00044 #define MAX_MSG_LEN 10240
-00045 
-00046 typedef char ZByte;
+00032 //#define USE_SDL_NET
+00034 //#define USE_PHYSFS
+00035 
+00036 #ifdef USE_SDL_NET
+00037 
+00038 namespace ZE
+00039 {
+00040 
+00042 const int MAX_MSG_LEN = 10240;
+00044 typedef char ZByte;
+00045 
+00046 }
 00047 
-00048 #endif //__ze_defines_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00048 #endif +00049 +00050 #endif //__ze_defines_h__ +
Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Defines_8h.html b/doc/html/ZE__Defines_8h.html index d238817..0f940ad 100644 --- a/doc/html/ZE__Defines_8h.html +++ b/doc/html/ZE__Defines_8h.html @@ -3,54 +3,33 @@ ZE_Defines.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Defines.h File Reference


Detailed Description

-
File Header:
File: ZE_Defines.h
- Description: Defines header file for ZEngine class, where all #define statements to control compilation options are placed.
- Author(s): James Turk
-
Id
ZE_Defines.h,v 1.12 2003/04/27 18:55:00 cozman Exp
-
-
+Definition file, holds #define statements describing optional features of ZEngine.
+$ id: ZE_Defines.h,v 1.13 2003/05/07 18:38:43 cozman Exp $
+
Author:
James Turk
-

-Definition file, holds #define statements describing optional features of ZEngine.

Go to the source code of this file. - - - - - - - - - - - - - - - - - + + + + + +

Defines

-#define VERSION   "0.8.3"
 Version number.

-#define USE_SDL_TTF
 Define to include font support.

-#define USE_SDL_IMAGE
 Define to include non-bmp image file support.

-#define USE_SDL_MIXER
 Define to include sound support.

-#define USE_SDL_NET
 Define to include net support.

-#define USE_PHYSFS
 Define to use the Physfs file system.

-#define MAX_MSG_LEN   10240
 Maximum message length (for SDL_net). (10kb [10240] default).


Typedefs

-typedef char ZByte
 Define a ZByte as a plain char (for SDL_net).

+#define USE_SDL_TTF
 Define to include font support.

+#define USE_SDL_IMAGE
 Define to include non-bmp image file support.

+#define USE_SDL_MIXER
 Define to include sound support.

-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Includes_8h-source.html b/doc/html/ZE__Includes_8h-source.html index f250aca..a0ccbb4 100644 --- a/doc/html/ZE__Includes_8h-source.html +++ b/doc/html/ZE__Includes_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_Includes.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Includes.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,48 +16,41 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00025 #ifndef __ze_includes_h__
-00026 #define __ze_includes_h__
-00027 
-00028 #include "ZE_Defines.h"
-00029 
-00030 #include "SDL.h"
-00031 #include "SDL_opengl.h"
-00032 #include "external/SDLGL_Util.h"
-00033 #ifdef USE_SDL_IMAGE
-00034 #include "SDL_image.h"
-00035 #endif
-00036 #ifdef USE_SDL_TTF
-00037 #include "SDL_ttf.h"
-00038 #endif
-00039 #ifdef USE_SDL_MIXER
-00040 #include "SDL_mixer.h"
-00041 #endif
-00042 #ifdef USE_SDL_NET
-00043 #include "SDL_net.h"
+00021 #ifndef __ze_includes_h__
+00022 #define __ze_includes_h__
+00023 
+00024 #include "ZE_Defines.h"
+00025 
+00026 #include "SDL.h"
+00027 #include "SDL_opengl.h"
+00028 #include "external/SDLGL_Util.h"
+00029 #ifdef USE_SDL_IMAGE
+00030 #include "SDL_image.h"
+00031 #endif
+00032 #ifdef USE_SDL_TTF
+00033 #include "SDL_ttf.h"
+00034 #endif
+00035 #ifdef USE_SDL_MIXER
+00036 #include "SDL_mixer.h"
+00037 #endif
+00038 #ifdef USE_SDL_NET
+00039 #include "SDL_net.h"
+00040 #endif
+00041 #ifdef USE_PHYSFS
+00042 #include "physfs.h"
+00043 #include "external/physfsrwops.h"
 00044 #endif
-00045 #ifdef USE_PHYSFS
-00046 #include "physfs.h"
-00047 #include "external/physfsrwops.h"
-00048 #endif
-00049 #include "external/mt19937ar.h"
-00050 
-00051 #include <string>
-00052 #include <vector>
-00053 #include <queue>
-00054 #include <list>
-00055 #include <fstream>
-00056 #include <cstdio>
-00057 #include <cstdlib>
-00058 #include <cstdarg>
-00059 #include <cctype>
-00060 #include <ctime>
-00061 using namespace std;
-00062 
-00063 #endif //__ze_includes_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00045 +00046 #include <string> //used frequently +00047 #include <queue> //used by ZEngine for ZErrors +00048 #include <list> //used by ZConfigFile +00049 #include <fstream> //used by ZConfigFile +00050 #include <cctype> //used in parsing +00051 +00052 #endif //__ze_includes_h__ +
Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Includes_8h.html b/doc/html/ZE__Includes_8h.html index 965ac19..3332f86 100644 --- a/doc/html/ZE__Includes_8h.html +++ b/doc/html/ZE__Includes_8h.html @@ -3,19 +3,13 @@ ZE_Includes.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Includes.h File Reference


Detailed Description

-
File Header:
File: ZE_Includes.h
- Description: Header file for ZEngine universal includes.
- Author(s): James Turk
-
Id
ZE_Includes.h,v 1.8 2003/04/27 22:05:25 cozman Exp
-
-
+ZE_*.h files should only include this file and any other ZE_*.h files that they need, External Library or C/C++ Standard Library files should be included from within this file. $ id: ZE_Includes.h,v 1.8 2003/04/27 22:05:25 cozman Exp $
+
Author:
James Turk
-

-ZE_*.h files should only include this file and any other ZE_*.h files that they need, External Library or C/C++ Standard Library files should be included from within this file.

#include "ZE_Defines.h"
#include "SDL.h"
@@ -24,30 +18,19 @@ ZE_*.h files should only include this file and any other ZE_*.h files that they #include "SDL_image.h"
#include "SDL_ttf.h"
#include "SDL_mixer.h"
-#include "SDL_net.h"
-#include "physfs.h"
-#include "external/physfsrwops.h"
-#include "external/mt19937ar.h"
#include <string>
-#include <vector>
#include <queue>
#include <list>
#include <fstream>
-#include <cstdio>
-#include <cstdlib>
-#include <cstdarg>
#include <cctype>
-#include <ctime>

Go to the source code of this file. - -

Namespaces

namespace  std
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Utility_8cpp.html b/doc/html/ZE__Utility_8cpp.html index 62d6984..37cb3dd 100755 --- a/doc/html/ZE__Utility_8cpp.html +++ b/doc/html/ZE__Utility_8cpp.html @@ -3,19 +3,15 @@ ZE_Utility.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_Utility.cpp File Reference


Detailed Description

-
File Header:
File: ZE_Utility.cpp
- Description: Implementation source file for ZEngine Utilities.
- Author(s): James Turk
-
Id
ZE_Utility.cpp,v 1.5 2003/04/28 02:01:20 cozman Exp
+Source file containing open utilities for use inside and alongside ZEngine.
+
Id
ZE_Utility.cpp,v 1.9 2003/06/11 05:51:15 cozman Exp

-
+
Author:
James Turk
-

-Source file containing open utilities for use inside and alongside ZEngine.

#include "ZE_Utility.h"
@@ -23,9 +19,9 @@ Source file containing open utilities for use inside and alongside ZEngine.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Utility_8h-source.html b/doc/html/ZE__Utility_8h-source.html index 5900f1f..82bba28 100755 --- a/doc/html/ZE__Utility_8h-source.html +++ b/doc/html/ZE__Utility_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_Utility.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Utility.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,41 +16,40 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00025 #ifndef __ze_utility_h__
-00026 #define __ze_utility_h__
-00027 
-00028 #include "ZE_Includes.h"
+00022 #ifndef __ze_utility_h__
+00023 #define __ze_utility_h__
+00024 
+00025 #include "ZE_Includes.h"
+00026 
+00027 namespace ZE
+00028 {
 00029 
-00030 namespace ZE
-00031 {
-00032 
-00042 string FormatStr(const char *fmtstr, ...);
-00043 
-00045 //Memory//
-00047 
-00054 void FreeImage(SDL_Surface *&image);
-00055 
-00056 #ifdef USE_SDL_MIXER
-00057 
-00064 void FreeSound(Mix_Chunk *&chunk);
-00065 
-00072 void FreeMusic(Mix_Music *&music);
-00073 
-00074 #endif
-00075 
-00076 #ifdef USE_SDL_TTF
-00077 
-00083 void FreeFont(TTF_Font *&font);
-00084 #endif
-00085 
-00086 
-00087 }
-00088 
-00089 #endif //__ze_utility_h__
-00090 
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00039 std::string FormatStr(const char *fmtstr, ...); +00040 +00042 //Memory// +00044 +00051 void FreeImage(SDL_Surface *&image); +00052 +00053 #ifdef USE_SDL_MIXER +00054 +00061 void FreeSound(Mix_Chunk *&chunk); +00062 +00069 void FreeMusic(Mix_Music *&music); +00070 +00071 #endif +00072 +00073 #ifdef USE_SDL_TTF +00074 +00080 void FreeFont(TTF_Font *&font); +00081 #endif +00082 +00083 } +00084 +00085 #endif //__ze_utility_h__ +00086 +
Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__Utility_8h.html b/doc/html/ZE__Utility_8h.html index a4b404b..35ffdec 100755 --- a/doc/html/ZE__Utility_8h.html +++ b/doc/html/ZE__Utility_8h.html @@ -3,19 +3,15 @@ ZE_Utility.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Utility.h File Reference


Detailed Description

-
File Header:
File: ZE_Utility.h
- Description: Header file for ZEngine Utilities.
- Author(s): James Turk
-
Id
ZE_Utility.h,v 1.2 2003/04/28 02:01:20 cozman Exp
+Definition file for ZEngine Utilities which are used throughout the engine and can be used in conjunction with ZEngine.
+
Id
ZE_Utility.h,v 1.5 2003/06/11 00:15:25 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZEngine Utilities which are used throughout the engine and can be used in conjunction with ZEngine.

#include "ZE_Includes.h"
@@ -25,9 +21,9 @@ Definition file for ZEngine Utilities which are used throughout the engine and c

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZClient_8cpp.html b/doc/html/ZE__ZClient_8cpp.html index 99cec4b..5640ede 100755 --- a/doc/html/ZE__ZClient_8cpp.html +++ b/doc/html/ZE__ZClient_8cpp.html @@ -3,27 +3,23 @@ ZE_ZClient.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZClient.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZClient.cpp
- Description: Implementation source file for core ZEngine TCP Client Object.
- Author(s): James Turk
-
Id
ZE_ZClient.cpp,v 1.5 2003/04/27 19:12:48 cozman Exp
+Implementation file for ZClient, the TCP Client class for ZEngine.
+
Id
ZE_ZClient.cpp,v 1.11 2003/06/16 21:17:22 cozman Exp

-
+
Author:
James Turk
-

-Implementation file for ZClient, the TCP Client class for ZEngine.

#include "ZE_ZClient.h"
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZClient_8h-source.html b/doc/html/ZE__ZClient_8h-source.html index 3439a66..7bf42ee 100755 --- a/doc/html/ZE__ZClient_8h-source.html +++ b/doc/html/ZE__ZClient_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZClient.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZClient.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,53 +16,53 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zclient_h__
-00025 #define __ze_zclient_h__
+00020 #ifndef __ze_zclient_h__
+00021 #define __ze_zclient_h__
+00022 
+00023 #include "ZE_ZEngine.h"
+00024 
+00025 #ifdef USE_SDL_NET
 00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 #ifdef USE_SDL_NET
-00030 
-00031 namespace ZE
-00032 {
-00033 
-00040 class ZClient
-00041 {
-00042     protected:
-00044         ZEngine *rEngine;
-00046         TCPsocket rSocket;
-00048         SDLNet_SocketSet rSocketSet;
-00050         bool rVerbose;
-00052         int rWaitTime;
-00053 
-00054     public:
-00061         ZClient(bool verbose=false);
-00062 
-00068         virtual ~ZClient();
-00069 
-00078         bool Connect(char *server, Uint16 port);
-00079 
-00085         void Disconnect();
-00086 
-00094         void SetWaitTime(int wait);
-00095 
-00104         bool Send(ZByte *data, int size);
-00105 
-00113         int Receive(ZByte *data);
-00114 
-00121         bool Connected();
-00122 
-00129         int WaitTime();
-00130 };
-00131 
-00132 } //namespace ZE
-00133 
-00134 #endif //USE_SDL_NET
-00135 
-00136 #endif //__ze_zclient_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00027 namespace ZE +00028 { +00029 +00036 class ZClient +00037 { +00038 protected: +00040 ZEngine *rEngine; +00042 TCPsocket rSocket; +00044 SDLNet_SocketSet rSocketSet; +00046 bool rVerbose; +00048 int rWaitTime; +00049 +00050 public: +00057 ZClient(bool verbose=false); +00058 +00064 virtual ~ZClient(); +00065 +00074 bool Connect(char *server, Uint16 port); +00075 +00081 void Disconnect(); +00082 +00090 void SetWaitTime(int wait); +00091 +00100 bool Send(ZByte *data, int size); +00101 +00109 int Receive(ZByte *data); +00110 +00117 bool Connected(); +00118 +00125 int WaitTime(); +00126 }; +00127 +00128 } //namespace ZE +00129 +00130 #endif //USE_SDL_NET +00131 +00132 #endif //__ze_zclient_h__ +
Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZClient_8h.html b/doc/html/ZE__ZClient_8h.html index d9acde4..764afb9 100755 --- a/doc/html/ZE__ZClient_8h.html +++ b/doc/html/ZE__ZClient_8h.html @@ -3,31 +3,25 @@ ZE_ZClient.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZClient.h File Reference


Detailed Description

-
File Header:
File: ZE_ZClient.h
- Description: Header file for core ZEngine TCP Client Object.
- Author(s): James Turk
-
Id
ZE_ZClient.h,v 1.4 2003/04/27 22:05:25 cozman Exp
+Definition file for ZClient, the TCP Client class for ZEngine.
+
Id
ZE_ZClient.h,v 1.6 2003/05/13 01:30:51 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZClient, the TCP Client class for ZEngine.

#include "ZE_ZEngine.h"

Go to the source code of this file. - -

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZConfigFile_8cpp.html b/doc/html/ZE__ZConfigFile_8cpp.html index 85c2b3c..44759d8 100644 --- a/doc/html/ZE__ZConfigFile_8cpp.html +++ b/doc/html/ZE__ZConfigFile_8cpp.html @@ -3,19 +3,15 @@ ZE_ZConfigFile.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZConfigFile.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZConfigFile.cpp
- Description: Implementation source file for ZConfigFile, the ZEngine INI-Style Config File.
- Author(s): James Turk
-
Id
ZE_ZConfigFile.cpp,v 1.7 2003/04/08 03:30:50 cozman Exp
+Implementation of ZConfigFile, the ZEngine INI-Style Config File.
+
Id
ZE_ZConfigFile.cpp,v 1.13 2003/06/16 07:45:03 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZConfigFile, the ZEngine INI-Style Config File.

#include "ZE_ZConfigFile.h"
@@ -23,9 +19,9 @@ Implementation of ZConfigFile, the ZEngine INI-Style Config File.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZConfigFile_8h-source.html b/doc/html/ZE__ZConfigFile_8h-source.html index ac541a0..9d690ef 100644 --- a/doc/html/ZE__ZConfigFile_8h-source.html +++ b/doc/html/ZE__ZConfigFile_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZConfigFile.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZConfigFile.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,85 +16,85 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00025 #ifndef __ze_zconfigfile_h__
-00026 #define __ze_zconfigfile_h__
-00027 
-00028 #include "ZE_ZEngine.h"
-00029 
-00030 namespace ZE
-00031 {
-00032 
-00038 class ZConfigFile
-00039 {
-00040     private:
-00041 
-00042         //Private Types//
-00043 
-00050         class ZCF_Variable
-00051         {
-00052             public:
-00054                 string var;
-00056                 string val;
-00057         };
-00058 
-00064         class ZCF_Section
-00065         {
-00066             public:
-00068                 string section;
-00070                 list<ZCF_Variable> varList;
-00071         };
-00072 
-00073     protected:
-00075         list<ZCF_Section> rFileLayout;
-00077         string rFilename;
-00078 
-00086         string CleanString(string str)  const;
-00087         
-00095         bool Exists(string sec) const;
-00096 
-00105         bool Exists(string sec, string var) const;
-00106 
-00115         void SetVariable(string sec, string var, string val);
-00116 
-00126         string GetVariable(string sec, string var, string defVal) const;
-00127 
-00128     public:
-00129 
-00135         ZConfigFile();
-00136 
-00143         ZConfigFile(string filename);
-00144 
-00150         virtual ~ZConfigFile();
-00151 
-00158         void Process(string filename);
-00159 
-00170         float GetFloat(string section, string var, float defVal) const;
-00171 
-00181         int GetInt(string section, string var, int defVal) const;
-00182 
-00193         bool GetBool(string section, string var, bool defVal) const;
-00194 
-00204         string GetString(string section, string var, string defVal) const;
-00205 
-00216         void SetFloat(string section, string var, float val);
-00217 
-00227         void SetInt(string section, string var, int val);
-00228 
-00238         void SetBool(string section, string var, bool val);
-00239 
-00249         void SetString(string section, string var, string val);
-00250         
-00256         void Flush();
-00257 
-00263         void Close();
-00264 };
-00265 
-00266 }
-00267 
-00268 #endif //__ze_zconfigfile_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00021 #ifndef __ze_zconfigfile_h__ +00022 #define __ze_zconfigfile_h__ +00023 +00024 #include "ZE_ZEngine.h" +00025 +00026 namespace ZE +00027 { +00028 +00034 class ZConfigFile +00035 { +00036 private: +00037 +00038 //Private Types// +00039 +00046 class ZCF_Variable +00047 { +00048 public: +00050 std::string var; +00052 std::string val; +00053 }; +00054 +00060 class ZCF_Section +00061 { +00062 public: +00064 std::string section; +00066 std::list<ZCF_Variable> varList; +00067 }; +00068 +00069 protected: +00071 std::list<ZCF_Section> rFileLayout; +00073 std::string rFilename; +00074 +00082 std::string CleanString(std::string str) const; +00083 +00091 bool Exists(std::string sec) const; +00092 +00101 bool Exists(std::string sec, std::string var) const; +00102 +00111 void SetVariable(std::string sec, std::string var, std::string val); +00112 +00122 std::string GetVariable(std::string sec, std::string var, std::string defVal) const; +00123 +00124 public: +00125 +00131 ZConfigFile(); +00132 +00139 ZConfigFile(std::string filename); +00140 +00146 virtual ~ZConfigFile(); +00147 +00154 void Process(std::string filename); +00155 +00166 float GetFloat(std::string section, std::string var, float defVal) const; +00167 +00177 int GetInt(std::string section, std::string var, int defVal) const; +00178 +00189 bool GetBool(std::string section, std::string var, bool defVal) const; +00190 +00200 std::string GetString(std::string section, std::string var, std::string defVal) const; +00201 +00212 void SetFloat(std::string section, std::string var, float val); +00213 +00223 void SetInt(std::string section, std::string var, int val); +00224 +00234 void SetBool(std::string section, std::string var, bool val); +00235 +00245 void SetString(std::string section, std::string var, std::string val); +00246 +00252 void Flush(); +00253 +00259 void Close(); +00260 }; +00261 +00262 } +00263 +00264 #endif //__ze_zconfigfile_h__ +
Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZConfigFile_8h.html b/doc/html/ZE__ZConfigFile_8h.html index a172435..6bea7fd 100644 --- a/doc/html/ZE__ZConfigFile_8h.html +++ b/doc/html/ZE__ZConfigFile_8h.html @@ -3,19 +3,13 @@ ZE_ZConfigFile.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZConfigFile.h File Reference


Detailed Description

-
File Header:
File: Types/ZE_ZConfigFile.h
- Description: Header file for ZEngine INI-Style Config Files.
- Author(s): James Turk
-
Id
ZE_ZConfigFile.h,v 1.9 2003/02/10 04:40:16 cozman Exp
-
-
+Definition file for ZConfigFile, an INI-style config file format.
+ $ id: ZE_ZConfigFile.h,v 1.9 2003/02/10 04:40:16 cozman Exp $
Author:
James Turk
-

-Definition file for ZConfigFile, an INI-style Config format.

#include "ZE_ZEngine.h"
@@ -25,9 +19,9 @@ Definition file for ZConfigFile, an INI-style Config format.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZEngine_8cpp.html b/doc/html/ZE__ZEngine_8cpp.html index ff9e1a0..b7aa0b7 100644 --- a/doc/html/ZE__ZEngine_8cpp.html +++ b/doc/html/ZE__ZEngine_8cpp.html @@ -3,19 +3,15 @@ ZE_ZEngine.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZEngine.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZEngine.cpp
- Description: Implementation source file for ZEngine library main singleton class.
- Author(s): James Turk
-
Id
ZE_ZEngine.cpp,v 1.38 2003/04/28 00:23:06 cozman Exp
+Actual implementation of ZEngine singleton class, the core of ZEngine.
+
Id
ZE_ZEngine.cpp,v 1.47 2003/06/16 07:45:03 cozman Exp

-
+
Author:
James Turk
-

-Actual implementation of ZEngine singleton class, the core of ZEngine.

#include "ZE_ZEngine.h"
@@ -23,9 +19,9 @@ Actual implementation of ZEngine singleton class, the core of ZEngine.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZEngine_8h-source.html b/doc/html/ZE__ZEngine_8h-source.html index 056d274..b404dd2 100644 --- a/doc/html/ZE__ZEngine_8h-source.html +++ b/doc/html/ZE__ZEngine_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZEngine.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZEngine.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,223 +16,235 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zengine_h__
-00025 #define __ze_zengine_h__
-00026 
-00027 #include "ZE_Defines.h"
-00028 #include "ZE_Utility.h"
-00029 #include "ZE_Includes.h"
-00030 #include "ZE_ZError.h"
+00020 //revision on this is so high.. can this be lowered?
+00021 
+00022 #ifndef __ze_zengine_h__
+00023 #define __ze_zengine_h__
+00024 
+00025 #include "ZE_Defines.h"
+00026 #include "ZE_Utility.h"
+00027 #include "ZE_Includes.h"
+00028 #include "ZE_ZError.h"
+00029 #include "ZE_ZRandGen.h"
+00030 #include "VersionInfo.h"
 00031 
 00037 namespace ZE
 00038 {
 00039 
 00046 class ZEngine
 00047 {
-00048 
-00049     private:
-00051         static ZEngine *sInstance;
-00053         int mWidth;
-00055         int mHeight;
-00057         int mBPP;
-00059         bool mFullscreen;
-00061         bool mInitialized;
-00063         SDL_Surface *mScreen;
-00065         bool mPaused;
-00067         bool mUnpauseOnActive;
-00069         Uint8 mDesiredFramerate;
-00071         Uint32 mNextUpdate;
-00073         Uint32 mLastPause;
-00075         Uint32 mPausedTime;
-00077         Uint32 mLastTime;
-00079         double mSecPerFrame;
-00081         bool mNeedReload;
-00083         bool mActive;
-00085         bool mQuit;
-00087         Uint8 *mKeyIsPressed;
-00089         bool mKeyPress[SDLK_LAST];
-00091         int mMouseX;
-00093         int mMouseY;
-00095         Uint8 mMouseB;
-00097         queue<ZError> mErrorQueue;
-00099         ZError mCurError;
-00101         bool mLogAllErrors;
-00103         FILE *mErrlog;
-00104 
-00105 #ifdef USE_SDL_MIXER 
-00106 
-00107         int mRate;
-00109         bool mStereo;
-00110 #endif 
-00111 
-00113     //Singleton + Memory Management//
-00115 
-00116     private:
-00122         ZEngine();
-00123 
-00124     public:
-00125 
-00132         static ZEngine* GetInstance();
-00133 
-00139         static void ReleaseInstance();
+00048     public:
+00050         static VersionInfo Version;
+00051 
+00052     private:        
+00054         static ZEngine *sInstance;
+00056         int mWidth;
+00058         int mHeight;
+00060         int mBPP;
+00062         bool mFullscreen;
+00064         bool mInitialized;
+00066         SDL_Surface *mScreen;
+00068         bool mPaused;
+00070         bool mUnpauseOnActive;
+00072         Uint8 mDesiredFramerate;
+00074         Uint32 mNextUpdate;
+00076         Uint32 mLastPause;
+00078         Uint32 mPausedTime;
+00080         Uint32 mLastTime;
+00082         double mSecPerFrame;
+00084         bool mNeedReload;
+00086         bool mActive;
+00088         bool mQuit;
+00090         Uint8 *mKeyIsPressed;
+00092         bool mKeyPress[SDLK_LAST];
+00094         int mMouseX;
+00096         int mMouseY;
+00098         Uint8 mMouseB;
+00100         std::queue<ZError> mErrorQueue;
+00102         ZError mCurError;
+00104         bool mLogAllErrors;
+00106         std::FILE *mErrlog;
+00108         SDL_EventFilter mEventFilter;
+00110         ZRandGen mRandGen;
+00111 
+00112 #ifdef USE_SDL_MIXER 
+00113 
+00114         int mRate;
+00116         bool mStereo;
+00117 #endif 
+00118 
+00120     //Singleton + Memory Management//
+00122 
+00123     private:
+00129         ZEngine();
+00130 
+00131     public:
+00132 
+00139         static ZEngine* GetInstance();
 00140 
-00147         static string GetVersion();
-00148 
-00150     //Initialization//
-00152 
-00163         void SetupDisplay(int width, int height, int bpp, bool fullscreen);
-00164 
-00165 #ifdef USE_SDL_MIXER
-00166 
-00174         void SetupSound(int rate, bool stereo);
-00175 #endif 
-00176 
-00188         bool CreateDisplay(string title, string icon="");
-00189 
-00195         void CloseDisplay();
-00196 
-00204         void ToggleFullscreen();
-00205 
-00213         bool Initialized();
-00214 
-00216     //Screen Access//
-00218 
-00225         SDL_Surface *Display();
-00226 
-00233         void Update();
-00234 
-00244         void Clear(float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=1.0f);
-00245 
-00247     //OpenGL Specific Functions//
-00249 
-00256         void SetGL2D();
-00257 
-00259     //Timer and Framerate Independent Movement//
-00261 
-00268         void Delay(Uint32 milliseconds);
-00269 
-00276         Uint32 GetTime();
-00277 
-00283         void PauseTimer();
-00284 
-00290         void UnpauseTimer();
-00291 
-00298         double GetFrameTime();
-00299 
-00307         double GetFramerate();
-00308 
-00318         void SetDesiredFramerate(Uint8 rate);
-00319 
-00327         Uint8 GetDesiredFramerate();
-00328 
-00335         bool IsPaused();
-00336 
-00338     //Event and Input Handling//
-00340 
-00347         bool IsActive();
-00348 
-00355         void RequestQuit();
-00356 
-00364         bool QuitRequested();
-00365 
-00370         void SetReloadNeed(bool state);
-00371 
-00379         bool ImagesNeedReload();
-00380         
-00389         void SetKeyRepeatRate(int rate);
-00390 
-00398         bool KeyIsPressed(SDLKey key);
-00399 
-00407         bool KeyPress(SDLKey key);
-00408 
-00414         void HideCursor();
-00415 
-00421         void ShowCursor();
-00422 
-00429         int MouseX();
-00430 
-00437         int MouseY();
-00438 
-00445         bool LButtonPressed();
-00446 
-00453         bool RButtonPressed();
-00454 
-00462         bool MouseInRect(SDL_Rect *rect);
-00463 
-00469         void CheckEvents();
-00470 
-00481         void SetEventFilter(SDL_EventFilter filter);
-00482 
-00483 #ifdef USE_PHYSFS
-00484 
-00485     //Physfs Utilities//
-00487 
-00493         void InitPhysFS(string argv);
-00494 
-00501         void AddPhysFSDir(string dir);
-00502 
-00503 #endif    //USE_PHYSFS
-00504 
-00506     //Error Logging//
-00508     private:
-00516         void LogError(ZError error);
-00517 
-00518     public:
-00529         void SetErrorLog(bool logAll, string logFile="");
-00530 
-00541         void ReportError(ZErrorCode code, string desc="", string file="", unsigned int line=0);
-00542 
-00550         ZErrorCode GetLastError();
-00551 
-00559         void WriteLog(string str);
-00560 
-00567         void FlushErrors();
-00568 
-00570     //Random Number Generation//
-00572 
-00580         void SeedRandom(unsigned long seed);
-00581 
-00590         unsigned long RandLong(unsigned long max);
-00591 
-00601         long RandLong(long min, long max);
-00602 
-00610         double RandDouble();
-00611 
-00621         double RandDouble(double min, double max);
-00622 
-00624     //Data Loading + Unloading//
-00626 
-00633         SDL_Surface* LoadImage(string filename);
-00634 
-00635 #ifdef USE_SDL_MIXER
-00636 
-00643         Mix_Chunk* LoadSound(string filename);
-00644 
-00652         Mix_Music* LoadMusic(string filename);
-00653 #endif
-00654 
-00655 #ifdef USE_SDL_TTF
-00656 
-00664         TTF_Font* LoadFont(string filename, int size);
-00665 #endif 
-00666 
-00668     //Accessors//
-00670 
-00677         int Width();
-00678 
-00685         int Height();
-00686 
-00693         int BPP();
-00694 
-00701         bool IsFullscreen();
-00702 };
-00703 
-00704 }
-00705 
-00706 #endif //__ze_zengine_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00146 static void ReleaseInstance(); +00147 +00149 //Initialization// +00151 +00162 void SetupDisplay(int width, int height, int bpp, bool fullscreen); +00163 +00164 #ifdef USE_SDL_MIXER +00165 +00173 void SetupSound(int rate, bool stereo); +00174 #endif +00175 +00187 bool CreateDisplay(std::string title, std::string icon=""); +00188 +00194 void CloseDisplay(); +00195 +00203 void ToggleFullscreen(); +00204 +00212 bool Initialized(); +00213 +00215 //Screen Access// +00217 +00224 SDL_Surface *Display(); +00225 +00232 void Update(); +00233 +00243 void Clear(float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=1.0f); +00244 +00246 //OpenGL Specific Functions// +00248 +00255 void SetGL2D(); +00256 +00258 //Timer and Framerate Independent Movement// +00260 +00267 void Delay(Uint32 milliseconds); +00268 +00275 Uint32 GetTime(); +00276 +00282 void PauseTimer(); +00283 +00289 void UnpauseTimer(); +00290 +00297 double GetFrameTime(); +00298 +00306 double GetFramerate(); +00307 +00317 void SetDesiredFramerate(Uint8 rate); +00318 +00326 Uint8 GetDesiredFramerate(); +00327 +00334 bool IsPaused(); +00335 +00337 //Event and Input Handling// +00339 +00346 bool IsActive(); +00347 +00354 void RequestQuit(); +00355 +00363 bool QuitRequested(); +00364 +00369 void SetReloadNeed(bool state); +00370 +00378 bool ImagesNeedReload(); +00379 +00388 void SetKeyRepeatRate(int rate); +00389 +00397 bool KeyIsPressed(SDLKey key); +00398 +00406 bool KeyPress(SDLKey key); +00407 +00413 void HideCursor(); +00414 +00420 void ShowCursor(); +00421 +00428 int MouseX(); +00429 +00436 int MouseY(); +00437 +00444 bool LButtonPressed(); +00445 +00452 bool RButtonPressed(); +00453 +00461 bool MouseInRect(SDL_Rect *rect); +00462 +00468 void CheckEvents(); +00469 +00482 void SetEventFilter(SDL_EventFilter filter); +00483 +00484 #ifdef USE_PHYSFS +00485 +00486 //Physfs Utilities// +00488 +00494 void InitPhysFS(std::string argv); +00495 +00502 void AddPhysFSDir(std::string dir); +00503 +00504 #endif //USE_PHYSFS +00505 +00507 //Error Logging// +00509 private: +00517 void LogError(ZError error); +00518 +00519 public: +00530 void SetErrorLog(bool logAll, std::string logFile=""); +00531 +00542 void ReportError(ZErrorCode code, std::string desc="", std::string file="", unsigned int line=0); +00543 +00551 ZErrorCode GetLastError(); +00552 +00560 void WriteLog(std::string str); +00561 +00568 void FlushErrors(); +00569 +00571 //Random Number Generation// +00573 +00579 void SeedRandGen(unsigned long seed); +00580 +00588 unsigned int Rand(unsigned int max); +00589 +00597 unsigned long Rand(unsigned long max); +00598 +00607 int Rand(int min, int max); +00608 +00617 long Rand(long min, long max); +00618 +00627 float Rand(float min, float max); +00628 +00637 double Rand(double min, double max); +00638 +00645 double RandDouble(); +00646 +00648 //Data Loading + Unloading// +00650 +00657 SDL_Surface* LoadImage(std::string filename); +00658 +00659 #ifdef USE_SDL_MIXER +00660 +00667 Mix_Chunk* LoadSound(std::string filename); +00668 +00676 Mix_Music* LoadMusic(std::string filename); +00677 #endif +00678 +00679 #ifdef USE_SDL_TTF +00680 +00688 TTF_Font* LoadFont(std::string filename, int size); +00689 #endif +00690 +00692 //Accessors// +00694 +00701 int Width(); +00702 +00709 int Height(); +00710 +00717 int BPP(); +00718 +00725 bool IsFullscreen(); +00726 }; +00727 +00728 } +00729 +00730 #endif //__ze_zengine_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZEngine_8h.html b/doc/html/ZE__ZEngine_8h.html index c12eada..24ee7bc 100644 --- a/doc/html/ZE__ZEngine_8h.html +++ b/doc/html/ZE__ZEngine_8h.html @@ -3,24 +3,22 @@ ZE_ZEngine.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZEngine.h File Reference


Detailed Description

-
File Header:
File: ZE_ZEngine.h
- Description: Header file for ZEngine class, the core of the ZEngine.
- Author(s): James Turk
-
Id
ZE_ZEngine.h,v 1.24 2003/04/28 00:23:06 cozman Exp
+ZEngine Game Engine core Engine definition.
+
Id
ZE_ZEngine.h,v 1.41 2003/06/11 05:51:32 cozman Exp

-
+
Author:
James Turk
-

-ZEngine Game Engine core Engine definition.

#include "ZE_Defines.h"
#include "ZE_Utility.h"
#include "ZE_Includes.h"
#include "ZE_ZError.h"
+#include "ZE_ZRandGen.h"
+#include "VersionInfo.h"

Go to the source code of this file. @@ -28,9 +26,9 @@ ZEngine Game Engine core Engine definition.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZError_8cpp.html b/doc/html/ZE__ZError_8cpp.html index 55a9216..1937ca9 100755 --- a/doc/html/ZE__ZError_8cpp.html +++ b/doc/html/ZE__ZError_8cpp.html @@ -3,19 +3,15 @@ ZE_ZError.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZError.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZError.cpp
- Description: Implementation source file for core ZEngine Error Object.
- Author(s): James Turk
-
Id
ZE_ZError.cpp,v 1.5 2003/03/01 20:43:41 cozman Exp
+Implementation of ZError, the ZEngine internal error information storage class.
+
Id
ZE_ZError.cpp,v 1.10 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZError, the ZEngine internal error information storage class.

#include "ZE_ZError.h"
@@ -23,9 +19,9 @@ Implementation of ZError, the ZEngine internal error information storage class.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZError_8h-source.html b/doc/html/ZE__ZError_8h-source.html index 96cca9a..ee3bd5a 100755 --- a/doc/html/ZE__ZError_8h-source.html +++ b/doc/html/ZE__ZError_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZError.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZError.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,73 +16,67 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00025 #ifndef __ze_zerror_h__
-00026 #define __ze_zerror_h__
-00027 
-00028 #include "ZE_Utility.h"
-00029 #include <string>
-00030 using namespace std;
-00031 
-00032 namespace ZE
-00033 {
-00034 
-00036 
-00040 enum ZErrorCode 
-00041 {
-00042     ZERR_NONE,          
-00043     ZERR_SDL_INTERNAL,  
-00044     ZERR_SDL_INIT,      
-00045     ZERR_MIX_INIT,      
-00046     ZERR_TTF_INIT,      
-00047     ZERR_NET_INIT,      
-00048     ZERR_VIDMODE,       
-00049     ZERR_LOAD_IMAGE,    
-00050     ZERR_LOAD_SOUND,    
-00051     ZERR_LOAD_MUSIC,    
-00052     ZERR_LOAD_FONT,     
-00053     ZERR_NOIMAGE,       
-00054     ZERR_NOSOUND,       
-00055     ZERR_NOMUSIC,       
-00056     ZERR_NOFONT,        
-00057     ZERR_NOSOCKET,      
-00058     ZERR_NET_CLIENT,    
-00059     ZERR_NET_SERVER,    
-00060     ZERR_LAST           
-00061 };
-00062 
-00069 class ZError
-00070 {
-00071     protected:
-00073         static string *sErrorDesc;
-00075         ZErrorCode rCode;
-00077         string rDescription;
-00079         string rFilename;
-00081         unsigned int rLine;
-00082 
-00083     public:
-00089         static void CreateStringTable();
-00090 
-00096         static void DestroyStringTable();
+00021 #ifndef __ze_zerror_h__
+00022 #define __ze_zerror_h__
+00023 
+00024 #include "ZE_Utility.h"
+00025 #include <string>
+00026 
+00027 namespace ZE
+00028 {
+00029 
+00036 enum ZErrorCode 
+00037 {
+00038     ZERR_NONE,          
+00039     ZERR_SDL_INTERNAL,  
+00040     ZERR_SDL_INIT,      
+00041     ZERR_MIX_INIT,      
+00042     ZERR_TTF_INIT,      
+00043     ZERR_NET_INIT,      
+00044     ZERR_VIDMODE,       
+00045     ZERR_LOAD_IMAGE,    
+00046     ZERR_LOAD_SOUND,    
+00047     ZERR_LOAD_MUSIC,    
+00048     ZERR_LOAD_FONT,     
+00049     ZERR_NOIMAGE,       
+00050     ZERR_NOSOUND,       
+00051     ZERR_NOMUSIC,       
+00052     ZERR_NOFONT,        
+00053     ZERR_NOSOCKET,      
+00054     ZERR_NET_CLIENT,    
+00055     ZERR_NET_SERVER,    
+00056     ZERR_LAST           
+00057 };
+00058 
+00065 class ZError
+00066 {
+00067     protected:
+00069         static std::string sErrorDesc[ZERR_LAST];
+00071         ZErrorCode rCode;
+00073         std::string rDescription;
+00075         std::string rFilename;
+00077         unsigned int rLine;
+00078 
+00079     public:
+00085         static void CreateStringTable();
+00086 
+00096         ZError(ZErrorCode code=ZERR_NONE, std::string desc="", std::string file="", int line=0);
 00097 
-00107         ZError(ZErrorCode code=ZERR_NONE, string desc="", string file="", int line=0);
+00107         void Create(ZErrorCode code, std::string desc="", std::string file="", int line=0);
 00108 
-00114         virtual ~ZError();
-00115 
-00125         void Create(ZErrorCode code, string desc="", string file="", int line=0);
-00126 
-00128         //Accessors//
-00130 
-00137         ZErrorCode Code() const;
-00138 
-00144         string LogString() const;
-00145 };
-00146 
-00147 }
-00148 
-00149 #endif //__ze_zerror_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00110 //Accessors// +00112 +00119 ZErrorCode Code() const; +00120 +00126 std::string LogString() const; +00127 }; +00128 +00129 } +00130 +00131 #endif //__ze_zerror_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZError_8h.html b/doc/html/ZE__ZError_8h.html index eddc89b..ee45934 100755 --- a/doc/html/ZE__ZError_8h.html +++ b/doc/html/ZE__ZError_8h.html @@ -3,19 +3,15 @@ ZE_ZError.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZError.h File Reference


Detailed Description

-
File Header:
File: ZE_ZError.h
- Description: Header file for ZEngine Error Object.
- Author(s): James Turk
-
Id
ZE_ZError.h,v 1.7 2003/03/01 20:42:52 cozman Exp
+Definition file for ZError, the Error logging class for ZEngine. This class should never be used by the average user, it is used by ZEngine to store information on an error.
+
Id
ZE_ZError.h,v 1.12 2003/06/11 05:51:32 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZError, the Error logging class for ZEngine. This class should never be used by the average user, it is used by ZEngine to store information on an error.

#include "ZE_Utility.h"
#include <string>
@@ -26,9 +22,9 @@ Definition file for ZError, the Error logging class for ZEngine. This class shou

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZFont_8cpp.html b/doc/html/ZE__ZFont_8cpp.html index f2b84ec..c4ae87f 100644 --- a/doc/html/ZE__ZFont_8cpp.html +++ b/doc/html/ZE__ZFont_8cpp.html @@ -3,27 +3,23 @@ ZE_ZFont.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZFont.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZFont.cpp
- Description: Implementation source file for core ZEngine Font Object.
- Author(s): James Turk
-
Id
ZE_ZFont.cpp,v 1.8 2003/04/08 03:34:25 cozman Exp
+Implementation of ZFont, the basic Font class for ZEngine.
+
Id
ZE_ZFont.cpp,v 1.12 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZFont, the basic Font class for ZEngine.

#include "ZE_ZFont.h"
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZFont_8h-source.html b/doc/html/ZE__ZFont_8h-source.html index b9c4a4a..2e99498 100644 --- a/doc/html/ZE__ZFont_8h-source.html +++ b/doc/html/ZE__ZFont_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZFont.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZFont.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,81 +16,81 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zfont_h__
-00025 #define __ze_zfont_h__
-00026 
-00027 #include "ZE_ZEngine.h"
-00028 #include "ZE_ZImage.h"
-00029 
-00030 #ifdef USE_SDL_TTF
-00031 
-00032 namespace ZE
-00033 {
-00034 
-00040 class ZFont
-00041 {
-00042     protected:
-00044         ZEngine* rEngine;
-00046         TTF_Font *rFont;
-00048         string rFilename;
-00050         SDL_Color rColor;
-00052         SDL_Color rBGColor;
-00053 
-00054     public:
-00055 
-00057         //Opening and Closing//
-00059 
-00065         ZFont();
-00066 
-00074         ZFont(string filename, int size);
-00075 
-00081         virtual ~ZFont();
-00082 
-00090         void Open(string filename, int size);
-00091 
-00097         void Release();
-00098 
-00100         //Settings and Drawing//
-00102 
-00110         void DrawText(string text, ZImage &image) const;
-00111 
-00119         void DrawShadedText(string text, ZImage &image) const;
-00120 
-00129         void SetColor(Uint8 r, Uint8 g, Uint8 b);
-00130 
-00139         void SetBGColor(Uint8 r, Uint8 g, Uint8 b);
-00140 
-00149         void SetStyle(bool bold, bool italic, bool underline);
-00150 
-00157         void Resize(int size);
-00158 
-00160         //Accessors//
-00162 
-00169         bool IsLoaded() const;
-00170 
-00177         bool IsBold() const;
-00178 
-00185         bool IsItalic() const;
-00186 
-00193         bool IsUnderlined() const;
-00194 
-00201         int Height() const;
-00202 
-00209         int LineSkip() const;
-00210 
-00218         int StringWidth(string text) const;
-00219 
-00227         int StringHeight(string text) const;
-00228 };
-00229 
-00230 }
-00231 
-00232 #endif //USE_SDL_TTF
-00233 
-00234 #endif //__ze_zfont_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00020 #ifndef __ze_zfont_h__ +00021 #define __ze_zfont_h__ +00022 +00023 #include "ZE_ZEngine.h" +00024 #include "ZE_ZImage.h" +00025 +00026 #ifdef USE_SDL_TTF +00027 +00028 namespace ZE +00029 { +00030 +00036 class ZFont +00037 { +00038 protected: +00040 ZEngine* rEngine; +00042 TTF_Font *rFont; +00044 std::string rFilename; +00046 SDL_Color rColor; +00048 SDL_Color rBGColor; +00049 +00050 public: +00051 +00053 //Opening and Closing// +00055 +00061 ZFont(); +00062 +00070 ZFont(std::string filename, int size); +00071 +00077 virtual ~ZFont(); +00078 +00086 void Open(std::string filename, int size); +00087 +00093 void Release(); +00094 +00096 //Settings and Drawing// +00098 +00106 void DrawText(std::string text, ZImage &image) const; +00107 +00115 void DrawShadedText(std::string text, ZImage &image) const; +00116 +00126 void SetColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a=255); +00127 +00136 void SetBGColor(Uint8 r, Uint8 g, Uint8 b); +00137 +00146 void SetStyle(bool bold, bool italic, bool underline); +00147 +00154 void Resize(int size); +00155 +00157 //Accessors// +00159 +00166 bool IsLoaded() const; +00167 +00174 bool IsBold() const; +00175 +00182 bool IsItalic() const; +00183 +00190 bool IsUnderlined() const; +00191 +00198 int Height() const; +00199 +00206 int LineSkip() const; +00207 +00215 int StringWidth(std::string text) const; +00216 +00224 int StringHeight(std::string text) const; +00225 }; +00226 +00227 } +00228 +00229 #endif //USE_SDL_TTF +00230 +00231 #endif //__ze_zfont_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZFont_8h.html b/doc/html/ZE__ZFont_8h.html index 8358ce7..1a64376 100644 --- a/doc/html/ZE__ZFont_8h.html +++ b/doc/html/ZE__ZFont_8h.html @@ -3,19 +3,14 @@ ZE_ZFont.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZFont.h File Reference


Detailed Description

-
File Header:
File: ZE_ZFont.h
- Description: Header file for core ZEngine Font Object.
- Author(s): James Turk
-
Id
ZE_ZFont.h,v 1.6 2003/02/10 04:40:16 cozman Exp
-
-
+Definition file for ZFont, the basic Font class for ZEngine.
+$ Id $
+
Author:
James Turk
-

-Definition file for ZFont, the basic Font class for ZEngine.

#include "ZE_ZEngine.h"
#include "ZE_ZImage.h"
@@ -26,9 +21,9 @@ Definition file for ZFont, the basic Font class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZImage_8cpp.html b/doc/html/ZE__ZImage_8cpp.html index fb86038..8047de3 100644 --- a/doc/html/ZE__ZImage_8cpp.html +++ b/doc/html/ZE__ZImage_8cpp.html @@ -3,19 +3,15 @@ ZE_ZImage.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZImage.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZImage.cpp
- Description: Implementation source file for core ZEngine Image or Texture Object.
- Author(s): James Turk, Gamer Tazar
-
Id
ZE_ZImage.cpp,v 1.30 2003/04/18 21:52:49 cozman Exp
+Implementation of ZImage, the Image class for ZEngine.
+
Id
ZE_ZImage.cpp,v 1.35 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZImage, the Image class for ZEngine.

#include "ZE_ZImage.h"
@@ -23,9 +19,9 @@ Implementation of ZImage, the Image class for ZEngine.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZImage_8h-source.html b/doc/html/ZE__ZImage_8h-source.html index 3fd36e5..7d631fd 100644 --- a/doc/html/ZE__ZImage_8h-source.html +++ b/doc/html/ZE__ZImage_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZImage.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZImage.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,99 +16,99 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zimage_h__
-00025 #define __ze_zimage_h__
-00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 namespace ZE
-00030 {
-00031 
-00037 class ZImage
-00038 {
-00039     protected:
-00041         ZEngine* rEngine;
-00043         GLfloat rTexMinX;
-00045         GLfloat rTexMinY;
-00047         GLfloat rTexMaxX;
-00049         GLfloat rTexMaxY;
-00051         SDL_Surface *rImage;
-00053         unsigned int rTexID;
-00055         unsigned int rWidth;
-00057         unsigned int rHeight;
-00059         Uint8 rAlpha;
-00060     
-00061     public:
-00062 
-00068         ZImage();
-00069 
-00076         ZImage(const ZImage &rhs);
-00077 
-00084         ZImage(string filename);
-00085 
-00092         ZImage(SDL_Surface *surface);
-00093 
-00105         ZImage(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
-00106 
-00118         ZImage(const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
-00119 
-00125         virtual ~ZImage();
-00126 
-00128         //Opening and Closing//
-00130 
-00137         void Open(string filename);
-00138 
-00150         void OpenFromImage(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
-00151 
-00163         void OpenFromImage(const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
-00164 
-00171         void Attach(SDL_Surface *surface);
-00172 
-00178         void Reload();
-00179 
-00185         void Release();
-00186 
-00188         //Graphics//
-00190 
-00198         void SetAlpha(Uint8 alpha);
-00199 
-00208         void SetColorKey(Uint8 red, Uint8 green, Uint8 blue);
-00209 
-00217         void Flip(bool horizontal, bool vertical);
-00218 
-00226         void Stretch(float xFactor, float yFactor);
-00227 
-00235         void Resize(unsigned int width, unsigned int height);
-00236 
-00243         void Bind() const;
-00244 
-00252         void Draw(int x, int y) const;
-00253 
-00262         void Draw(float x, float y) const;
-00263 
-00272         void DrawRotated(int x, int y, float angle) const;
+00020 #ifndef __ze_zimage_h__
+00021 #define __ze_zimage_h__
+00022 
+00023 #include "ZE_ZEngine.h"
+00024 
+00025 namespace ZE
+00026 {
+00027 
+00033 class ZImage
+00034 {
+00035     protected:
+00037         ZEngine* rEngine;
+00039         GLfloat rTexMinX;
+00041         GLfloat rTexMinY;
+00043         GLfloat rTexMaxX;
+00045         GLfloat rTexMaxY;
+00047         SDL_Surface *rImage;
+00049         unsigned int rTexID;
+00051         unsigned int rWidth;
+00053         unsigned int rHeight;
+00055         Uint8 rAlpha;
+00056     
+00057     public:
+00058 
+00064         ZImage();
+00065 
+00072         ZImage(const ZImage &rhs);
+00073 
+00080         ZImage(std::string filename);
+00081 
+00088         ZImage(SDL_Surface *surface);
+00089 
+00101         ZImage(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
+00102 
+00114         ZImage(const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
+00115 
+00121         virtual ~ZImage();
+00122 
+00124         //Opening and Closing//
+00126 
+00133         void Open(std::string filename);
+00134 
+00146         void OpenFromImage(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
+00147 
+00159         void OpenFromImage(const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
+00160 
+00167         void Attach(SDL_Surface *surface);
+00168 
+00174         void Reload();
+00175 
+00181         void Release();
+00182 
+00184         //Graphics//
+00186 
+00194         void SetAlpha(Uint8 alpha);
+00195 
+00204         void SetColorKey(Uint8 red, Uint8 green, Uint8 blue);
+00205 
+00213         void Flip(bool horizontal, bool vertical);
+00214 
+00222         void Stretch(float xFactor, float yFactor);
+00223 
+00231         void Resize(unsigned int width, unsigned int height);
+00232 
+00239         void Bind() const;
+00240 
+00250         void Draw(int x, int y, Uint8 zIndex=0) const;
+00251 
+00261         void Draw(float x, float y, Uint8 zIndex=0) const;
+00262 
+00272         void DrawRotated(int x, int y, float angle, Uint8 zIndex=0) const;
 00273 
-00283         void DrawRotated(float x, float y, float angle) const;
-00284 
-00286         //Accessors//
-00288 
-00295         bool IsLoaded() const;
-00296 
-00302         SDL_Surface *Surface() const;
-00303 
-00310         int Width() const;
-00311 
-00318         int Height() const;
-00319 
-00327         Uint8 Alpha() const;
-00328 };
-00329 
-00330 }
-00331 
-00332 #endif
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00284 void DrawRotated(float x, float y, float angle, Uint8 zIndex=0) const; +00285 +00287 //Accessors// +00289 +00296 bool IsLoaded() const; +00297 +00303 SDL_Surface *Surface() const; +00304 +00311 int Width() const; +00312 +00319 int Height() const; +00320 +00328 Uint8 Alpha() const; +00329 }; +00330 +00331 } +00332 +00333 #endif +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZImage_8h.html b/doc/html/ZE__ZImage_8h.html index 0b13b89..edbe9b2 100644 --- a/doc/html/ZE__ZImage_8h.html +++ b/doc/html/ZE__ZImage_8h.html @@ -3,19 +3,15 @@ ZE_ZImage.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZImage.h File Reference


Detailed Description

-
File Header:
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.16 2003/02/10 05:26:18 cozman Exp
+Definition file for ZImage, the OpenGL version of the ZImage class for ZEngine.
+
Id
ZE_ZImage.h,v 1.19 2003/06/11 00:15:26 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZImage, the OpenGL version of the ZImage class for ZEngine.

#include "ZE_ZEngine.h"
@@ -25,9 +21,9 @@ Definition file for ZImage, the OpenGL version of the ZImage class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZMusic_8cpp.html b/doc/html/ZE__ZMusic_8cpp.html index 3e99e1f..2376a5e 100644 --- a/doc/html/ZE__ZMusic_8cpp.html +++ b/doc/html/ZE__ZMusic_8cpp.html @@ -3,27 +3,23 @@ ZE_ZMusic.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZMusic.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZMusic.cpp
- Description: Implementation source file for core ZEngine Music Object.
- Author(s): James Turk
-
Id
ZE_ZMusic.cpp,v 1.6 2003/02/10 04:02:38 cozman Exp
+Implementation of ZMusic, the basic Music class for ZEngine.
+
Id
ZE_ZMusic.cpp,v 1.10 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZMusic, the basic Music class for ZEngine.

#include "ZE_ZMusic.h"
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZMusic_8h-source.html b/doc/html/ZE__ZMusic_8h-source.html index 26793a3..4fd439b 100644 --- a/doc/html/ZE__ZMusic_8h-source.html +++ b/doc/html/ZE__ZMusic_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZMusic.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZMusic.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,71 +16,71 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zmusic_h__
-00025 #define __ze_zmusic_h__
+00020 #ifndef __ze_zmusic_h__
+00021 #define __ze_zmusic_h__
+00022 
+00023 #include "ZE_ZEngine.h"
+00024 
+00025 #ifdef USE_SDL_MIXER
 00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 #ifdef USE_SDL_MIXER
-00030 
-00031 namespace ZE
-00032 {
-00033 
-00039 class ZMusic
-00040 {
-00041     protected:
-00043         ZEngine* rEngine;
-00045         Mix_Music *rMusic;
+00027 namespace ZE
+00028 {
+00029 
+00035 class ZMusic
+00036 {
+00037     protected:
+00039         ZEngine* rEngine;
+00041         Mix_Music *rMusic;
+00042 
+00043     public:
+00045         static const int LoopInfinite;
 00046 
-00047     public:
-00049         static const int LoopInfinite;
-00050 
-00052         //Opening and Closing//
-00054 
-00060         ZMusic();
-00061 
-00068         ZMusic(string filename);
-00069 
-00075         virtual ~ZMusic();
-00076 
-00083         void Open(string filename);
-00084 
-00090         void Release();
-00091 
-00093         //Play Controls//
-00095 
-00104         void Play(int loopNum=0, int fadeTime=0) const;
-00105 
-00111         void Pause() const;
-00112 
-00118         void Unpause() const;
-00119 
-00125         void Rewind() const;
-00126 
-00133         void Stop(int fadeTime=0) const;
-00134 
-00141         void SetVolume(int volume);
-00142 
-00144         //Accessors//
-00146 
-00153         bool IsLoaded() const;
-00154 
-00161         bool IsPlaying() const;
-00162 
-00169         bool IsPaused() const;
-00170 
-00177         int Volume() const;
-00178 };
-00179 
-00180 
-00181 }
-00182 
-00183 #endif //USE_SDL_MIXER
-00184 
-00185 #endif //__ze_zmusic_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00048 //Opening and Closing// +00050 +00056 ZMusic(); +00057 +00064 ZMusic(std::string filename); +00065 +00071 virtual ~ZMusic(); +00072 +00079 void Open(std::string filename); +00080 +00086 void Release(); +00087 +00089 //Play Controls// +00091 +00100 void Play(int loopNum=0, int fadeTime=0) const; +00101 +00107 void Pause() const; +00108 +00114 void Unpause() const; +00115 +00121 void Rewind() const; +00122 +00129 void Stop(int fadeTime=0) const; +00130 +00137 void SetVolume(int volume); +00138 +00140 //Accessors// +00142 +00149 bool IsLoaded() const; +00150 +00157 bool IsPlaying() const; +00158 +00165 bool IsPaused() const; +00166 +00173 int Volume() const; +00174 }; +00175 +00176 +00177 } +00178 +00179 #endif //USE_SDL_MIXER +00180 +00181 #endif //__ze_zmusic_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZMusic_8h.html b/doc/html/ZE__ZMusic_8h.html index ff7ad8c..dfa6f4a 100644 --- a/doc/html/ZE__ZMusic_8h.html +++ b/doc/html/ZE__ZMusic_8h.html @@ -3,19 +3,15 @@ ZE_ZMusic.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZMusic.h File Reference


Detailed Description

-
File Header:
File: ZE_ZMusic.h
- Description: Header file for core ZEngine Music Wrapper Object.
- Author(s): James Turk
-
Id
ZE_ZMusic.h,v 1.6 2003/02/10 04:40:16 cozman Exp
+Definition file for ZMusic, the Music file wrapper for ZEngine.
+
Id
ZE_ZMusic.h,v 1.9 2003/06/11 00:15:26 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZMusic, the Music file wrapper for ZEngine.

#include "ZE_ZEngine.h"
@@ -25,9 +21,9 @@ Definition file for ZMusic, the Music file wrapper for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZRect_8cpp.html b/doc/html/ZE__ZRect_8cpp.html index 013fdd7..43e0b16 100644 --- a/doc/html/ZE__ZRect_8cpp.html +++ b/doc/html/ZE__ZRect_8cpp.html @@ -3,19 +3,15 @@ ZE_ZRect.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZRect.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZRect.cpp
- Description: Implementation source file for core ZEngine Rectangle Object.
- Author(s): James Turk
-
Id
ZE_ZRect.cpp,v 1.9 2003/02/10 05:40:28 cozman Exp
+Implementation of ZRect, the Rectangle class for ZEngine.
+
Id
ZE_ZRect.cpp,v 1.12 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZRect, the Rectangle class for ZEngine.

#include "ZE_ZRect.h"
@@ -23,9 +19,9 @@ Implementation of ZRect, the Rectangle class for ZEngine.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZRect_8h-source.html b/doc/html/ZE__ZRect_8h-source.html index c773ed7..b7d2637 100644 --- a/doc/html/ZE__ZRect_8h-source.html +++ b/doc/html/ZE__ZRect_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZRect.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZRect.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,81 +16,81 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zrect_h__
-00025 #define __ze_zrect_h__
-00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 namespace ZE
-00030 {
-00031 
-00037 class ZRect
-00038 {
-00039     protected:  
-00041         float rX;
-00043         float rY;
-00045         float rWidth;
-00047         float rHeight;
-00048 
-00049     public:
-00050 
-00056         ZRect();
-00057 
-00067         ZRect(float x, float y, float width, float height);
-00068 
-00075         ZRect(const SDL_Rect &rect);
-00076 
-00083         ZRect(const ZRect &rhs);
-00084 
-00092         const ZRect& operator=(const ZRect &rhs);
-00093 
-00099         virtual ~ZRect();
-00100 
-00109         bool operator<(const ZRect &rhs) const;
-00110 
-00120         void Draw(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255) const;
-00121 
-00129         void Move(float x, float y);
-00130 
-00138         void MoveRel(float xMove, float yMove);
-00139 
-00147         void Resize(float width, float height);
-00148 
-00156         void ResizeRel(float widthChange, float heightChange);
-00157 
-00165         bool Intersects(const ZRect &rect) const;
-00166 
-00175         bool Contains(float x, float y) const;
-00176 
-00184         bool Contains(const ZRect &rect) const;
-00185 
-00193         ZRect Intersection(const ZRect &rect) const;
-00194 
-00201         SDL_Rect SDLrect() const;
-00202 
-00209         float X() const;
-00210 
-00217         float Y() const;
-00218 
-00225         float Left() const;
-00226 
-00233         float Right() const;
-00234 
-00241         float Top() const;
-00242 
-00249         float Bottom() const;
-00250 
-00257         float Width() const;
-00258 
-00265         float Height() const;
-00266 };
-00267 
-00268 } //namespace ZE
-00269 
-00270 #endif //__ze_zrect_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00020 #ifndef __ze_zrect_h__ +00021 #define __ze_zrect_h__ +00022 +00023 #include "ZE_ZEngine.h" +00024 +00025 namespace ZE +00026 { +00027 +00033 class ZRect +00034 { +00035 protected: +00037 float rX; +00039 float rY; +00041 float rWidth; +00043 float rHeight; +00044 +00045 public: +00046 +00052 ZRect(); +00053 +00063 ZRect(float x, float y, float width, float height); +00064 +00071 ZRect(const SDL_Rect &rect); +00072 +00079 ZRect(const ZRect &rhs); +00080 +00088 const ZRect& operator=(const ZRect &rhs); +00089 +00095 virtual ~ZRect(); +00096 +00105 bool operator<(const ZRect &rhs) const; +00106 +00116 void Draw(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255) const; +00117 +00125 void Move(float x, float y); +00126 +00134 void MoveRel(float xMove, float yMove); +00135 +00143 void Resize(float width, float height); +00144 +00152 void ResizeRel(float widthChange, float heightChange); +00153 +00161 bool Intersects(const ZRect &rect) const; +00162 +00171 bool Contains(float x, float y) const; +00172 +00180 bool Contains(const ZRect &rect) const; +00181 +00189 ZRect Intersection(const ZRect &rect) const; +00190 +00197 SDL_Rect SDLrect() const; +00198 +00205 float X() const; +00206 +00213 float Y() const; +00214 +00221 float Left() const; +00222 +00229 float Right() const; +00230 +00237 float Top() const; +00238 +00245 float Bottom() const; +00246 +00253 float Width() const; +00254 +00261 float Height() const; +00262 }; +00263 +00264 } //namespace ZE +00265 +00266 #endif //__ze_zrect_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZRect_8h.html b/doc/html/ZE__ZRect_8h.html index ef645dd..ea9235c 100644 --- a/doc/html/ZE__ZRect_8h.html +++ b/doc/html/ZE__ZRect_8h.html @@ -3,19 +3,15 @@ ZE_ZRect.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZRect.h File Reference


Detailed Description

-
File Header:
File: ZE_ZRect.h
- Description: Header file for core ZEngine Rectangle Object.
- Author(s): James Turk
-
Id
ZE_ZRect.h,v 1.9 2003/02/16 21:54:29 cozman Exp
+Definition file for ZRect, the Rectangle class for ZEngine.
+
Id
ZE_ZRect.h,v 1.11 2003/05/13 01:30:51 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZRect, the Rectangle class for ZEngine.

#include "ZE_ZEngine.h"
@@ -25,9 +21,9 @@ Definition file for ZRect, the Rectangle class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZServer_8cpp.html b/doc/html/ZE__ZServer_8cpp.html index 14336c5..834e65a 100755 --- a/doc/html/ZE__ZServer_8cpp.html +++ b/doc/html/ZE__ZServer_8cpp.html @@ -3,27 +3,23 @@ ZE_ZServer.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZServer.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZServer.cpp
- Description: Implementation source file for core ZEngine TCP Server Object.
- Author(s): James Turk
-
Id
ZE_ZServer.cpp,v 1.4 2003/04/08 03:30:50 cozman Exp
+Implementation file for ZServer, the TCP Server class for ZEngine.
+
Id
ZE_ZServer.cpp,v 1.7 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation file for ZServer, the TCP Server class for ZEngine.

#include "ZE_ZServer.h"
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZServer_8h-source.html b/doc/html/ZE__ZServer_8h-source.html index 4012c01..798213d 100755 --- a/doc/html/ZE__ZServer_8h-source.html +++ b/doc/html/ZE__ZServer_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZServer.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZServer.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,55 +16,55 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zserver_h__
-00025 #define __ze_zserver_h__
+00020 #ifndef __ze_zserver_h__
+00021 #define __ze_zserver_h__
+00022 
+00023 #include "ZE_ZEngine.h"
+00024 
+00025 #ifdef USE_SDL_NET
 00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 #ifdef USE_SDL_NET
-00030 
-00031 namespace ZE
-00032 {
-00033 
-00041 class ZServer
-00042 {
-00043     private:
-00045         ZEngine *rEngine;
-00047         TCPsocket rSocket;
-00049         SDLNet_SocketSet rSocketSet;
-00051         TCPsocket *rClientSockets;
-00053         int rMaxClients;
-00055         bool rVerbose;
-00057         int rWaitTime;
-00058 
-00065         void CloseSocket(int num);
-00066 
-00067     public:
-00074         ZServer(bool verbose=false);
-00075 
-00081         virtual ~ZServer();
-00082 
-00091         bool Start(int maxClients, Uint16 port);
-00092 
-00098         void Stop();
-00099 
-00107         void SetWaitTime(int wait);
-00108 
-00115         void CheckSockets();
-00116 
-00123         int Clients();
-00124 
-00131         int WaitTime();
-00132 };
-00133 
-00134 } //namespace ZE
-00135 
-00136 #endif //USE_SDL_NET
-00137 
-00138 #endif //__ze_zserver_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00027 namespace ZE +00028 { +00029 +00037 class ZServer +00038 { +00039 private: +00041 ZEngine *rEngine; +00043 TCPsocket rSocket; +00045 SDLNet_SocketSet rSocketSet; +00047 TCPsocket *rClientSockets; +00049 int rMaxClients; +00051 bool rVerbose; +00053 int rWaitTime; +00054 +00061 void CloseSocket(int num); +00062 +00063 public: +00070 ZServer(bool verbose=false); +00071 +00077 virtual ~ZServer(); +00078 +00087 bool Start(int maxClients, Uint16 port); +00088 +00094 void Stop(); +00095 +00103 void SetWaitTime(int wait); +00104 +00111 void CheckSockets(); +00112 +00119 int Clients(); +00120 +00127 int WaitTime(); +00128 }; +00129 +00130 } //namespace ZE +00131 +00132 #endif //USE_SDL_NET +00133 +00134 #endif //__ze_zserver_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZServer_8h.html b/doc/html/ZE__ZServer_8h.html index 518065e..29d1249 100755 --- a/doc/html/ZE__ZServer_8h.html +++ b/doc/html/ZE__ZServer_8h.html @@ -3,31 +3,25 @@ ZE_ZServer.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZServer.h File Reference


Detailed Description

-
File Header:
File: ZE_ZServer.h
- Description: Header file for core ZEngine TCP Server Object.
- Author(s): James Turk
-
Id
ZE_ZServer.h,v 1.5 2003/04/27 22:05:25 cozman Exp
+Definition file for ZServer, the TCP Server class for ZEngine.
+
Id
ZE_ZServer.h,v 1.7 2003/05/13 01:30:51 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZServer, the TCP Server class for ZEngine.

#include "ZE_ZEngine.h"

Go to the source code of this file. - -

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZSound_8cpp.html b/doc/html/ZE__ZSound_8cpp.html index 55db16e..a94aa14 100644 --- a/doc/html/ZE__ZSound_8cpp.html +++ b/doc/html/ZE__ZSound_8cpp.html @@ -3,27 +3,23 @@ ZE_ZSound.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZSound.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZSound.cpp
- Description: Implementation source file for core ZEngine Sound Object.
- Author(s): James Turk
-
Id
ZE_ZSound.cpp,v 1.6 2003/02/10 04:02:39 cozman Exp
+Implementation of ZSound, the basic Sound class for ZEngine.
+
Id
ZE_ZSound.cpp,v 1.10 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZSound, the basic Sound class for ZEngine.

#include "ZE_ZSound.h"
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZSound_8h-source.html b/doc/html/ZE__ZSound_8h-source.html index a66a608..969994e 100644 --- a/doc/html/ZE__ZSound_8h-source.html +++ b/doc/html/ZE__ZSound_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZSound.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZSound.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,70 +16,70 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_zsound_h__
-00025 #define __ze_zsound_h__
+00020 #ifndef __ze_zsound_h__
+00021 #define __ze_zsound_h__
+00022 
+00023 #include "ZE_ZEngine.h"
+00024 
+00025 #ifdef USE_SDL_MIXER
 00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 #ifdef USE_SDL_MIXER
-00030 
-00031 namespace ZE
-00032 {
-00033 
-00039 class ZSound
-00040 {
-00041     protected:
-00043         ZEngine* rEngine;
-00045         Mix_Chunk* rSound;
-00047         int rChannelID;
+00027 namespace ZE
+00028 {
+00029 
+00035 class ZSound
+00036 {
+00037     protected:
+00039         ZEngine* rEngine;
+00041         Mix_Chunk* rSound;
+00043         int rChannelID;
+00044 
+00045     public:
+00047         static const int LoopInfinite;
 00048 
-00049     public:
-00051         static const int LoopInfinite;
-00052 
-00054         //Opening and Closing//
-00056 
-00062         ZSound();
-00063 
-00070         ZSound(string filename);
-00071 
-00077         virtual ~ZSound();
-00078 
-00085         void Open(string filename);
-00086 
-00092         void Release();
-00093 
-00095         //Play Controls//
-00097 
-00106         void Play(int loopNum=0, int fadeTime=0);
-00107 
-00113         void Pause() const;
-00114 
-00120         void Unpause() const;
-00121 
-00128         void Stop(int fadeTime=0) const;
-00129 
-00136         void SetVolume(int volume);
-00137 
-00139         //Accessors//
-00141 
-00148         bool IsLoaded() const;
-00149 
-00156         bool IsPlaying() const;
-00157 
-00164         bool IsPaused() const;
-00165 
-00172         int Volume() const;
-00173 };
-00174 
-00175 
-00176 }
-00177 
-00178 #endif //USE_SDL_MIXER
-00179 
-00180 #endif //__ze_zsound_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00050 //Opening and Closing// +00052 +00058 ZSound(); +00059 +00066 ZSound(std::string filename); +00067 +00073 virtual ~ZSound(); +00074 +00081 void Open(std::string filename); +00082 +00088 void Release(); +00089 +00091 //Play Controls// +00093 +00102 void Play(int loopNum=0, int fadeTime=0); +00103 +00109 void Pause() const; +00110 +00116 void Unpause() const; +00117 +00124 void Stop(int fadeTime=0) const; +00125 +00132 void SetVolume(int volume); +00133 +00135 //Accessors// +00137 +00144 bool IsLoaded() const; +00145 +00152 bool IsPlaying() const; +00153 +00160 bool IsPaused() const; +00161 +00168 int Volume() const; +00169 }; +00170 +00171 +00172 } +00173 +00174 #endif //USE_SDL_MIXER +00175 +00176 #endif //__ze_zsound_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZSound_8h.html b/doc/html/ZE__ZSound_8h.html index ef18038..0cdc688 100644 --- a/doc/html/ZE__ZSound_8h.html +++ b/doc/html/ZE__ZSound_8h.html @@ -3,19 +3,15 @@ ZE_ZSound.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZSound.h File Reference


Detailed Description

-
File Header:
File: ZE_ZSound.h
- Description: Header file for core ZEngine Sound Wrapper Object.
- Author(s): James Turk
-
Id
ZE_ZSound.h,v 1.6 2003/02/10 04:40:16 cozman Exp
+Definition file for ZSound, the Sound Effect wrapper for ZEngine.
+
Id
ZE_ZSound.h,v 1.9 2003/06/11 00:15:26 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZSound, the Sound Effect wrapper for ZEngine.

#include "ZE_ZEngine.h"
@@ -25,9 +21,9 @@ Definition file for ZSound, the Sound Effect wrapper for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZTimer_8cpp.html b/doc/html/ZE__ZTimer_8cpp.html index 40896ff..cf5ebc5 100644 --- a/doc/html/ZE__ZTimer_8cpp.html +++ b/doc/html/ZE__ZTimer_8cpp.html @@ -3,19 +3,15 @@ ZE_ZTimer.cpp File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/src/ZE_ZTimer.cpp File Reference


Detailed Description

-
File Header:
File: ZE_ZTimer.cpp
- Description: Implementation source file for core ZEngine Timer Object.
- Author(s): James Turk
-
Id
ZE_ZTimer.cpp,v 1.6 2003/02/10 04:40:30 cozman Exp
+Implementation of ZTimer, the basic Timer class for ZEngine.
+
Id
ZE_ZTimer.cpp,v 1.9 2003/06/11 05:51:16 cozman Exp

-
+
Author:
James Turk
-

-Implementation of ZTimer, the basic Timer class for ZEngine.

#include "ZE_ZTimer.h"
@@ -23,9 +19,9 @@ Implementation of ZTimer, the basic Timer class for ZEngine.

Namespaces

namespace  ZE
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZTimer_8h-source.html b/doc/html/ZE__ZTimer_8h-source.html index 85cbc96..668b57d 100644 --- a/doc/html/ZE__ZTimer_8h-source.html +++ b/doc/html/ZE__ZTimer_8h-source.html @@ -3,7 +3,7 @@ /include/ZE_ZTimer.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZTimer.h

Go to the documentation of this file.
00001 /*******************************************************************************
@@ -16,48 +16,48 @@
 00008      and the home of this Library is http://www.zengine.sourceforge.net
 00009 *******************************************************************************/
 00010 
-00024 #ifndef __ze_ztimer_h__
-00025 #define __ze_ztimer_h__
-00026 
-00027 #include "ZE_ZEngine.h"
-00028 
-00029 namespace ZE
-00030 {
-00031 
-00037 class ZTimer
-00038 {
-00039     protected:
-00041         ZEngine* rEngine;
-00043         bool rPaused;
-00045         bool rUseZEngine;
-00047         Uint32 rPausedTime;
-00049         Uint32 rLastPause;
-00050 
-00057         Uint32 GetParentTime() const;
-00058 
-00059     public:
-00060 
-00067         ZTimer(bool useZEngine=true);
-00068 
-00074         virtual ~ZTimer();
-00075 
-00081         void Reset();
-00082 
-00088         void Pause();
-00089 
-00095         void Unpause();
-00096 
-00103         Uint32 GetTime() const;
-00104 
-00111         bool IsPaused() const;
-00112 };
-00113 
-00114 }
-00115 
-00116 #endif //__ze_ztimer_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00020 #ifndef __ze_ztimer_h__ +00021 #define __ze_ztimer_h__ +00022 +00023 #include "ZE_ZEngine.h" +00024 +00025 namespace ZE +00026 { +00027 +00033 class ZTimer +00034 { +00035 protected: +00037 ZEngine* rEngine; +00039 bool rPaused; +00041 bool rUseZEngine; +00043 Uint32 rPausedTime; +00045 Uint32 rLastPause; +00046 +00053 Uint32 GetParentTime() const; +00054 +00055 public: +00056 +00063 ZTimer(bool useZEngine=true); +00064 +00070 virtual ~ZTimer(); +00071 +00077 void Reset(); +00078 +00084 void Pause(); +00085 +00091 void Unpause(); +00092 +00099 Uint32 GetTime() const; +00100 +00107 bool IsPaused() const; +00108 }; +00109 +00110 } +00111 +00112 #endif //__ze_ztimer_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZE__ZTimer_8h.html b/doc/html/ZE__ZTimer_8h.html index 98a427a..c6ba89b 100644 --- a/doc/html/ZE__ZTimer_8h.html +++ b/doc/html/ZE__ZTimer_8h.html @@ -3,19 +3,15 @@ ZE_ZTimer.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_ZTimer.h File Reference


Detailed Description

-
File Header:
File: ZE_ZTimer.h
- Description: Header file for core ZEngine Timer Object.
- Author(s): James Turk
-
Id
ZE_ZTimer.h,v 1.6 2003/02/10 04:40:16 cozman Exp
+Definition file for ZTimer, the Timer class for ZEngine.
+
Id
ZE_ZTimer.h,v 1.8 2003/05/13 01:30:51 cozman Exp

-
+
Author:
James Turk
-

-Definition file for ZTimer, the Timer class for ZEngine.

#include "ZE_ZEngine.h"
@@ -25,9 +21,9 @@ Definition file for ZTimer, the Timer class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZEngine_8h-source.html b/doc/html/ZEngine_8h-source.html index 27bcf12..419536a 100644 --- a/doc/html/ZEngine_8h-source.html +++ b/doc/html/ZEngine_8h-source.html @@ -3,36 +3,36 @@ /include/ZEngine.h Source File - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZEngine.h

Go to the documentation of this file.
00001 
-00054 #ifndef __zengine_h__
-00055 #define __zengine_h__
-00056 
-00057 #include "ZE_Defines.h"
-00058 #include "ZE_ZEngine.h"
-00059 #include "ZE_Utility.h"
-00060 #include "ZE_ZImage.h"
-00061 #include "ZE_ZTimer.h"
-00062 #include "ZE_ZConfigFile.h"
-00063 #include "ZE_ZRect.h"
-00064 #ifdef USE_SDL_TTF
-00065 #include "ZE_ZFont.h"
+00050 #ifndef __zengine_h__
+00051 #define __zengine_h__
+00052 
+00053 #include "ZE_Defines.h"
+00054 #include "ZE_ZEngine.h"
+00055 #include "ZE_Utility.h"
+00056 #include "ZE_ZImage.h"
+00057 #include "ZE_ZTimer.h"
+00058 #include "ZE_ZConfigFile.h"
+00059 #include "ZE_ZRect.h"
+00060 #ifdef USE_SDL_TTF
+00061 #include "ZE_ZFont.h"
+00062 #endif
+00063 #ifdef USE_SDL_MIXER
+00064 #include "ZE_ZSound.h"
+00065 #include "ZE_ZMusic.h"
 00066 #endif
-00067 #ifdef USE_SDL_MIXER
-00068 #include "ZE_ZSound.h"
-00069 #include "ZE_ZMusic.h"
+00067 #ifdef USE_SDL_NET
+00068 #include "ZE_ZClient.h"
+00069 #include "ZE_ZServer.h"
 00070 #endif
-00071 #ifdef USE_SDL_NET
-00072 #include "ZE_ZClient.h"
-00073 #include "ZE_ZServer.h"
-00074 #endif
-00075 
-00076 #endif //__zengine_h__
-

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +00071 +00072 #endif //__zengine_h__ +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/ZEngine_8h.html b/doc/html/ZEngine_8h.html index 950f6d0..f56dccb 100644 --- a/doc/html/ZEngine_8h.html +++ b/doc/html/ZEngine_8h.html @@ -3,19 +3,15 @@ ZEngine.h File Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZEngine.h File Reference


Detailed Description

-
File Header:
File: ZEngine.h
- Description: Public Header File for ZEngine.
- Author(s): James Turk
-
Id
ZEngine.h,v 1.24 2003/04/27 18:55:00 cozman Exp
+Header file for ZEngine Game Engine from Concept of Zero, this is the file that programs that wish to utilize ZEngine should include.
+
Id
ZEngine.h,v 1.26 2003/05/13 01:30:51 cozman Exp

-
+
Author:
James Turk
-

-Header file for ZEngine Game Engine from Concept of Zero, this is the file that programs that wish to utilize ZEngine should include.

#include "ZE_Defines.h"
#include "ZE_ZEngine.h"
@@ -27,16 +23,14 @@ Header file for ZEngine Game Engine from Concept of Zero, this is the file that #include "ZE_ZFont.h"
#include "ZE_ZSound.h"
#include "ZE_ZMusic.h"
-#include "ZE_ZClient.h"
-#include "ZE_ZServer.h"

Go to the source code of this file.
-


Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/annotated.html b/doc/html/annotated.html index d1636f3..31acd1a 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -3,11 +3,11 @@ Annotated Index - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZEngine Compound List

Here are the classes, structs, unions and interfaces with brief descriptions: - + @@ -16,14 +16,14 @@ + -
ZE::ZClientZEngine class for a simplified TCP client
VersionInfoClass for holding version information
ZE::ZConfigFileZConfigFile Class for use in ZEngine
ZE::ZConfigFile::ZCF_SectionZConfigFile Section class
ZE::ZConfigFile::ZCF_VariableZConfigFile Variable class
ZE::ZFontZFont class for basic Font use
ZE::ZImageZImage class for basic Image use
ZE::ZMusicZMusic class for playing full length music (eg. ogg or wav)
ZE::ZRandGenZRandGen class for OO encapsulation of superb random generator "Mersenne Twister."
ZE::ZRectZEngine class for simplified rectangle use
ZE::ZServerZEngine class for simplified TCP server
ZE::ZSoundZSound class for playing sound effects. (WAV)
ZE::ZTimerZTimer class for Timer use
-
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZConfigFile-members.html b/doc/html/classZE_1_1ZConfigFile-members.html index 11063fb..ead598e 100644 --- a/doc/html/classZE_1_1ZConfigFile-members.html +++ b/doc/html/classZE_1_1ZConfigFile-members.html @@ -3,34 +3,34 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZConfigFile Member List

This is the complete list of members for ZE::ZConfigFile, including all inherited members. - + - - + + - - - - - - + + + + + + - - - - - + + + + + - + -
CleanString(string str) constZE::ZConfigFile [protected]
CleanString(std::string str) constZE::ZConfigFile [protected]
Close()ZE::ZConfigFile
Exists(string sec) constZE::ZConfigFile [protected]
Exists(string sec, string var) constZE::ZConfigFile [protected]
Exists(std::string sec) constZE::ZConfigFile [protected]
Exists(std::string sec, std::string var) constZE::ZConfigFile [protected]
Flush()ZE::ZConfigFile
GetBool(string section, string var, bool defVal) constZE::ZConfigFile
GetFloat(string section, string var, float defVal) constZE::ZConfigFile
GetInt(string section, string var, int defVal) constZE::ZConfigFile
GetString(string section, string var, string defVal) constZE::ZConfigFile
GetVariable(string sec, string var, string defVal) constZE::ZConfigFile [protected]
Process(string filename)ZE::ZConfigFile
GetBool(std::string section, std::string var, bool defVal) constZE::ZConfigFile
GetFloat(std::string section, std::string var, float defVal) constZE::ZConfigFile
GetInt(std::string section, std::string var, int defVal) constZE::ZConfigFile
GetString(std::string section, std::string var, std::string defVal) constZE::ZConfigFile
GetVariable(std::string sec, std::string var, std::string defVal) constZE::ZConfigFile [protected]
Process(std::string filename)ZE::ZConfigFile
rFileLayoutZE::ZConfigFile [protected]
rFilenameZE::ZConfigFile [protected]
SetBool(string section, string var, bool val)ZE::ZConfigFile
SetFloat(string section, string var, float val)ZE::ZConfigFile
SetInt(string section, string var, int val)ZE::ZConfigFile
SetString(string section, string var, string val)ZE::ZConfigFile
SetVariable(string sec, string var, string val)ZE::ZConfigFile [protected]
SetBool(std::string section, std::string var, bool val)ZE::ZConfigFile
SetFloat(std::string section, std::string var, float val)ZE::ZConfigFile
SetInt(std::string section, std::string var, int val)ZE::ZConfigFile
SetString(std::string section, std::string var, std::string val)ZE::ZConfigFile
SetVariable(std::string sec, std::string var, std::string val)ZE::ZConfigFile [protected]
ZConfigFile()ZE::ZConfigFile
ZConfigFile(string filename)ZE::ZConfigFile
ZConfigFile(std::string filename)ZE::ZConfigFile
~ZConfigFile()ZE::ZConfigFile [virtual]

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZConfigFile.html b/doc/html/classZE_1_1ZConfigFile.html index bd54812..e9242d3 100644 --- a/doc/html/classZE_1_1ZConfigFile.html +++ b/doc/html/classZE_1_1ZConfigFile.html @@ -3,7 +3,7 @@ ZE::ZConfigFile class Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZConfigFile Class Reference

#include <ZE_ZConfigFile.h> @@ -13,53 +13,53 @@

- + - - - + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - + + + + + + + + + + + + - +std::list< ZCF_Section >  + - +std::string  +

Public Methods


Public Member Functions

 ZConfigFile ()
 Default constructor.

 ZConfigFile (string filename)
 Constructor which takes filename.

 Default constructor.

 ZConfigFile (std::string filename)
 Constructor which takes filename.

virtual ~ZConfigFile ()
 Destructor, flushes file.

void Process (string filename)
 Parse a file.

float GetFloat (string section, string var, float defVal) const
 Get value in floating point format from file.

int GetInt (string section, string var, int defVal) const
 Get value in integer format from file.

bool GetBool (string section, string var, bool defVal) const
 Get value in boolean format from file.

string GetString (string section, string var, string defVal) const
 Get value in string format from file.

void SetFloat (string section, string var, float val)
 Set value in floating point format in file.

void SetInt (string section, string var, int val)
 Set value in integer format in file.

void SetBool (string section, string var, bool val)
 Set value in boolean format in file.

void SetString (string section, string var, string val)
 Set value in string format in file.

 Destructor, flushes file.

void Process (std::string filename)
 Parse a file.

float GetFloat (std::string section, std::string var, float defVal) const
 Get value in floating point format from file.

int GetInt (std::string section, std::string var, int defVal) const
 Get value in integer format from file.

bool GetBool (std::string section, std::string var, bool defVal) const
 Get value in boolean format from file.

std::string GetString (std::string section, std::string var, std::string defVal) const
 Get value in std::string format from file.

void SetFloat (std::string section, std::string var, float val)
 Set value in floating point format in file.

void SetInt (std::string section, std::string var, int val)
 Set value in integer format in file.

void SetBool (std::string section, std::string var, bool val)
 Set value in boolean format in file.

void SetString (std::string section, std::string var, std::string val)
 Set value in std::string format in file.

void Flush ()
 Write all values to file.

 Write all values to file.

void Close ()
 Close the file.


Protected Methods

string CleanString (string str) const
 Reformat a string in a form more suitable to parsing.

bool Exists (string sec) const
 Check if a section exists.

bool Exists (string sec, string var) const
 Check if a variable exists.

void SetVariable (string sec, string var, string val)
 Internal function to set variables.

string GetVariable (string sec, string var, string defVal) const
 Internal function to get value of a variable.

 Close the file.


Protected Member Functions

std::string CleanString (std::string str) const
 Reformat a std::string in a form more suitable to parsing.

bool Exists (std::string sec) const
 Check if a section exists.

bool Exists (std::string sec, std::string var) const
 Check if a variable exists.

void SetVariable (std::string sec, std::string var, std::string val)
 Internal function to set variables.

std::string GetVariable (std::string sec, std::string var, std::string defVal) const
 Internal function to get value of a variable.


Protected Attributes

-list< ZCF_SectionrFileLayout
 List of sections of internal type.

rFileLayout
 List of sections of internal type.

-string rFilename
 Filename of file currently open.

rFilename
 Filename of file currently open.


Constructor & Destructor Documentation

@@ -70,8 +70,8 @@ string  ZE::ZConfigFile::ZConfigFile (  -   - )  + +  )  @@ -98,9 +98,9 @@ A no-op default constructor. ZE::ZConfigFile::ZConfigFile (  - string  -   filename - )  + std::string  + filename +  )  @@ -132,8 +132,8 @@ Constructor takes filename, and calls process on it.

Paramete ZE::ZConfigFile::~ZConfigFile (  -   - )  + +  )  [virtual] @@ -159,11 +159,11 @@ Flushes the file, ensures a flush if the file is left open. - + - - - + + + @@ -179,12 +179,12 @@ Flushes the file, ensures a flush if the file is left open.
string ZE::ZConfigFile::CleanString std::string ZE::ZConfigFile::CleanString string   str std::string  str  )  const [protected]

-Removes whitespace from a string and makes all characters lowercase.

Parameters:
+Removes whitespace from a std::string and makes all characters lowercase.
Parameters:
- +
str The string to get a clean version of.
str The std::string to get a clean version of.
-
Returns:
Cleaned string.
+
Returns:
Cleaned std::string.
@@ -196,9 +196,9 @@ Removes whitespace from a string and makes all characters lowercase.
bool ZE::ZConfigFile::Exists (  - string  -   sec - )  + std::string  + sec +  )  const [protected] @@ -231,14 +231,14 @@ Find out if a section currently exists.
Parameters:
< bool ZE::ZConfigFile::Exists (  - string  -   sec, + std::string  + sec, - string  -   var + std::string  + var @@ -276,20 +276,20 @@ Find out if a variable currently exists.
Parameters:
void ZE::ZConfigFile::SetVariable (  - string  -   sec, + std::string  + sec, - string  -   var, + std::string  + var, - string  -   val + std::string  + val @@ -325,22 +325,22 @@ Set variable to value, called internally only.
Parameters: - + - - + + - - + + - - + + @@ -379,9 +379,9 @@ Get value of variable, called internally only.
Parameters:
- - - + + + @@ -413,20 +413,20 @@ Parses the file, reading the contents into the fileLayout map.
<
- - + + - - + + - + @@ -466,20 +466,20 @@ Get the current value of a variable in the file, or defVal if not found in file. - - + + - - + + - + @@ -518,20 +518,20 @@ Get the current value of a variable in the file, or defVal if not found in file. - - + + - - + + - + @@ -568,22 +568,22 @@ Get the current value of a variable in the file, or defVal if not found in file.
string ZE::ZConfigFile::GetVariable std::string ZE::ZConfigFile::GetVariable string   sec, std::string  sec,
string   var, std::string  var,
string   defValstd::string  defVal
void ZE::ZConfigFile::Process string   filename std::string  filename  ) 
float ZE::ZConfigFile::GetFloat string   section, std::string  section,
string   var, std::string  var,
float   defVal defVal
int ZE::ZConfigFile::GetInt string   section, std::string  section,
string   var, std::string  var,
int   defVal defVal
bool ZE::ZConfigFile::GetBool string   section, std::string  section,
string   var, std::string  var,
bool   defVal defVal
- + - - + + - - + + - - + + @@ -610,7 +610,7 @@ Get the current value of a variable in the file, or defVal if not found in file.
string ZE::ZConfigFile::GetString std::string ZE::ZConfigFile::GetString string   section, std::string  section,
string   var, std::string  var,
string   defValstd::string  defVal
defVal Value to return if var does not exist within section.
-
Returns:
Contents of the variable in string format.
+
Returns:
Contents of the variable in std::string format.
@@ -622,20 +622,20 @@ Get the current value of a variable in the file, or defVal if not found in file. void ZE::ZConfigFile::SetFloat (  - string  -   section, + std::string  + section, - string  -   var, + std::string  + var, float  -   val + val @@ -674,20 +674,20 @@ Set the new value of a variable in the file to val, creating the section and var void ZE::ZConfigFile::SetInt (  - string  -   section, + std::string  + section, - string  -   var, + std::string  + var, int  -   val + val @@ -725,20 +725,20 @@ Set the new value of a variable in the file to val, creating the section and var void ZE::ZConfigFile::SetBool (  - string  -   section, + std::string  + section, - string  -   var, + std::string  + var, bool  -   val + val @@ -776,20 +776,20 @@ Set the new value of a variable in the file to val, creating the section and var void ZE::ZConfigFile::SetString (  - string  -   section, + std::string  + section, - string  -   var, + std::string  + var, - string  -   val + std::string  + val @@ -827,8 +827,8 @@ Set the new value of a variable in the file to val, creating the section and var void ZE::ZConfigFile::Flush (  -   - )  + +  )  @@ -855,8 +855,8 @@ Writes all values and sections to file. void ZE::ZConfigFile::Close (  -   - )  + +  )  @@ -877,9 +877,9 @@ Flush the file and clear the filename.
The documentation for this class was generated from the following files:
-
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section-members.html b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section-members.html index 272032a..9f53ac4 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section-members.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section-members.html @@ -3,15 +3,15 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZConfigFile::ZCF_Section Member List

This is the complete list of members for ZE::ZConfigFile::ZCF_Section, including all inherited members. -
sectionZE::ZConfigFile::ZCF_Section
varListZE::ZConfigFile::ZCF_Section

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html index 0c5431b..5b5e700 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html @@ -3,7 +3,7 @@ ZE::ZConfigFile::ZCF_Section class Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZConfigFile::ZCF_Section Class Reference

List of all members.

Detailed Description

@@ -13,17 +13,17 @@

Public Attributes

-string sectionSection name.

+std::string sectionSection name.

-list< ZCF_VariablevarListSTL list of variables.

+std::list< ZCF_VariablevarListSTL list of variables.


The documentation for this class was generated from the following file: -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable-members.html b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable-members.html index 3f8064e..6394ca8 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable-members.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable-members.html @@ -3,15 +3,15 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZConfigFile::ZCF_Variable Member List

This is the complete list of members for ZE::ZConfigFile::ZCF_Variable, including all inherited members. -
valZE::ZConfigFile::ZCF_Variable
varZE::ZConfigFile::ZCF_Variable

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html index 150036c..88deb0c 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html @@ -3,27 +3,27 @@ ZE::ZConfigFile::ZCF_Variable class Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZConfigFile::ZCF_Variable Class Reference

List of all members.

Detailed Description

-ZConfigFile class for mapping a variable name to it's value, stored in string form (later converted to bool or int if needed). +ZConfigFile class for mapping a variable name to it's value, stored in std::string form (later converted to bool or int if needed).

- +std::string  + - +std::string  +

Public Attributes

-string var
 Variable name.

var
 Variable name.

-string val
 Value associated with variable.

val
 Value associated with variable.


The documentation for this class was generated from the following file: -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZEngine-members.html b/doc/html/classZE_1_1ZEngine-members.html index 8eb464c..42d40bd 100644 --- a/doc/html/classZE_1_1ZEngine-members.html +++ b/doc/html/classZE_1_1ZEngine-members.html @@ -3,41 +3,38 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZEngine Member List

This is the complete list of members for ZE::ZEngine, including all inherited members. - - + - + - + - + - - + - - + - - - - + + + + @@ -45,6 +42,7 @@ + @@ -64,25 +62,29 @@ - + + - + - - - - + + + + + + + - + - + - + @@ -94,12 +96,13 @@ - - + + + -
AddPhysFSDir(string dir)ZE::ZEngine
BPP()ZE::ZEngine
BPP()ZE::ZEngine
CheckEvents()ZE::ZEngine
Clear(float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=1.0f)ZE::ZEngine
CloseDisplay()ZE::ZEngine
CreateDisplay(string title, string icon="")ZE::ZEngine
CreateDisplay(std::string title, std::string icon="")ZE::ZEngine
Delay(Uint32 milliseconds)ZE::ZEngine
Display()ZE::ZEngine
FlushErrors()ZE::ZEngine
FlushErrors()ZE::ZEngine
GetDesiredFramerate()ZE::ZEngine
GetFramerate()ZE::ZEngine
GetFrameTime()ZE::ZEngine
GetInstance()ZE::ZEngine [static]
GetLastError()ZE::ZEngine
GetLastError()ZE::ZEngine
GetTime()ZE::ZEngine
GetVersion()ZE::ZEngine [static]
Height()ZE::ZEngine
Height()ZE::ZEngine
HideCursor()ZE::ZEngine
ImagesNeedReload()ZE::ZEngine
Initialized()ZE::ZEngine
InitPhysFS(string argv)ZE::ZEngine
IsActive()ZE::ZEngine
IsFullscreen()ZE::ZEngine
IsFullscreen()ZE::ZEngine
IsPaused()ZE::ZEngine
KeyIsPressed(SDLKey key)ZE::ZEngine
KeyPress(SDLKey key)ZE::ZEngine
LButtonPressed()ZE::ZEngine
LoadFont(string filename, int size)ZE::ZEngine
LoadImage(string filename)ZE::ZEngine
LoadMusic(string filename)ZE::ZEngine
LoadSound(string filename)ZE::ZEngine
LoadFont(std::string filename, int size)ZE::ZEngine
LoadImage(std::string filename)ZE::ZEngine
LoadMusic(std::string filename)ZE::ZEngine
LoadSound(std::string filename)ZE::ZEngine
LogError(ZError error)ZE::ZEngine [private]
mActiveZE::ZEngine [private]
mBPPZE::ZEngine [private]
mDesiredFramerateZE::ZEngine [private]
mErrlogZE::ZEngine [private]
mErrorQueueZE::ZEngine [private]
mEventFilterZE::ZEngine [private]
mFullscreenZE::ZEngine [private]
mHeightZE::ZEngine [private]
mInitializedZE::ZEngine [private]
mPausedZE::ZEngine [private]
mPausedTimeZE::ZEngine [private]
mQuitZE::ZEngine [private]
mRateZE::ZEngine [private]
mRandGenZE::ZEngine [private]
mRateZE::ZEngine [private]
mScreenZE::ZEngine [private]
mSecPerFrameZE::ZEngine [private]
mStereoZE::ZEngine [private]
mStereoZE::ZEngine [private]
mUnpauseOnActiveZE::ZEngine [private]
mWidthZE::ZEngine [private]
PauseTimer()ZE::ZEngine
QuitRequested()ZE::ZEngine
RandDouble()ZE::ZEngine
RandDouble(double min, double max)ZE::ZEngine
RandLong(unsigned long max)ZE::ZEngine
RandLong(long min, long max)ZE::ZEngine
Rand(unsigned int max)ZE::ZEngine
Rand(unsigned long max)ZE::ZEngine
Rand(int min, int max)ZE::ZEngine
Rand(long min, long max)ZE::ZEngine
Rand(float min, float max)ZE::ZEngine
Rand(double min, double max)ZE::ZEngine
RandDouble()ZE::ZEngine
RButtonPressed()ZE::ZEngine
ReleaseInstance()ZE::ZEngine [static]
ReportError(ZErrorCode code, string desc="", string file="", unsigned int line=0)ZE::ZEngine
ReportError(ZErrorCode code, std::string desc="", std::string file="", unsigned int line=0)ZE::ZEngine
RequestQuit()ZE::ZEngine
SeedRandom(unsigned long seed)ZE::ZEngine
SeedRandGen(unsigned long seed)ZE::ZEngine
SetDesiredFramerate(Uint8 rate)ZE::ZEngine
SetErrorLog(bool logAll, string logFile="")ZE::ZEngine
SetErrorLog(bool logAll, std::string logFile="")ZE::ZEngine
SetEventFilter(SDL_EventFilter filter)ZE::ZEngine
SetGL2D()ZE::ZEngine
SetKeyRepeatRate(int rate)ZE::ZEngine
ToggleFullscreen()ZE::ZEngine
UnpauseTimer()ZE::ZEngine
Update()ZE::ZEngine
Width()ZE::ZEngine
WriteLog(string str)ZE::ZEngine
VersionZE::ZEngine [static]
Width()ZE::ZEngine
WriteLog(std::string str)ZE::ZEngine
ZEngine()ZE::ZEngine [private]

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZEngine.html b/doc/html/classZE_1_1ZEngine.html index 51bd703..2f898b2 100644 --- a/doc/html/classZE_1_1ZEngine.html +++ b/doc/html/classZE_1_1ZEngine.html @@ -3,230 +3,240 @@ ZE::ZEngine class Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZEngine Class Reference

#include <ZE_ZEngine.h>

List of all members.


Detailed Description

-ZEngine Singleton Class, accessible from anywhere in a ZEngine-based program by nature. Controls core elements of program and does majority of SDL wrapping. Also keeps track of loaded data and helps programs avoid memory leaks and dangling pointers. +ZEngine Singleton Class, accessible from anywhere in a ZEngine-based program by nature. Controls core elements of program and does majority of SDL and OpenGL wrapping.

- + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +std::queue< ZError >  + - + - + - - - - - +std::FILE *  + + + + + + + + + - +

Public Methods


Public Member Functions

void SetupDisplay (int width, int height, int bpp, bool fullscreen)
 Setup Display for SDL.

 Setup Display for SDL.

void SetupSound (int rate, bool stereo)
 Initialize Sound for SDL.

bool CreateDisplay (string title, string icon="")
 Create Display with predefined settings.

 Initialize Sound for SDL.

bool CreateDisplay (std::string title, std::string icon="")
 Create Display with predefined settings.

void CloseDisplay ()
 Quit SDL and any Subsystems.

 Quit SDL and any Subsystems.

void ToggleFullscreen ()
 Toggle fullscreen/windowed mode.

 Toggle fullscreen/windowed mode.

bool Initialized ()
 Check state of ZEngine.

 Check state of ZEngine.

SDL_Surface * Display ()
 Allow access to Screen Surface.

 Allow access to Screen Surface.

void Update ()
 Update display contents.

 Update display contents.

void Clear (float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=1.0f)
 Clear screen to a certain color (Black by default).

 Clear screen to a certain color (Black by default).

void SetGL2D ()
 Setup OpenGL ortho mode.

 Setup OpenGL ortho mode.

void Delay (Uint32 milliseconds)
 Sleep for a certain amount of time.

 Sleep for a certain amount of time.

Uint32 GetTime ()
 Get Global ZEngine time.

 Get Global ZEngine time.

void PauseTimer ()
 Pause ZEngine.

 Pause ZEngine.

void UnpauseTimer ()
 Unpause ZEngine.

 Unpause ZEngine.

double GetFrameTime ()
 Get Seconds Per Frame.

 Get Seconds Per Frame.

double GetFramerate ()
 Get Frames Per Second.

 Get Frames Per Second.

void SetDesiredFramerate (Uint8 rate)
 Set Desired Framerate.

 Set Desired Framerate.

Uint8 GetDesiredFramerate ()
 Get Desired Framerate.

 Get Desired Framerate.

bool IsPaused ()
 Check Engine Paused State.

 Check Engine Paused State.

bool IsActive ()
 Find out if application is active.

 Find out if application is active.

void RequestQuit ()
 Request A Quit.

 Request A Quit.

bool QuitRequested ()
 Find out if user has requested to quit.

 Find out if user has requested to quit.

void SetReloadNeed (bool state)
 Set State of ImagesNeedReload.

 Set State of ImagesNeedReload.

bool ImagesNeedReload ()
 Find out if images should be reloaded.

 Find out if images should be reloaded.

void SetKeyRepeatRate (int rate)
 Set Key repeat rate.

 Set Key repeat rate.

bool KeyIsPressed (SDLKey key)
 Find the state of a key.

 Find the state of a key.

bool KeyPress (SDLKey key)
 Find if key has been pressed since last check.

 Find if key has been pressed since last check.

void HideCursor ()
 Hide mouse cursor.

 Hide mouse cursor.

void ShowCursor ()
 Show mouse cursor.

 Show mouse cursor.

int MouseX ()
 Get X Position of Mouse.

 Get X Position of Mouse.

int MouseY ()
 Get Y Position of Mouse.

 Get Y Position of Mouse.

bool LButtonPressed ()
 Get Status of Left Button.

 Get Status of Left Button.

bool RButtonPressed ()
 Get Status of Right Button.

 Get Status of Right Button.

bool MouseInRect (SDL_Rect *rect)
 Check if mouse is in given rectangle.

 Check if mouse is in given rectangle.

void CheckEvents ()
 Check for Activation, Window Manager, and Quit Events.

 Check for Activation, Window Manager, and Quit Events.

void SetEventFilter (SDL_EventFilter filter)
 Add a SDL Event Filter for user processing of events.

void InitPhysFS (string argv)
 Initialize PhysicsFS.

void AddPhysFSDir (string dir)
 Add Directory to PhysFS Search Path.

void SetErrorLog (bool logAll, string logFile="")
 Modify Error Logging.

void ReportError (ZErrorCode code, string desc="", string file="", unsigned int line=0)
 Report an error.

ZErrorCode GetLastError ()
 Get the last error.

void WriteLog (string str)
 Write to the log.

void FlushErrors ()
 Flush Stack of Errors to file.

void SeedRandom (unsigned long seed)
 Seed random number generator.

unsigned long RandLong (unsigned long max)
 Obtain random integer [0,max).

long RandLong (long min, long max)
 Obtain random integer [min,max].

double RandDouble ()
 Obtain random double [0,1).

double RandDouble (double min, double max)
 Obtain random double [min,max].

SDL_Surface * LoadImage (string filename)
 Load an Image.

Mix_Chunk * LoadSound (string filename)
 Load a Sound.

Mix_Music * LoadMusic (string filename)
 Load a Music File.

TTF_Font * LoadFont (string filename, int size)
 Load a Font.

int Width ()
 Get Current Display Width.

int Height ()
 Get Current Display Height.

int BPP ()
 Get Current Display BPP.

bool IsFullscreen ()
 Get Fullscreen setting.


Static Public Methods

 Add a SDL Event Filter for user processing of events.

void SetErrorLog (bool logAll, std::string logFile="")
 Modify Error Logging.

void ReportError (ZErrorCode code, std::string desc="", std::string file="", unsigned int line=0)
 Report an error.

ZErrorCode GetLastError ()
 Get the last error.

void WriteLog (std::string str)
 Write to the log.

void FlushErrors ()
 Flush Stack of Errors to file.

void SeedRandGen (unsigned long seed)
 Seed random number generator.

unsigned int Rand (unsigned int max)
 Obtain random integer [0,max).

unsigned long Rand (unsigned long max)
 Obtain random integer [0,max).

int Rand (int min, int max)
 Obtain random integer [min,max].

long Rand (long min, long max)
 Obtain random integer [min,max].

float Rand (float min, float max)
 Obtain random integer [min,max].

double Rand (double min, double max)
 Obtain random integer [min,max].

double RandDouble ()
 Obtain random double [0,1).

SDL_Surface * LoadImage (std::string filename)
 Load an Image.

Mix_Chunk * LoadSound (std::string filename)
 Load a Sound.

Mix_Music * LoadMusic (std::string filename)
 Load a Music File.

TTF_Font * LoadFont (std::string filename, int size)
 Load a Font.

int Width ()
 Get Current Display Width.

int Height ()
 Get Current Display Height.

int BPP ()
 Get Current Display BPP.

bool IsFullscreen ()
 Get Fullscreen setting.


Static Public Member Functions

ZEngine * GetInstance ()
 Get Instance.

 Get Instance.

void ReleaseInstance ()
 Release Instance.

string GetVersion ()
 Get Current Version.


Private Methods

 Release Instance.


Static Public Attributes

+VersionInfo Version
 Static version information.


Private Member Functions

 ZEngine ()
 Constructor for ZEngine.

 Constructor for ZEngine.

void LogError (ZError error)
 Writes an error to file.

 Writes an error to file.


Private Attributes

int mWidth
 Width of Display.

 Width of Display.

int mHeight
 Height of Display.

 Height of Display.

int mBPP
 BPP Setting of Display.

 BPP Setting of Display.

bool mFullscreen
 Fullscreen setting of Display.

 Fullscreen setting of Display.

bool mInitialized
 If ZEngine display has been setup.

 If ZEngine display has been setup.

SDL_Surface * mScreen
 Pointer to Display.

 Pointer to Display.

bool mPaused
 Keep track of paused state of game.

 Keep track of paused state of game.

bool mUnpauseOnActive
 Keep track of if ZEngine should unpause on active event.

 Keep track of if ZEngine should unpause on active event.

Uint8 mDesiredFramerate
 Value framerate strives to be at, set by SetDesiredFramerate.

 Value framerate strives to be at, set by SetDesiredFramerate.

Uint32 mNextUpdate
 Time scheduled for next update (used for framerate locked movement).

 Time scheduled for next update (used for framerate locked movement).

Uint32 mLastPause
 Keep track of time game was last paused.

 Keep track of time game was last paused.

Uint32 mPausedTime
 Keep track of total globally paused time.

 Keep track of total globally paused time.

Uint32 mLastTime
 Keep track of last screen update time.

 Keep track of last screen update time.

double mSecPerFrame
 Seconds per frame.

 Seconds per frame.

bool mNeedReload
 bool which is only set to true if the engine thinks the images need to be reloaded (loss of focus in fullscreen).

 bool which is only set to true if the engine thinks the images need to be reloaded (loss of focus in fullscreen).

bool mActive
 bool describing Active or Inactive State of Game

 bool describing Active or Inactive State of Game

bool mQuit
 bool for checking if a Quit event has been detected

 bool for checking if a Quit event has been detected

Uint8 * mKeyIsPressed
 Pointer to array of Keys.

 Pointer to array of Keys.

bool mKeyPress [SDLK_LAST]
 Array of keys, used by KeyPress.

 Array of keys, used by KeyPress.

int mMouseX
 X Position of Mouse.

 X Position of Mouse.

int mMouseY
 Y Position of Mouse.

 Y Position of Mouse.

Uint8 mMouseB
 Mouse Button Information.

 Mouse Button Information.

-queue< ZErrormErrorQueue
 Stack of Errors which have occured.

mErrorQueue
 Stack of Errors which have occured.

ZError mCurError
 Current error.

 Current error.

bool mLogAllErrors
 Option controlling how logfile is used.

 Option controlling how logfile is used.

-FILE * mErrlog
 C-style FILE* for error logging.

-int mRate
 Sound Bitrate.

-bool mStereo
 Stereo setting of Sound Subsystem.

mErrlog
 C-style FILE* for error logging.

+SDL_EventFilter mEventFilter
 Event filter, for users who need to process their own events.

+ZRandGen mRandGen
 Random Generator for general use.

+int mRate
 Sound Bitrate.

+bool mStereo
 Stereo setting of Sound Subsystem.


Static Private Attributes

ZEngine * sInstance = NULL
 Static Pointer to Instance of ZEngine for Singleton.

 Static Pointer to Instance of ZEngine for Singleton.


Constructor & Destructor Documentation

@@ -237,8 +247,8 @@ ZEngine *  ZE::ZEngine::ZEngine (  -   - )  + +  )  [private] @@ -266,8 +276,8 @@ Initialize ZEngine values to de ZEngine * ZE::ZEngine::GetInstance (  -   - )  + +  )  [static] @@ -295,8 +305,8 @@ Static function, returns pointer to instance of void ZE::ZEngine::ReleaseInstance (  -   - )  + +  )  [static] @@ -315,35 +325,6 @@ Static function, returns pointer to instance of

- - - - -
- - - - - - - - - -
string ZE::ZEngine::GetVersion   [static]
-
- - - - - -
-   - - -

-Get Version Number of ZEngine. (Major.Minor.Extension#)

Returns:
string containing version number
-

@@ -353,25 +334,25 @@ Get Version Number of ZEngine. - + - + - + - + @@ -391,8 +372,7 @@ Get Version Number of ZEngine.
void ZE::ZEngine::SetupDisplay int   width, width,
int   height, height,
int   bpp, bpp,
bool   fullscreen fullscreen

-Sets display parameters to specified parameters. (called before CreateDisplay) -

+Sets display parameters to specified parameters. (called before CreateDisplay)

Parameters:
@@ -413,13 +393,13 @@ Sets display parameters to specified parameters. (called before CreateDisplay) - + - + @@ -439,8 +419,7 @@ Sets display parameters to specified parameters. (called before CreateDisplay) - - + + @@ -140,8 +140,8 @@ Default Constructor, initializes variables. - - + + @@ -173,9 +173,9 @@ Creates one ZImage using another - - - + + + @@ -208,8 +208,8 @@ Constructor is same as calling ZI - - + + @@ -242,31 +242,31 @@ Constructor is same as calling Z - + - + - + - + - + @@ -286,8 +286,7 @@ Constructor is same as calling Z @@ -1100,8 +1124,8 @@ Image is rotated about it's own center by specified angle, then drawn to screen. - - + + @@ -1129,8 +1153,8 @@ Check if surface is a valid GL texture. (does not detect surface loss)
- - + + @@ -1158,8 +1182,8 @@ Check if surface is a valid GL texture. (does not detect surface loss)
- - + + @@ -1187,8 +1211,8 @@ Get Current Width of Image.
Returns:
Image Width.
- - + + @@ -1216,8 +1240,8 @@ Get Current Height of Image.
Returns:
Image Heigh
- - + + @@ -1240,9 +1264,9 @@ Get current alpha value of image.
Since:
0.8.2
The documentation for this class was generated from the following files:
-
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZMusic-members.html b/doc/html/classZE_1_1ZMusic-members.html index fb88a82..d36684b 100644 --- a/doc/html/classZE_1_1ZMusic-members.html +++ b/doc/html/classZE_1_1ZMusic-members.html @@ -3,7 +3,7 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZMusic Member List

This is the complete list of members for ZE::ZMusic, including all inherited members.
width Desired width of screen or window.
void ZE::ZEngine::SetupSound int   rate, rate,
bool   stereo stereo

-Set sound settings to specified parameters. (If not called before CreateDisplay rate will default to 22050+mono) -

+Set sound settings to specified parameters. (If not called before CreateDisplay rate will default to 22050+mono)

Parameters:
@@ -458,14 +437,14 @@ Set sound settings to specified parameters. (If not called before CreateDisplay - - + + - - + + @@ -485,8 +464,7 @@ Set sound settings to specified parameters. (If not called before CreateDisplay
rate Desired sound bitrate.
bool ZE::ZEngine::CreateDisplay string   title, std::string  title,
string   icon = ""std::string  icon = ""

-SetupDisplay and SetupSound should be called prior to this to change settings, settings from those do not go into effect until this function is called. Specify no icon file to use default icon for OS. Returns result of setting up ZEngine, and logs error if false is returned (Trys not to fail + returns bool in versions >= 0.8.2). -

+SetupDisplay and SetupSound should be called prior to this to change settings, settings from those do not go into effect until this function is called. Specify no icon file to use default icon for OS. Returns result of setting up ZEngine, and logs error if false is returned (Trys not to fail + returns bool in versions >= 0.8.2).

Parameters:
@@ -505,8 +483,8 @@ SetupDisplay and SetupSound should be called prior to this to change settings, s - - + + @@ -533,8 +511,8 @@ Shut down SDL (and SDL_ttf,SDL_mixer if necessary) You shouldn't ever have to ca - - + + @@ -562,8 +540,8 @@ Safely toggles fullscreen/windowed mode, generally toggling modes will bring the - - + + @@ -592,8 +570,8 @@ Checks if ZEngine display has b - - + + @@ -621,8 +599,8 @@ Get pointer to screen SDL_Surface, allowing direct screen manipulation using SDL - - + + @@ -650,25 +628,25 @@ Swap OpenGL buffers, and update screen, if a desired framerate is set it will de - + - + - + - + @@ -707,8 +685,8 @@ Clears a rectangle on screen to a color, defaults to solid black.
- - + + @@ -736,8 +714,8 @@ Sets the OpenGL scaled orthographic mode, called once at beginning, no need to c - - + + @@ -769,8 +747,8 @@ Freeze everything for given number of milliseconds.
Parameter
- - + + @@ -798,8 +776,8 @@ Get active time since ZEngine i - - + + @@ -826,8 +804,8 @@ Pause ZEngine timer and all - - + + @@ -854,8 +832,8 @@ Unpause ZEngine timer and all < - - + + @@ -883,8 +861,8 @@ Get double that describes the time passed between screen updates. (should be use - - + + @@ -914,8 +892,8 @@ Get double representing current (approximate) FPS. This value is always the same - - + + @@ -948,8 +926,8 @@ Sets desired framerate, if engine gets ahead of desired rate during a frame it w - - + + @@ -978,8 +956,8 @@ Get desired framerate set by SetDesiredFramerate.
Since:<
- - + + @@ -1007,8 +985,8 @@ Find out if engine timer is paused.
Returns:
Paus
- - + + @@ -1036,8 +1014,8 @@ Function to find out if application currently has focus.
Retu
- - + + @@ -1064,8 +1042,8 @@ Tell the engine that it should behave as if a Quit was requested, does not call - - + + @@ -1094,8 +1072,8 @@ Function to find out if user or operating system has requested program cease exe - - + + @@ -1127,8 +1105,8 @@ Function to find out if user or operating system has requested program cease exe - - + + @@ -1157,8 +1135,8 @@ Function that is good to call every frame to check if images should be reloaded, - - + + @@ -1174,8 +1152,7 @@ Function that is good to call every frame to check if images should be reloaded, @@ -391,19 +398,19 @@ Set rColor of Text Output.
Parameters:
- + - + - + @@ -442,19 +449,19 @@ Set rColor of Background for Shaded Draw.
Parameters:
void ZE::ZFont::SetStyle
- + - + - + @@ -493,8 +500,8 @@ Set display format (bold, italic, underline).
Parameters:
- - + + @@ -526,8 +533,8 @@ Release and Reopen font in new size.
Parameters:
- - + + @@ -555,8 +562,8 @@ Check if file is loaded and pointer to data is non-NULL.
Retu
- - + + @@ -584,8 +591,8 @@ Check if font output is currently bold.
Returns:
- - + + @@ -613,8 +620,8 @@ Check if font output is currently italic.
Returns:
- - + + @@ -642,8 +649,8 @@ Check if font output is currently underline.
Returns:
- - + + @@ -671,8 +678,8 @@ Check font height as reported by SDL_ttf.
Returns:
- - + + @@ -700,9 +707,9 @@ Check font line skip as reported by SDL_ttf.
Returns:
- - - + + + @@ -735,9 +742,9 @@ Get Width of String in Current Font in Pixels.
Parameters:
- - - + + + @@ -764,9 +771,9 @@ Get Height of String in Current Font in Pixels.
Parameters:
The documentation for this class was generated from the following file: -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZImage-members.html b/doc/html/classZE_1_1ZImage-members.html index 9339dfd..119c6de 100644 --- a/doc/html/classZE_1_1ZImage-members.html +++ b/doc/html/classZE_1_1ZImage-members.html @@ -3,21 +3,21 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZImage Member List

This is the complete list of members for ZE::ZImage, including all inherited members.
title Window Title.
void ZE::ZEngine::CloseDisplay    ) 
void ZE::ZEngine::ToggleFullscreen    ) 
bool ZE::ZEngine::Initialized    ) 
SDL_Surface * ZE::ZEngine::Display    ) 
void ZE::ZEngine::Update    ) 
void ZE::ZEngine::Clear float   red = 0.0f, red = 0.0f,
float   green = 0.0f, green = 0.0f,
float   blue = 0.0f, blue = 0.0f,
float   alpha = 1.0f alpha = 1.0f
void ZE::ZEngine::SetGL2D    ) 
void ZE::ZEngine::Delay Uint32   milliseconds milliseconds  ) 
Uint32 ZE::ZEngine::GetTime    ) 
void ZE::ZEngine::PauseTimer    ) 
void ZE::ZEngine::UnpauseTimer    ) 
double ZE::ZEngine::GetFrameTime    ) 
double ZE::ZEngine::GetFramerate    ) 
void ZE::ZEngine::SetDesiredFramerate Uint8   rate rate  ) 
Uint8 ZE::ZEngine::GetDesiredFramerate    ) 
bool ZE::ZEngine::IsPaused    ) 
bool ZE::ZEngine::IsActive    ) 
void ZE::ZEngine::RequestQuit    ) 
bool ZE::ZEngine::QuitRequested    ) 
void ZE::ZEngine::SetReloadNeed bool   state state  ) 
bool ZE::ZEngine::ImagesNeedReload    ) 
void ZE::ZEngine::SetKeyRepeatRate int   rate rate  ) 

-Calls SDL_EnableKeyRepeat(rate,rate) because usually this is the desired movement style for games. 0 to disable. If 2 different values are needed SDL_EnableKeyRepeat can be called separately: http://sdldoc.csn.ul.ie/sdlenablekeyrepeat.php. -

+Calls SDL_EnableKeyRepeat(rate,rate) because usually this is the desired movement style for games. 0 to disable. If 2 different values are needed SDL_EnableKeyRepeat can be called separately: http://sdldoc.csn.ul.ie/sdlenablekeyrepeat.php.

Parameters:
@@ -1193,8 +1170,8 @@ Calls SDL_EnableKeyRepeat(rate,rate) because usually this is the desired movemen - - + + @@ -1228,8 +1205,8 @@ Function returns true/false based on if key is currently pressed or not.
bool ZE::ZEngine::KeyPress
- - + + @@ -1262,8 +1239,8 @@ Function returns true/false based on if key has been pressed since last check. < - - + + @@ -1290,8 +1267,8 @@ Hide the system mouse cursor. - - + + @@ -1318,8 +1295,8 @@ Show the system mouse cursor. - - + + @@ -1347,8 +1324,8 @@ Find X Position of Mouse on screen.
Returns:
X Po
- - + + @@ -1376,8 +1353,8 @@ Find Y Position of Mouse on screen.
Returns:
Y Po
- - + + @@ -1405,8 +1382,8 @@ Get pressed status of left button of mouse.
Returns:
- - + + @@ -1435,8 +1412,8 @@ Get pressed status of right button of mouse.
Returns:
bool ZE::ZEngine::MouseInRect
- - + + @@ -1469,8 +1446,8 @@ Return status of mouse in current rectangle (used for buttons)
<
- - + + @@ -1498,8 +1475,8 @@ Cycle through event queue, processing events, updating all Event Related variabl - - + + @@ -1515,7 +1492,7 @@ Cycle through event queue, processing events, updating all Event Related variabl
rate Desired key repeat rate.
bool ZE::ZEngine::KeyIsPressed SDLKey   key key  ) 
SDLKey   key key  ) 
void ZE::ZEngine::HideCursor    ) 
void ZE::ZEngine::ShowCursor    ) 
int ZE::ZEngine::MouseX    ) 
int ZE::ZEngine::MouseY    ) 
bool ZE::ZEngine::LButtonPressed    ) 
bool ZE::ZEngine::RButtonPressed    ) 
SDL_Rect *   rect rect  ) 
void ZE::ZEngine::CheckEvents    ) 
void ZE::ZEngine::SetEventFilter SDL_EventFilter   filter filter  ) 

-This is only needed when you need tight control with ZEngine. The parameter is simply passed to SDL_SetEventFilter, generally only those with a good amount of SDL experience should use this function or ZEngine's internal message state could be corrupted. For more information on SDL_SetEventFilter see http://sdldoc.csn.ul.ie/sdlseteventfilter.php.

Since:
0.8.2
+This is only needed when you need tight control with ZEngine. The parameter processed as if it were passed to SDL_SetEventFilter, generally only those with a good amount of SDL experience should use this function or ZEngine's internal message state could be corrupted. For more information on SDL_SetEventFilter see http://sdldoc.csn.ul.ie/sdlseteventfilter.php. (FYI: The parameter is now actually processed in check events, not passed to the SDL function, this is done because of problems with singletons and event threading.)
Since:
0.8.2
Parameters:
@@ -1524,74 +1501,6 @@ This is only needed when you need tight control with

-

filter An SDL_EventFilter (A function that takes a const SDL_Event* and returns 0 if the event should be removed from the event queue and 1 otherwise.)
- - - -
- - - - - - - - - - -
void ZE::ZEngine::InitPhysFS string   argv
-
- - - - - -
-   - - -

-Sets up PhysicsFS, must be called when application is started.

Parameters:
- - -
argv argv[0] from application's main.
-
-
-

- - - - -
- - - - - - - - - - -
void ZE::ZEngine::AddPhysFSDir string   dir
-
- - - - - -
-   - - -

-Add Directory to PhysicsFS search path, the path it looks in for files when attempting to load.

Parameters:
- - -
dir Directory to add to search path.
-
-

@@ -1601,8 +1510,8 @@ Add Directory to PhysicsFS search path, the path it looks in for files when atte - - + + @@ -1627,7 +1536,7 @@ Writes error to current error file.
Since:
0.8.2
void ZE::ZEngine::LogError ZError   error error  )  [private]
-

+

- + - - + + @@ -1672,7 +1581,7 @@ Change the way errors are logged and the file they are logged to, before calling
@@ -1636,13 +1545,13 @@ Writes error to current error file.
Since:
0.8.2
void ZE::ZEngine::SetErrorLog bool   logAll, logAll,
string   logFile = ""std::string  logFile = ""
-

+

- + - - + + - - + + - + @@ -1723,7 +1632,7 @@ Adds the error to the the error queue, and sets the current error to this error.
Parameters:
@@ -1681,25 +1590,25 @@ Change the way errors are logged and the file they are logged to, before calling void ZE::ZEngine::ReportError ZErrorCode   code, code,
string   desc = "", std::string  desc = "",
string   file = "", std::string  file = "",
unsigned int   line = 0 line = 0
- +
code ZErrorCode of error.
desc Optional string describing error.
desc Optional std::string describing error.
file Optional argument specifying the file the error occured in.
line Optional argument specifying the line the error occured on.
@@ -1731,7 +1640,7 @@ Adds the error to the the error queue, and sets the current error to this error.

-

+

- - + + @@ -1761,7 +1670,7 @@ Get the last error reported.
Since:
0.8.2
@@ -1739,8 +1648,8 @@ Adds the error to the the error queue, and sets the current error to this error.
ZErrorCode ZE::ZEngine::GetLastError    ) 
-

+

- - - + + + @@ -1787,7 +1696,7 @@ Get the last error reported.
Since:
0.8.2

-Write a string to the log, allowing special usage of the error log.

Since:
0.8.2
+Write a std::string to the log, allowing special usage of the error log.
Since:
0.8.2
Parameters:
@@ -1769,9 +1678,9 @@ Get the last error reported.
Since:
0.8.2
void ZE::ZEngine::WriteLog string   str std::string  str  ) 
@@ -1796,7 +1705,7 @@ Write a string to the log, allowing special usage of the error log.
str String to write to log file.
-

+

- - + + @@ -1825,17 +1734,17 @@ Write the error stack to the error log.
Since:
0.
@@ -1804,8 +1713,8 @@ Write a string to the log, allowing special usage of the error log.
void ZE::ZEngine::FlushErrors    ) 
-

+

- - + + @@ -106,14 +106,14 @@ Default Constructor, does nothing. - - + + - + @@ -150,8 +150,8 @@ Constructor simply calls ZFont::Op - - + + @@ -179,14 +179,14 @@ Destructor calls ZFont::Release()< - - + + - + @@ -223,8 +223,8 @@ Opens a font given a filename and a point size.
Parameters:
- - + + @@ -251,14 +251,14 @@ Release memory held by font. - - + + - + @@ -295,14 +295,14 @@ Draw to a surface in specified color and associate that surface with a - - + + - + @@ -322,7 +322,7 @@ Draw to a surface in specified color and associate that surface with a

-Draw to a surface a string with a background of rBGColor and lettering in the normal color and associate that surface with a ZImage.

Parameters:
+Draw to a surface a std::string with a background of rBGColor and lettering in the normal color and associate that surface with a ZImage.
Parameters:
- + - - + + @@ -1851,8 +1760,7 @@ Write the error stack to the error log.
Since:
0.
void ZE::ZEngine::SeedRandom void ZE::ZEngine::SeedRandGen unsigned long   seed seed  ) 

-Reseed Mersenne Twister (MT19937) random number generator. NOTE: Generator is initialized upon creation of ZEngine using time. (Faster and more random than rand(), see src/external/mt19937ar.c)

Since:
0.8.3
-
Parameters:
+Reseed Mersenne Twister random number generator. NOTE: Generator is initialized upon creation of object using time.
Parameters:
seed Seed for random sequence.
@@ -1860,17 +1768,17 @@ Reseed Mersenne Twister (MT19937) random number generator. NOTE: Generator is in
-

+

- + - - + + - - + + - + @@ -107,34 +103,6 @@ Make new ZError object, by defau
- + - - - + + + @@ -1886,8 +1794,42 @@ Reseed Mersenne Twister (MT19937) random number generator. NOTE: Generator is in + +
unsigned long ZE::ZEngine::RandLong unsigned int ZE::ZEngine::Rand unsigned long   max unsigned int  max  ) 

-Obtain random long l where 0 <= l < max.

Since:
0.8.3
-
Parameters:
+Obtain random int l where 0 <= l < max.
Parameters:
+ + +
max Limit for random number.
+
+
Returns:
Random unsigned int.
+
+

+ + + + +
+ + + + + + + + + + +
unsigned long ZE::ZEngine::Rand unsigned long  max  ) 
+
+ + + +
+   + + +

+Obtain random long l where 0 <= l < max.

Parameters:
max Limit for random number.
@@ -1896,22 +1838,22 @@ Obtain random long l where 0 <= l < max.
Since:
-

+

+ +
- + - - + + - - + + @@ -1931,8 +1873,52 @@ Obtain random long l where 0 <= l < max.
Since:

-Obtain random long l where min <= l <= max.

Since:
0.8.3
-
Parameters:
+Obtain random int l where min <= l <= max.
Parameters:
+
long ZE::ZEngine::RandLong int ZE::ZEngine::Rand long   min, int  min,
long   maxint  max
+ + +
min Lower limit for random number.
max Upper limit for random number.
+ +
Returns:
Random int.
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
long ZE::ZEngine::Rand long  min,
long  max
+
+ + + + +
+   + + +

+Obtain random long l where min <= l <= max.

Parameters:
@@ -1942,52 +1928,22 @@ Obtain random long l where min <= l <= max.
Since:<
min Lower limit for random number.
max Upper limit for random number.
-

+

- -
- + - - - - - -
double ZE::ZEngine::RandDouble float ZE::ZEngine::Rand  
-
- - - - - -
-   - - -

-Obtain random double d where 0 <= d < 1.

Since:
0.8.3
-
Returns:
Random double [0,1).
-
-

- - -
- - - - - - + + - - + + @@ -2007,18 +1963,91 @@ Obtain random double d where 0 <= d < 1.
Since:

-Obtain random double d where min <= d <= max.

Since:
0.8.3
-
Parameters:
+Obtain random float l where min <= l <= max.
Parameters:
double ZE::ZEngine::RandDouble double   min, float  min,
double   maxfloat  max
min Lower limit for random number.
max Upper limit for random number.
-
Returns:
Random double [min,max].
+
Returns:
Random float.
-

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
double ZE::ZEngine::Rand double  min,
double  max
+
+ + + + + +
+   + + +

+Obtain random double l where min <= l <= max.

Parameters:
+ + + +
min Lower limit for random number.
max Upper limit for random number.
+
+
Returns:
Random double.
+
+

+ + + + +
+ + + + + + + + + +
double ZE::ZEngine::RandDouble  ) 
+
+ + + + + +
+   + + +

+Obtain random double d where 0 <= d < 1.

Returns:
Random double [0,1).
+
+

- - - + + + @@ -2053,7 +2082,7 @@ Loads an Image to an ImageData class which keeps vital information on the Image.
@@ -2026,9 +2055,9 @@ Obtain random double d where min <= d <= max.
Since:
SDL_Surface * ZE::ZEngine::LoadImage string   filename std::string  filename  ) 
-

+

- - - + + + @@ -2088,7 +2117,7 @@ Loads a Sound to a SoundData class which keeps vital information on the Sound
@@ -2061,9 +2090,9 @@ Loads an Image to an ImageData class which keeps vital information on the Image.
Mix_Chunk* ZE::ZEngine::LoadSound string   filename std::string  filename  ) 
-

+

- - - + + + @@ -2123,7 +2152,7 @@ Loads a Music Clip to a MusicData class which keeps vital information on the Mus
@@ -2096,9 +2125,9 @@ Loads a Sound to a SoundData class which keeps vital information on the Sound Mix_Music* ZE::ZEngine::LoadMusic string   filename std::string  filename  ) 
-

+

- - + + - + @@ -2168,7 +2197,7 @@ Loads a Font to a FontData class which keeps vital information on the Font
@@ -2131,14 +2160,14 @@ Loads a Music Clip to a MusicData class which keeps vital information on the Mus
TTF_Font* ZE::ZEngine::LoadFont string   filename, std::string  filename,
int   size size
-

+

- - + + @@ -2197,7 +2226,7 @@ Get Width of Window or Fullscreen mode.
Returns:
@@ -2176,8 +2205,8 @@ Loads a Font to a FontData class which keeps vital information on the Font
int ZE::ZEngine::Width    ) 
-

+

- - + + @@ -2226,7 +2255,7 @@ Get Height of Window or Fullscreen mode.
Returns:
@@ -2205,8 +2234,8 @@ Get Width of Window or Fullscreen mode.
Returns:
int ZE::ZEngine::Height    ) 
-

+

- - + + @@ -2255,7 +2284,7 @@ Get BPP of Window or Fullscreen mode.
Returns:
BP
@@ -2234,8 +2263,8 @@ Get Height of Window or Fullscreen mode.
Returns:
int ZE::ZEngine::BPP    ) 
-

+

- - + + @@ -2286,9 +2315,9 @@ Get Fullscreen setting of Display.
Returns:
True
@@ -2263,8 +2292,8 @@ Get BPP of Window or Fullscreen mode.
Returns:
BP
bool ZE::ZEngine::IsFullscreen    ) 


The documentation for this class was generated from the following files: -
Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3
diff --git a/doc/html/classZE_1_1ZError-members.html b/doc/html/classZE_1_1ZError-members.html index 72679ff..f222e13 100755 --- a/doc/html/classZE_1_1ZError-members.html +++ b/doc/html/classZE_1_1ZError-members.html @@ -3,25 +3,23 @@ Member List - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZError Member List

This is the complete list of members for ZE::ZError, including all inherited members. - - + + - - + - - -
Code() constZE::ZError
Create(ZErrorCode code, string desc="", string file="", int line=0)ZE::ZError
Code() constZE::ZError
Create(ZErrorCode code, std::string desc="", std::string file="", int line=0)ZE::ZError
CreateStringTable()ZE::ZError [static]
DestroyStringTable()ZE::ZError [static]
LogString() constZE::ZError
LogString() constZE::ZError
rCodeZE::ZError [protected]
rDescriptionZE::ZError [protected]
rFilenameZE::ZError [protected]
rLineZE::ZError [protected]
sErrorDescZE::ZError [protected, static]
ZError(ZErrorCode code=ZERR_NONE, string desc="", string file="", int line=0)ZE::ZError
~ZError()ZE::ZError [virtual]

Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
ZError(ZErrorCode code=ZERR_NONE, std::string desc="", std::string file="", int line=0)ZE::ZError


Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
+width=110 height=53>1.3 diff --git a/doc/html/classZE_1_1ZError.html b/doc/html/classZE_1_1ZError.html index aead1ef..bf7fd21 100755 --- a/doc/html/classZE_1_1ZError.html +++ b/doc/html/classZE_1_1ZError.html @@ -3,7 +3,7 @@ ZE::ZError class Reference - +
Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

ZE::ZError Class Reference

#include <ZE_ZError.h> @@ -14,39 +14,35 @@

- - - - - - - - - - - - + + + + + + + + + + - - - + - + - +std::string  + - +std::string  + - + - +std::string  +

Public Methods

 ZError (ZErrorCode code=ZERR_NONE, string desc="", string file="", int line=0)
 Default constructor for ZError.

virtual ~ZError ()
 Virtual Destructor.

void Create (ZErrorCode code, string desc="", string file="", int line=0)
 Set members of error object.

ZErrorCode Code () const
 Get ZErrorCode of error.

string LogString () const
 Get formatted string for log file.


Static Public Methods


Public Member Functions

 ZError (ZErrorCode code=ZERR_NONE, std::string desc="", std::string file="", int line=0)
 Default constructor for ZError.

void Create (ZErrorCode code, std::string desc="", std::string file="", int line=0)
 Set members of error object.

ZErrorCode Code () const
 Get ZErrorCode of error.

std::string LogString () const
 Get formatted string for log file.


Static Public Member Functions

void CreateStringTable ()
 Construct string table for error strings.

void DestroyStringTable ()
 Destroy string table of error strings.

 Construct string table for error strings.


Protected Attributes

ZErrorCode rCode
 Error ID.

 Error ID.

-string rDescription
 Error Description.

rDescription
 Error Description.

-string rFilename
 File which error occured in.

rFilename
 File which error occured in.

unsigned int rLine
 Line which error occured on.

 Line which error occured on.


Static Protected Attributes

-string * sErrorDesc = NULL
 Static Array of Error Identifiers.

sErrorDesc [ZERR_LAST]
 Static Array of Error Identifiers.


Constructor & Destructor Documentation

@@ -58,25 +54,25 @@ string * 

ZE::ZError::ZError ZErrorCode   code = ZERR_NONE, code = ZERR_NONE,
string   desc = "", std::string  desc = "",
string   file = "", std::string  file = "",
int   line = 0 line = 0
-

- - - - -
- - - - - - - - - -
ZE::ZError::~ZError   [virtual]
-
- - - - - -
-   - - -

-Virtual destructor making future inheritance safe.


Member Function Documentation

@@ -144,8 +112,8 @@ Virtual destructor making future inheritance safe. - - + + @@ -164,35 +132,7 @@ Virtual destructor making future inheritance safe. Constructs a string table for errors, enabling ZEngine to properly delete the table on exit.
void ZE::ZError::CreateStringTable    )  [static]
-

- - - - -
- - - - - - - - - -
void ZE::ZError::DestroyStringTable   [static]
-
- - - - - -
-   - - -

-Properly delete the string table, freeing all memory used by the strings.

-

+

- + - - + + - - + + - + @@ -250,7 +190,7 @@ Set new values in ZError object.
@@ -201,25 +141,25 @@ Properly delete the string table, freeing all memory used by the strings. void ZE::ZError::Create ZErrorCode   code, code,
string   desc = "", std::string  desc = "",
string   file = "", std::string  file = "",
int   line = 0 line = 0
-

+

- - + + @@ -279,16 +219,16 @@ Access ZErrorCode of the ZError
@@ -258,8 +198,8 @@ Set new values in ZError object.
ZErrorCode ZE::ZError::Code    )  const
-

+

- + - - + + @@ -309,9 +249,9 @@ Return the string to be written to the logfile. Called by ZE_ZError.h
  • /src/ZE_ZError.cpp -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZFont-members.html b/doc/html/classZE_1_1ZFont-members.html index f7cfc2f..2028963 100644 --- a/doc/html/classZE_1_1ZFont-members.html +++ b/doc/html/classZE_1_1ZFont-members.html @@ -3,19 +3,19 @@ Member List - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZFont Member List

    This is the complete list of members for ZE::ZFont, including all inherited members.
  • string ZE::ZError::LogString std::string ZE::ZError::LogString    )  const
    - - + + - + @@ -24,16 +24,16 @@ - + - - + + - + -
    DrawShadedText(string text, ZImage &image) constZE::ZFont
    DrawText(string text, ZImage &image) constZE::ZFont
    DrawShadedText(std::string text, ZImage &image) constZE::ZFont
    DrawText(std::string text, ZImage &image) constZE::ZFont
    Height() constZE::ZFont
    IsBold() constZE::ZFont
    IsItalic() constZE::ZFont
    IsLoaded() constZE::ZFont
    IsUnderlined() constZE::ZFont
    LineSkip() constZE::ZFont
    Open(string filename, int size)ZE::ZFont
    Open(std::string filename, int size)ZE::ZFont
    rBGColorZE::ZFont [protected]
    rColorZE::ZFont [protected]
    Release()ZE::ZFont
    rFilenameZE::ZFont [protected]
    rFontZE::ZFont [protected]
    SetBGColor(Uint8 r, Uint8 g, Uint8 b)ZE::ZFont
    SetColor(Uint8 r, Uint8 g, Uint8 b)ZE::ZFont
    SetColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a=255)ZE::ZFont
    SetStyle(bool bold, bool italic, bool underline)ZE::ZFont
    StringHeight(string text) constZE::ZFont
    StringWidth(string text) constZE::ZFont
    StringHeight(std::string text) constZE::ZFont
    StringWidth(std::string text) constZE::ZFont
    ZFont()ZE::ZFont
    ZFont(string filename, int size)ZE::ZFont
    ZFont(std::string filename, int size)ZE::ZFont
    ~ZFont()ZE::ZFont [virtual]

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +


    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3 diff --git a/doc/html/classZE_1_1ZFont.html b/doc/html/classZE_1_1ZFont.html index fe40458..8b52a82 100644 --- a/doc/html/classZE_1_1ZFont.html +++ b/doc/html/classZE_1_1ZFont.html @@ -3,71 +3,71 @@ ZE::ZFont class Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZFont Class Reference

    #include <ZE_ZFont.h>

    List of all members.


    Detailed Description

    -ZFont font container class, class wraps common features of SDL_TTF. Inherited from ZObject. +ZFont font container class, class wraps common features of SDL_TTF.

    - + - - - + + + - - - + + + - - - - - - - + + + + + + + - + - + - + - + - + - + - + - + - - - - - + + + + + - + - + - +std::string  + - + - +

    Public Methods


    Public Member Functions

     ZFont ()
     Default Constructor.

     ZFont (string filename, int size)
     Constructor that opens a font with a certain size.

     Default Constructor.

     ZFont (std::string filename, int size)
     Constructor that opens a font with a certain size.

    virtual ~ZFont ()
     Destructor, frees memory.

    void Open (string filename, int size)
     Opens a font with a certain size.

     Destructor, frees memory.

    void Open (std::string filename, int size)
     Opens a font with a certain size.

    void Release ()
     Release font.

    void DrawText (string text, ZImage &image) const
     Draws a string in a color to a ZImage.

    void DrawShadedText (string text, ZImage &image) const
     Draws a string with a colored background to a ZImage.

    void SetColor (Uint8 r, Uint8 g, Uint8 b)
     Set Text rColor.

     Release font.

    void DrawText (std::string text, ZImage &image) const
     Draws a std::string in a color to a ZImage.

    void DrawShadedText (std::string text, ZImage &image) const
     Draws a std::string with a colored background to a ZImage.

    void SetColor (Uint8 r, Uint8 g, Uint8 b, Uint8 a=255)
     Set Text rColor.

    void SetBGColor (Uint8 r, Uint8 g, Uint8 b)
     Set Background rColor.

     Set Background rColor.

    void SetStyle (bool bold, bool italic, bool underline)
     Set display format.

     Set display format.

    void Resize (int size)
     Resize Font.

     Resize Font.

    bool IsLoaded () const
     Check if file is loaded.

     Check if file is loaded.

    bool IsBold () const
     Get Bold Setting.

     Get Bold Setting.

    bool IsItalic () const
     Get Italic Setting.

     Get Italic Setting.

    bool IsUnderlined () const
     Get Underlined Setting.

     Get Underlined Setting.

    int Height () const
     Get Height of Font.

     Get Height of Font.

    int LineSkip () const
     Get Line Skip for Font.

    int StringWidth (string text) const
     Get String Width.

    int StringHeight (string text) const
     Get String Height.

     Get Line Skip for Font.

    int StringWidth (std::string text) const
     Get String Width.

    int StringHeight (std::string text) const
     Get String Height.


    Protected Attributes

    ZEnginerEngine
     Pointer to ZEngine Object.

     Pointer to ZEngine Object.

    TTF_Font * rFont
     Pointer to font data.

     Pointer to font data.

    -string rFilename
     Filename, for resizing.

    rFilename
     Filename, for resizing.

    SDL_Color rColor
     SDL_Color for current text color.

     SDL_Color for current text color.

    SDL_Color rBGColor
     SDL_Color for background color to be used in shaded draws.

     SDL_Color for background color to be used in shaded draws.


    Constructor & Destructor Documentation

    @@ -78,8 +78,8 @@ SDL_Color 

    ZE::ZFont::ZFont    ) 
    ZE::ZFont::ZFont string   filename, std::string  filename,
    int   size size
    virtual ZE::ZFont::~ZFont    )  [virtual]
    void ZE::ZFont::Open string   filename, std::string  filename,
    int   size size
    void ZE::ZFont::Release    ) 
    void ZE::ZFont::DrawText string   text, std::string  text,
    ZImage  image image
    void ZE::ZFont::DrawShadedText string   text, std::string  text,
    ZImage  image image
    @@ -340,19 +340,25 @@ Draw to a surface a string with a background of rBGColor and lettering in the no - + - + - + + + + + + + @@ -377,6 +383,7 @@ Set rColor of Text Output.
    Parameters:
    +
    text String to write.
    image ZImage to draw to.
    void ZE::ZFont::SetColor Uint8   r, r,
    Uint8   g, g,
    Uint8   b b,
    Uint8  a = 255
    r Red component of color (0-255).
    g Green component of color (0-255).
    b Blue component of color (0-255).
    a Alpha component of drawn font, including background if present. (0-255) (Optional, defaults to 255.)

    void ZE::ZFont::SetBGColor Uint8   r, r,
    Uint8   g, g,
    Uint8   b b
    bool   bold, bold,
    bool   italic, italic,
    bool   underline underline
    void ZE::ZFont::Resize int   size size  ) 
    bool ZE::ZFont::IsLoaded    )  const
    bool ZE::ZFont::IsBold    )  const
    bool ZE::ZFont::IsItalic    )  const
    bool ZE::ZFont::IsUnderlined    )  const
    int ZE::ZFont::Height    )  const
    int ZE::ZFont::LineSkip    )  const
    int ZE::ZFont::StringWidth string   text std::string  text  )  const
    int ZE::ZFont::StringHeight string   text std::string  text  )  const
    - - - - + + + + - + @@ -40,14 +40,14 @@ - + -
    Alpha() constZE::ZImage
    Attach(SDL_Surface *surface)ZE::ZImage
    Bind() constZE::ZImage
    Draw(int x, int y) constZE::ZImage
    Draw(float x, float y) constZE::ZImage
    DrawRotated(int x, int y, float angle) constZE::ZImage
    DrawRotated(float x, float y, float angle) constZE::ZImage
    Draw(int x, int y, Uint8 zIndex=0) constZE::ZImage
    Draw(float x, float y, Uint8 zIndex=0) constZE::ZImage
    DrawRotated(int x, int y, float angle, Uint8 zIndex=0) constZE::ZImage
    DrawRotated(float x, float y, float angle, Uint8 zIndex=0) constZE::ZImage
    Flip(bool horizontal, bool vertical)ZE::ZImage
    Height() constZE::ZImage
    IsLoaded() constZE::ZImage
    Open(string filename)ZE::ZImage
    Open(std::string filename)ZE::ZImage
    OpenFromImage(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)ZE::ZImage
    OpenFromImage(const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)ZE::ZImage
    rAlphaZE::ZImage [protected]
    Width() constZE::ZImage
    ZImage()ZE::ZImage
    ZImage(const ZImage &rhs)ZE::ZImage
    ZImage(string filename)ZE::ZImage
    ZImage(std::string filename)ZE::ZImage
    ZImage(SDL_Surface *surface)ZE::ZImage
    ZImage(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)ZE::ZImage
    ZImage(const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)ZE::ZImage
    ~ZImage()ZE::ZImage [virtual]

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +

    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3 diff --git a/doc/html/classZE_1_1ZImage.html b/doc/html/classZE_1_1ZImage.html index e44e88c..a504e55 100644 --- a/doc/html/classZE_1_1ZImage.html +++ b/doc/html/classZE_1_1ZImage.html @@ -3,7 +3,7 @@ ZE::ZImage class Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZImage Class Reference

    #include <ZE_ZImage.h> @@ -13,94 +13,94 @@

    - + - + - - - + + + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Public Methods


    Public Member Functions

     ZImage ()
     Default Constructor.

     Default Constructor.

     ZImage (const ZImage &rhs)
     Copy constructor for ZImage.

     ZImage (string filename)
     Constructor to Construct from File.

     Copy constructor for ZImage.

     ZImage (std::string filename)
     Constructor to Construct from File.

     ZImage (SDL_Surface *surface)
     Constructor to Construct from SDL_Surface*.

     Constructor to Construct from SDL_Surface*.

     ZImage (SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
     Constructor to Construct from part of an SDL_Surface*.

     Constructor to Construct from part of an SDL_Surface*.

     ZImage (const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
     Constructor to Construct from part of another ZImage.

     Constructor to Construct from part of another ZImage.

    virtual ~ZImage ()
     Destructor, frees memory.

    void Open (string filename)
     Opens a file.

     Destructor, frees memory.

    void Open (std::string filename)
     Opens a file.

    void OpenFromImage (SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
     Cuts part of an existing image to create a new image.

     Cuts part of an existing image to create a new image.

    void OpenFromImage (const ZImage &img, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
     Cuts part of an existing ZImage to create a new image.

     Cuts part of an existing ZImage to create a new image.

    void Attach (SDL_Surface *surface)
     Attach an existing surface to class.

     Attach an existing surface to class.

    void Reload ()
     Reattach a preloaded texture that has been lost.

     Reattach a preloaded texture that has been lost.

    void Release ()
     Releases image.

     Releases image.

    void SetAlpha (Uint8 alpha)
     Set alpha value (translucency) of image.

     Set alpha value (translucency) of image.

    void SetColorKey (Uint8 red, Uint8 green, Uint8 blue)
     Set Color Key (transparent color) of image.

     Set Color Key (transparent color) of image.

    void Flip (bool horizontal, bool vertical)
     Flip image over one or both axes.

     Flip image over one or both axes.

    void Stretch (float xFactor, float yFactor)
     Stretch the image by a certain X and Y factor.

     Stretch the image by a certain X and Y factor.

    void Resize (unsigned int width, unsigned int height)
     Resizes an image, stretching to new size.

     Resizes an image, stretching to new size.

    void Bind () const
     OpenGL related bind call.

    void Draw (int x, int y) const
     Draw Image to Screen.

    void Draw (float x, float y) const
     Draw Image to Screen.

    void DrawRotated (int x, int y, float angle) const
     Draw Image rotated to screen.

    void DrawRotated (float x, float y, float angle) const
     Draw Image rotated to screen.

     OpenGL related bind call.

    void Draw (int x, int y, Uint8 zIndex=0) const
     Draw Image to Screen.

    void Draw (float x, float y, Uint8 zIndex=0) const
     Draw Image to Screen.

    void DrawRotated (int x, int y, float angle, Uint8 zIndex=0) const
     Draw Image rotated to screen.

    void DrawRotated (float x, float y, float angle, Uint8 zIndex=0) const
     Draw Image rotated to screen.

    bool IsLoaded () const
     Check if file is loaded.

     Check if file is loaded.

    SDL_Surface * Surface () const
     Get SDL_Surface. Get SDL_Surface pointer to actual image data.

     Get SDL_Surface. Get SDL_Surface pointer to actual image data.

    int Width () const
     Get Width.

     Get Width.

    int Height () const
     Get Height.

     Get Height.

    Uint8 Alpha () const
     Get Alpha component.

     Get Alpha component.


    Protected Attributes

    ZEnginerEngine
     Pointer to ZEngine Object.

     Pointer to ZEngine Object.

    GLfloat rTexMinX
     Texture lower X, used internally for flip.

     Texture lower X, used internally for flip.

    GLfloat rTexMinY
     Texture lower Y, used internally for flip.

     Texture lower Y, used internally for flip.

    GLfloat rTexMaxX
     Texture X width ratio, used internally by OpenGL.

     Texture X width ratio, used internally by OpenGL.

    GLfloat rTexMaxY
     Texture Y width ratio, used internally by OpenGL.

     Texture Y width ratio, used internally by OpenGL.

    SDL_Surface * rImage
     Stored texture for future use.

     Stored texture for future use.

    unsigned int rTexID
     Texture ID for OpenGL.

     Texture ID for OpenGL.

    unsigned int rWidth
     Current draw width of Texture.

     Current draw width of Texture.

    unsigned int rHeight
     Current draw height of Texture.

     Current draw height of Texture.

    Uint8 rAlpha
     Stored alpha value for drawing texture.

     Stored alpha value for drawing texture.


    Constructor & Destructor Documentation

    @@ -111,8 +111,8 @@ Uint8 

    ZE::ZImage::ZImage    ) 
    ZE::ZImage::ZImage const ZImage &   rhs rhs  ) 
    ZE::ZImage::ZImage string   filename std::string  filename  ) 
    ZE::ZImage::ZImage SDL_Surface *   surface surface  ) 
    ZE::ZImage::ZImage SDL_Surface *   img, img,
    Sint16   x, x,
    Sint16   y, y,
    Sint16   w, w,
    Sint16   h h

    -Constructor is same as calling ZImage::OpenFromImage with an SDL_Surface*. -

    +Constructor is same as calling ZImage::OpenFromImage with an SDL_Surface*.

    Parameters:
    @@ -309,31 +308,31 @@ Constructor is same as calling ZI - + - + - + - + - + @@ -353,8 +352,7 @@ Constructor is same as calling ZI @@ -1049,19 +1066,25 @@ Image is rotated about it's own center by specified angle, then drawn to screen. - + - + - + + + + + + + @@ -1087,6 +1110,7 @@ Image is rotated about it's own center by specified angle, then drawn to screen. +
    img Image to take new image from.
    ZE::ZImage::ZImage const ZImage &   img, img,
    Sint16   x, x,
    Sint16   y, y,
    Sint16   w, w,
    Sint16   h h

    -Constructor is same as calling ZImage::OpenFromImage with a ZImage. -

    +Constructor is same as calling ZImage::OpenFromImage with a ZImage.

    Parameters:
    @@ -375,8 +373,8 @@ Constructor is same as calling ZI - - + + @@ -404,9 +402,9 @@ Destructor calls ZImage::Release - - - + + + @@ -439,31 +437,31 @@ Open a file using ZEngine. Load - + - + - + - + - + @@ -483,8 +481,7 @@ Open a file using ZEngine. Load @@ -998,19 +1008,25 @@ Draw Image to screen at specified location.
    Since:
    void ZE::ZImage::DrawRotated
    - + - + - + + + + + + + @@ -1035,6 +1051,7 @@ Image is rotated about it's own center by specified angle, then drawn to screen. +
    img Image to take new image from.
    ZE::ZImage::~ZImage    )  [virtual]
    void ZE::ZImage::Open string   filename std::string  filename  ) 
    void ZE::ZImage::OpenFromImage SDL_Surface *   img, img,
    Sint16   x, x,
    Sint16   y, y,
    Sint16   w, w,
    Sint16   h h

    -Cut part of an SDL_Surface to create a new Image. -

    +Cut part of an SDL_Surface to create a new Image.

    Parameters:
    @@ -506,31 +503,31 @@ Cut part of an SDL_Surface to create a new Image. - + - + - + - + - + @@ -550,8 +547,7 @@ Cut part of an SDL_Surface to create a new Image. @@ -953,13 +956,19 @@ Draw Image to screen at specified location.
    Parameters: void ZE::ZImage::Draw
    - + - + + + + + + + @@ -984,6 +993,7 @@ Draw Image to screen at specified location.
    Since:
    +
    img SDL_Surface* to take new image from.
    void ZE::ZImage::OpenFromImage const ZImage &   img, img,
    Sint16   x, x,
    Sint16   y, y,
    Sint16   w, w,
    Sint16   h h

    -Cut part of another ZImage to create a new Image. -

    +Cut part of another ZImage to create a new Image.

    Parameters:
    @@ -573,8 +569,8 @@ Cut part of another ZImage to cr - - + + @@ -606,8 +602,8 @@ Attach a pointer to instance of ZIma - - + + @@ -634,8 +630,8 @@ Attach loaded textures which have been lost due to loss of focus, should be call - - + + @@ -663,8 +659,8 @@ Frees memory via call to SDL_FreeSurface for the image. - - + + @@ -698,19 +694,19 @@ Set translucency value 0-255 (0 is transparent, 255 = opaque).
    <
    - + - + - + @@ -749,13 +745,13 @@ Set color which will not be drawn in image.
    Parameters: void ZE::ZImage::Flip
    - + - + @@ -793,13 +789,13 @@ Flip image vertical and/or horizontal.
    Parameters:
    void ZE::ZImage::Stretch
    - + - + @@ -837,13 +833,13 @@ Stretch image using a factor to multiply width and height by.
    void ZE::ZImage::Resize
    - + - + @@ -880,8 +876,8 @@ Stretch image to new width and height.
    Parameters:
    - - + + @@ -909,13 +905,19 @@ OpenGL related bind call, only available in case you want to bind image in 3D. D - + - + + + + + + + @@ -939,6 +941,7 @@ Draw Image to screen at specified location.
    Parameters:
    +
    img ZImage to take new image from.
    void ZE::ZImage::Attach SDL_Surface *   surface surface  ) 
    void ZE::ZImage::Reload    ) 
    void ZE::ZImage::Release    ) 
    void ZE::ZImage::SetAlpha Uint8   alpha alpha  ) 
    void ZE::ZImage::SetColorKey Uint8   red, red,
    Uint8   green, green,
    Uint8   blue blue
    bool   horizontal, horizontal,
    bool   vertical vertical
    float   xFactor, xFactor,
    float   yFactor yFactor
    unsigned int   width, width,
    unsigned int   height height
    void ZE::ZImage::Bind    )  const
    void ZE::ZImage::Draw int   x, x,
    int   y y,
    Uint8  zIndex = 0
    x X coord to draw Image to.
    y Y coord to draw Image to.
    zLayer Special parameter defining draw order of the image, defaults to 0 which means 'draw immediately.' (1-255 define order, lowest first.)
    float   x, x,
    float   y y,
    Uint8  zIndex = 0
    x X coord to draw Image to.
    y Y coord to draw Image to.
    zLayer Special parameter defining draw order of the image, defaults to 0 which means 'draw immediately.'
    int   x, x,
    int   y, y,
    float   angle angle,
    Uint8  zIndex = 0
    x X coord to draw Image to.
    y Y coord to draw Image to.
    angle Angle in degrees to rotate image.
    zLayer Special parameter defining draw order of the image, defaults to 0 which means 'draw immediately.'
    void ZE::ZImage::DrawRotated float   x, x,
    float   y, y,
    float   angle angle,
    Uint8  zIndex = 0
    x X coord to draw Image to.
    y Y coord to draw Image to.
    angle Angle in degrees to rotate image.
    zLayer Special parameter defining draw order of the image, defaults to 0 which means 'draw immediately.'
    bool ZE::ZImage::IsLoaded    )  const
    SDL_Surface * ZE::ZImage::Surface    )  const
    int ZE::ZImage::Width    )  const
    int ZE::ZImage::Height    )  const
    Uint8 ZE::ZImage::Alpha    )  const
    @@ -11,7 +11,7 @@ - + @@ -23,11 +23,11 @@ - + -
    IsPaused() constZE::ZMusic
    IsPlaying() constZE::ZMusic
    LoopInfiniteZE::ZMusic [static]
    Open(string filename)ZE::ZMusic
    Open(std::string filename)ZE::ZMusic
    Pause() constZE::ZMusic
    Play(int loopNum=0, int fadeTime=0) constZE::ZMusic
    Release()ZE::ZMusic
    Unpause() constZE::ZMusic
    Volume() constZE::ZMusic
    ZMusic()ZE::ZMusic
    ZMusic(string filename)ZE::ZMusic
    ZMusic(std::string filename)ZE::ZMusic
    ~ZMusic()ZE::ZMusic [virtual]

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +


    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3 diff --git a/doc/html/classZE_1_1ZMusic.html b/doc/html/classZE_1_1ZMusic.html index 012c836..87f4e3a 100644 --- a/doc/html/classZE_1_1ZMusic.html +++ b/doc/html/classZE_1_1ZMusic.html @@ -3,7 +3,7 @@ ZE::ZMusic class Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZMusic Class Reference

    #include <ZE_ZMusic.h> @@ -13,48 +13,48 @@

    - + - - - + + + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Public Methods


    Public Member Functions

     ZMusic ()
     Default Constructor.

     ZMusic (string filename)
     Constructor that opens a music file.

     Default Constructor.

     ZMusic (std::string filename)
     Constructor that opens a music file.

    virtual ~ZMusic ()
     Destructor, frees memory.

    void Open (string filename)
     Opens a music file.

     Destructor, frees memory.

    void Open (std::string filename)
     Opens a music file.

    void Release ()
     Release music.

     Release music.

    void Play (int loopNum=0, int fadeTime=0) const
     Play currently loaded music.

     Play currently loaded music.

    void Pause () const
     Pause music.

     Pause music.

    void Unpause () const
     Unpause music.

     Unpause music.

    void Rewind () const
     Rewind music.

     Rewind music.

    void Stop (int fadeTime=0) const
     Stop music.

     Stop music.

    void SetVolume (int volume)
     Change Volume.

     Change Volume.

    bool IsLoaded () const
     Check if file is loaded.

     Check if file is loaded.

    bool IsPlaying () const
     Check if music is Playing.

     Check if music is Playing.

    bool IsPaused () const
     Check if music is Paused.

     Check if music is Paused.

    int Volume () const
     Find Current Volume of Music.

     Find Current Volume of Music.


    Static Public Attributes

    const int LoopInfinite
     Static Variable For Infinite loop of sound. (Defined as -1).

     Static Variable For Infinite loop of sound. (Defined as -1).


    Protected Attributes

    ZEnginerEngine
     Pointer to ZEngine Object.

     Pointer to ZEngine Object.

    Mix_Music * rMusic
     Pointer to music data.

     Pointer to music data.


    Constructor & Destructor Documentation

    @@ -65,8 +65,8 @@ Mix_Music *  ZE::ZMusic::ZMusic (  -   - )  + +  )  @@ -93,9 +93,9 @@ Default Constructor, does nothing. ZE::ZMusic::ZMusic (  - string  -   filename - )  + std::string  + filename +  )  @@ -127,8 +127,8 @@ Constructor simply calls ZMusic:: virtual ZE::ZMusic::~ZMusic (  -   - )  + +  )  [virtual] @@ -156,9 +156,9 @@ Destructor calls ZMusic::Release( void ZE::ZMusic::Open (  - string  -   filename - )  + std::string  + filename +  )  @@ -190,8 +190,8 @@ Open a music file to be used.

    Parameters:
    void ZE::ZMusic::Release (  -   - )  + +  )  @@ -219,13 +219,13 @@ Release memory held by music data. void ZE::ZMusic::Play (  int  -   loopNum = 0, + loopNum = 0, int  -   fadeTime = 0 + fadeTime = 0 @@ -262,8 +262,8 @@ Play music currently loaded in ZMusi void ZE::ZMusic::Pause (  -   - )  + +  )  const @@ -290,8 +290,8 @@ Pause currently playing music. void ZE::ZMusic::Unpause (  -   - )  + +  )  const @@ -318,8 +318,8 @@ Unpause currently paused music. void ZE::ZMusic::Rewind (  -   - )  + +  )  const @@ -347,8 +347,8 @@ Rewind music to beginning. void ZE::ZMusic::Stop (  int  -   fadeTime = 0 - )  + fadeTime = 0 +  )  const @@ -381,8 +381,8 @@ Stop currently playing music, if fadeTime is not zero, fade out over specified t void ZE::ZMusic::SetVolume (  int  -   volume - )  + volume +  )  @@ -414,8 +414,8 @@ Change volume of currently playing music.
    Parameters:
    bool ZE::ZMusic::IsLoaded (  -   - )  + +  )  const @@ -443,8 +443,8 @@ Check if file is loaded and pointer to data is non-NULL.
    Retu bool ZE::ZMusic::IsPlaying (  -   - )  + +  )  const @@ -472,8 +472,8 @@ Check if music is playing, specifically if it is not stopped. (Paused state shou bool ZE::ZMusic::IsPaused (  -   - )  + +  )  const @@ -501,8 +501,8 @@ Check if music is "playing" but currently paused.
    Returns: int ZE::ZMusic::Volume (  -   - )  + +  )  const @@ -524,9 +524,9 @@ Get current volume of music represented as a value from 0-128.
    <
    The documentation for this class was generated from the following file:
    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZRect-members.html b/doc/html/classZE_1_1ZRect-members.html index a343688..6e7cc1c 100644 --- a/doc/html/classZE_1_1ZRect-members.html +++ b/doc/html/classZE_1_1ZRect-members.html @@ -3,7 +3,7 @@ Member List - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZRect Member List

    This is the complete list of members for ZE::ZRect, including all inherited members. @@ -36,9 +36,9 @@ -
    ZRect(const SDL_Rect &rect)ZE::ZRect
    ZRect(const ZRect &rhs)ZE::ZRect
    ~ZRect()ZE::ZRect [virtual]

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZRect.html b/doc/html/classZE_1_1ZRect.html index 25da7b2..61be624 100644 --- a/doc/html/classZE_1_1ZRect.html +++ b/doc/html/classZE_1_1ZRect.html @@ -3,7 +3,7 @@ ZE::ZRect class Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZRect Class Reference

    #include <ZE_ZRect.h> @@ -13,70 +13,70 @@

    - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Public Methods


    Public Member Functions

     ZRect ()
     Default constructor for ZRect.

     Default constructor for ZRect.

     ZRect (float x, float y, float width, float height)
     Constructor for ZRect that takes inital values.

     Constructor for ZRect that takes inital values.

     ZRect (const SDL_Rect &rect)
     Constructor for ZRect that uses an SDL_Rect.

     Constructor for ZRect that uses an SDL_Rect.

     ZRect (const ZRect &rhs)
     Copy constructor for ZRect.

     Copy constructor for ZRect.

    const ZRect & operator= (const ZRect &rhs)
     Overload for = operator with ZRect.

     Overload for = operator with ZRect.

    virtual ~ZRect ()
     Virtual Destructor.

     Virtual Destructor.

    bool operator< (const ZRect &rhs) const
     Overload for < operator with ZRect, based upon location then size.

     Overload for < operator with ZRect, based upon location then size.

    void Draw (Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255) const
     Draw rectangle. (filled).

     Draw rectangle. (filled).

    void Move (float x, float y)
     Changes the location of the rectangle.

     Changes the location of the rectangle.

    void MoveRel (float xMove, float yMove)
     Changes the location of the rectangle based upon the current location.

     Changes the location of the rectangle based upon the current location.

    void Resize (float width, float height)
     Resize rectangle.

     Resize rectangle.

    void ResizeRel (float widthChange, float heightChange)
     Grows or shrinks current rectangle.

     Grows or shrinks current rectangle.

    bool Intersects (const ZRect &rect) const
     Check if one ZRect intersects another.

     Check if one ZRect intersects another.

    bool Contains (float x, float y) const
     Check if a rectangle contains a given point.

     Check if a rectangle contains a given point.

    bool Contains (const ZRect &rect) const
     Check if a rectangle contains a given point.

     Check if a rectangle contains a given point.

    ZRect Intersection (const ZRect &rect) const
     Finds intersection of two rectangles.

     Finds intersection of two rectangles.

    SDL_Rect SDLrect () const
     Returns an SDL_Rect representing the rectangle.

     Returns an SDL_Rect representing the rectangle.

    float X () const
     Returns X Location.

     Returns X Location.

    float Y () const
     Returns Y Location.

     Returns Y Location.

    float Left () const
     Return position of left side.

     Return position of left side.

    float Right () const
     Return position of right side.

     Return position of right side.

    float Top () const
     Return position of top side.

     Return position of top side.

    float Bottom () const
     Return position of bottom side.

     Return position of bottom side.

    float Width () const
     Returns Width.

     Returns Width.

    float Height () const
     Returns Height.

     Returns Height.


    Protected Attributes

    float rX
     X Position of top left corner of rectangle.

     X Position of top left corner of rectangle.

    float rY
     Y Position of top left corner of rectangle.

     Y Position of top left corner of rectangle.

    float rWidth
     Width of Rectangle.

     Width of Rectangle.

    float rHeight
     Height of Rectangle.

     Height of Rectangle.


    Constructor & Destructor Documentation

    @@ -87,8 +87,8 @@ float  ZE::ZRect::ZRect (  -   - )  + +  )  @@ -116,25 +116,25 @@ Default constructor, initializes all values to zero. ZE::ZRect::ZRect (  float  -   x, + x, float  -   y, + y, float  -   width, + width, float  -   height + height @@ -174,8 +174,8 @@ Constructor for ZRect that takes ZE::ZRect::ZRect (  const SDL_Rect &  -   rect - )  + rect +  )  @@ -208,8 +208,8 @@ Constructor for ZRect that initia ZE::ZRect::ZRect (  const ZRect &  -   rhs - )  + rhs +  )  @@ -241,8 +241,8 @@ Takes a ZRect and constructs a ne ZE::ZRect::~ZRect (  -   - )  + +  )  [virtual] @@ -271,8 +271,8 @@ Virtual destructor making future inheritance safe. const ZRect & ZE::ZRect::operator= (  const ZRect &  -   rhs - )  + rhs +  )  @@ -306,8 +306,8 @@ Copies all values from one ZRect bool ZE::ZRect::operator< (  const ZRect &  -   rhs - )  + rhs +  )  const @@ -341,25 +341,25 @@ Rectangles are sorted by y value, followed by x value, if they start at the same void ZE::ZRect::Draw (  Uint8  -   red, + red, Uint8  -   green, + green, Uint8  -   blue, + blue, Uint8  -   alpha = 255 + alpha = 255 @@ -399,13 +399,13 @@ Draw the ZRect, this function is void ZE::ZRect::Move (  float  -   x, + x, float  -   y + y @@ -443,13 +443,13 @@ Changes the current x,y position of the rectangle.

    Parameters void ZE::ZRect::MoveRel (  float  -   xMove, + xMove, float  -   yMove + yMove @@ -487,13 +487,13 @@ Changes the current x,y position of the rectangle relative to the current locati void ZE::ZRect::Resize (  float  -   width, + width, float  -   height + height @@ -531,13 +531,13 @@ Changes the current width and height of the rectangle.
    Parame void ZE::ZRect::ResizeRel (  float  -   widthChange, + widthChange, float  -   heightChange + heightChange @@ -575,8 +575,8 @@ Changes the current width and height of the rectangle based upon current values. bool ZE::ZRect::Intersects (  const ZRect &  -   rect - )  + rect +  )  const @@ -610,13 +610,13 @@ Checks for overlap and returns boolean value based on if overlap exists.
    bool ZE::ZRect::Contains (  float  -   x, + x, float  -   y + y @@ -655,8 +655,8 @@ Checks point against boundaries of rectangle and returns result.
    bool ZE::ZRect::Contains (  const ZRect &  -   rect - )  + rect +  )  const @@ -690,8 +690,8 @@ Checks point against boundaries of rectangle and returns result.
    ZRect ZE::ZRect::Intersection (  const ZRect &  -   rect - )  + rect +  )  const @@ -724,8 +724,8 @@ Checks for intersection, and returns rectangle where the two rectangles intersec SDL_Rect ZE::ZRect::SDLrect (  -   - )  + +  )  const @@ -753,8 +753,8 @@ Makes a SDL_Rect representing the rectangle, for use where functions require an float ZE::ZRect::X (  -   - )  + +  )  const @@ -782,8 +782,8 @@ Access private X location member.
    Returns:
    Value float ZE::ZRect::Y (  -   - )  + +  )  const @@ -811,8 +811,8 @@ Access private Y location member.
    Returns:
    Value float ZE::ZRect::Left (  -   - )  + +  )  const @@ -840,8 +840,8 @@ Find X position of left side of rectangle.
    Returns:
    < float ZE::ZRect::Right (  -   - )  + +  )  const @@ -869,8 +869,8 @@ Find X position of right side of rectangle.
    Returns:
    float ZE::ZRect::Top (  -   - )  + +  )  const @@ -898,8 +898,8 @@ Find Y position of top side of rectangle.
    Returns:
    float ZE::ZRect::Bottom (  -   - )  + +  )  const @@ -927,8 +927,8 @@ Find Y position of left side of rectangle.
    Returns:
    < float ZE::ZRect::Width (  -   - )  + +  )  const @@ -956,8 +956,8 @@ Access private width member.
    Returns:
    Value of mW float ZE::ZRect::Height (  -   - )  + +  )  const @@ -979,9 +979,9 @@ Access private height member.
    Returns:
    Value of m
    The documentation for this class was generated from the following files: -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZSound-members.html b/doc/html/classZE_1_1ZSound-members.html index 83aecf0..cb74737 100644 --- a/doc/html/classZE_1_1ZSound-members.html +++ b/doc/html/classZE_1_1ZSound-members.html @@ -3,7 +3,7 @@ Member List - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZSound Member List

    This is the complete list of members for ZE::ZSound, including all inherited members. @@ -11,7 +11,7 @@ - + @@ -23,11 +23,11 @@ - + -
    IsPaused() constZE::ZSound
    IsPlaying() constZE::ZSound
    LoopInfiniteZE::ZSound [static]
    Open(string filename)ZE::ZSound
    Open(std::string filename)ZE::ZSound
    Pause() constZE::ZSound
    Play(int loopNum=0, int fadeTime=0)ZE::ZSound
    rChannelIDZE::ZSound [protected]
    Unpause() constZE::ZSound
    Volume() constZE::ZSound
    ZSound()ZE::ZSound
    ZSound(string filename)ZE::ZSound
    ZSound(std::string filename)ZE::ZSound
    ~ZSound()ZE::ZSound [virtual]

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZSound.html b/doc/html/classZE_1_1ZSound.html index 452958a..adbedb6 100644 --- a/doc/html/classZE_1_1ZSound.html +++ b/doc/html/classZE_1_1ZSound.html @@ -3,7 +3,7 @@ ZE::ZSound class Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZSound Class Reference

    #include <ZE_ZSound.h> @@ -13,49 +13,49 @@

    - + - - - + + + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Public Methods


    Public Member Functions

     ZSound ()
     Default Constructor.

     ZSound (string filename)
     Constructor that opens a sound effect file.

     Default Constructor.

     ZSound (std::string filename)
     Constructor that opens a sound effect file.

    virtual ~ZSound ()
     Destructor, frees memory.

    void Open (string filename)
     Opens a sound effect file.

     Destructor, frees memory.

    void Open (std::string filename)
     Opens a sound effect file.

    void Release ()
     Release sound effect.

     Release sound effect.

    void Play (int loopNum=0, int fadeTime=0)
     Play currently loaded sound effect.

     Play currently loaded sound effect.

    void Pause () const
     Pause sound.

     Pause sound.

    void Unpause () const
     Unpause sound.

     Unpause sound.

    void Stop (int fadeTime=0) const
     Stop sound.

     Stop sound.

    void SetVolume (int volume)
     Change Volume.

     Change Volume.

    bool IsLoaded () const
     Check if file is loaded.

     Check if file is loaded.

    bool IsPlaying () const
     Check if sound is Playing.

     Check if sound is Playing.

    bool IsPaused () const
     Check if sound is Paused.

     Check if sound is Paused.

    int Volume () const
     Find Current Volume of Sound Channel.

     Find Current Volume of Sound Channel.


    Static Public Attributes

    const int LoopInfinite
     Static Variable For Infinite loop of sound. (Defined as -1).

     Static Variable For Infinite loop of sound. (Defined as -1).


    Protected Attributes

    ZEnginerEngine
     Pointer to ZEngine Object.

     Pointer to ZEngine Object.

    Mix_Chunk * rSound
     Pointer to music data.

     Pointer to music data.

    int rChannelID
     Channel ID Number from SDL_Mixer.

     Channel ID Number from SDL_Mixer.


    Constructor & Destructor Documentation

    @@ -66,8 +66,8 @@ int r ZE::ZSound::ZSound (  -   - )  + +  )  @@ -94,9 +94,9 @@ Default Constructor, does nothing. ZE::ZSound::ZSound (  - string  -   filename - )  + std::string  + filename +  )  @@ -128,8 +128,8 @@ Constructor simply calls ZSound:: virtual ZE::ZSound::~ZSound (  -   - )  + +  )  [virtual] @@ -157,9 +157,9 @@ Destructor calls ZSound::Release( void ZE::ZSound::Open (  - string  -   filename - )  + std::string  + filename +  )  @@ -191,8 +191,8 @@ Open a music file to be used.

    Parameters:
    void ZE::ZSound::Release (  -   - )  + +  )  @@ -220,13 +220,13 @@ Release memory held by sample data. void ZE::ZSound::Play (  int  -   loopNum = 0, + loopNum = 0, int  -   fadeTime = 0 + fadeTime = 0 @@ -263,8 +263,8 @@ Play sound effect, looping loopNum times. (use void ZE::ZSound::Pause (  -   - )  + +  )  const @@ -291,8 +291,8 @@ Pause currently playing sound. void ZE::ZSound::Unpause (  -   - )  + +  )  const @@ -320,8 +320,8 @@ Unpause currently playing sound. void ZE::ZSound::Stop (  int  -   fadeTime = 0 - )  + fadeTime = 0 +  )  const @@ -354,8 +354,8 @@ Stop currently playing sound, if fadeTime is not zero, fade out over specified t void ZE::ZSound::SetVolume (  int  -   volume - )  + volume +  )  @@ -387,8 +387,8 @@ Change volume of currently playing sample.
    Parameters: bool ZE::ZSound::IsLoaded (  -   - )  + +  )  const @@ -416,8 +416,8 @@ Check if file is loaded and pointer to data is non-NULL.
    Retu bool ZE::ZSound::IsPlaying (  -   - )  + +  )  const @@ -445,8 +445,8 @@ Check if sound is playing, specifically if it is not stopped. (Paused state shou bool ZE::ZSound::IsPaused (  -   - )  + +  )  const @@ -474,8 +474,8 @@ Check if sound is "playing" but currently paused.
    Returns: int ZE::ZSound::Volume (  -   - )  + +  )  const @@ -497,9 +497,9 @@ Get current volume of sound channel represented as a value from 0-128.

    The documentation for this class was generated from the following file:
    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZTimer-members.html b/doc/html/classZE_1_1ZTimer-members.html index 8b01848..a10fe6e 100644 --- a/doc/html/classZE_1_1ZTimer-members.html +++ b/doc/html/classZE_1_1ZTimer-members.html @@ -3,7 +3,7 @@ Member List - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZTimer Member List

    This is the complete list of members for ZE::ZTimer, including all inherited members. @@ -20,9 +20,9 @@ -
    Unpause()ZE::ZTimer
    ZTimer(bool useZEngine=true)ZE::ZTimer
    ~ZTimer()ZE::ZTimer [virtual]

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/classZE_1_1ZTimer.html b/doc/html/classZE_1_1ZTimer.html index 6689252..95dfa40 100644 --- a/doc/html/classZE_1_1ZTimer.html +++ b/doc/html/classZE_1_1ZTimer.html @@ -3,7 +3,7 @@ ZE::ZTimer class Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE::ZTimer Class Reference

    #include <ZE_ZTimer.h> @@ -13,40 +13,40 @@

    - + - + - + - + - + - + - + - - + + - + - + - + - + - + - +

    Public Methods


    Public Member Functions

     ZTimer (bool useZEngine=true)
     Constructs a new Timer.

     Constructs a new Timer.

    virtual ~ZTimer ()
     Virtual Destructor.

     Virtual Destructor.

    void Reset ()
     Reset Timer.

     Reset Timer.

    void Pause ()
     Pause Timer.

     Pause Timer.

    void Unpause ()
     Unpause Timer.

     Unpause Timer.

    Uint32 GetTime () const
     Get Time of Timer.

     Get Time of Timer.

    bool IsPaused () const
     Get paused state.


    Protected Methods

     Get paused state.


    Protected Member Functions

    Uint32 GetParentTime () const
     Get time from parent timer.

     Get time from parent timer.


    Protected Attributes

    ZEnginerEngine
     Pointer to ZEngine Object.

     Pointer to ZEngine Object.

    bool rPaused
     Paused / Unpaused state of Timer.

     Paused / Unpaused state of Timer.

    bool rUseZEngine
     Using ZEngine timer or SDL global timer.

     Using ZEngine timer or SDL global timer.

    Uint32 rPausedTime
     Total time this timer has been paused.

     Total time this timer has been paused.

    Uint32 rLastPause
     Time this Timer was paused.

     Time this Timer was paused.


    Constructor & Destructor Documentation

    @@ -58,8 +58,8 @@ Uint32  ZE::ZTimer::ZTimer (  bool  -   useZEngine = true - )  + useZEngine = true +  )  @@ -91,8 +91,8 @@ Sets TimePaused to current ZEngine< ZE::ZTimer::~ZTimer (  -   - )  + +  )  [virtual] @@ -120,8 +120,8 @@ Virtual destructor making future inheritance safe. Uint32 ZE::ZTimer::GetParentTime (  -   - )  + +  )  const [protected] @@ -149,8 +149,8 @@ Protected method to get time from whichever timer is parent.

    void ZE::ZTimer::Reset (  -   - )  + +  )  @@ -177,8 +177,8 @@ Set Timer back to Zero, will also unpause timer if it was paused. void ZE::ZTimer::Pause (  -   - )  + +  )  @@ -205,8 +205,8 @@ Pause the timer if it is unpaused. void ZE::ZTimer::Unpause (  -   - )  + +  )  @@ -233,8 +233,8 @@ Unpause the timer if it is paused. Uint32 ZE::ZTimer::GetTime (  -   - )  + +  )  const @@ -262,8 +262,8 @@ Get current time accounting for time paused.
    Returns:
    bool ZE::ZTimer::IsPaused (  -   - )  + +  )  const @@ -285,9 +285,9 @@ Find out paused state of timer.
    Returns:
    Paused s
    The documentation for this class was generated from the following files:
    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/doxygen.css b/doc/html/doxygen.css index 8cb8b2e..a1bac54 100644 --- a/doc/html/doxygen.css +++ b/doc/html/doxygen.css @@ -16,6 +16,7 @@ TD.mdname { background-color: #f2f2ff; font-weight: bold; color: #602020; width: DIV.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold } DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller } BODY { background: white; color: black } +EM.mdesc { font-size: smaller } TD.indexkey { background-color: #eeeeff; font-weight: bold; diff --git a/doc/html/files.html b/doc/html/files.html index 34fb021..e0e2da7 100644 --- a/doc/html/files.html +++ b/doc/html/files.html @@ -3,11 +3,12 @@ File Index - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZEngine File List

    Here is a list of all documented files with brief descriptions: - + + @@ -17,14 +18,15 @@ + - + @@ -33,14 +35,15 @@ +
    /include/ZE_Defines.h [code]Define file for ZEngine
    /include/VersionInfo.h [code]Definition file for VersionInfo class
    /include/ZE_Defines.h [code]Define file for ZEngine where all #define statements to control compilation options are placed
    /include/ZE_Includes.h [code]Include file for SDL and C++ Includes that many ZEngine files need
    /include/ZE_Utility.h [code]Definition file for ZEngine Utilities
    /include/ZE_ZClient.h [code]Definition file for ZClient
    /include/ZE_ZFont.h [code]Definition file for ZFont
    /include/ZE_ZImage.h [code]Definition file for ZImage
    /include/ZE_ZMusic.h [code]Definition file for ZMusic
    /include/ZE_ZRandGen.h [code]Definition file for ZRandGen
    /include/ZE_ZRect.h [code]Definition file for ZRect
    /include/ZE_ZServer.h [code]Definition file for ZServer
    /include/ZE_ZSound.h [code]Definition file for ZSound
    /include/ZE_ZTimer.h [code]Definition file for ZTimer
    /include/ZEngine.h [code]Header file for ZEngine
    /include/external/mt19937ar.h [code]
    /include/external/physfsrwops.h [code]
    /include/external/SDLGL_Util.h [code]
    /src/VersionInfo.cppImplementation file for VersionInfo class
    /src/ZE_Utility.cppSource file for ZEngine utility functions
    /src/ZE_ZClient.cppSource file for ZClient
    /src/ZE_ZConfigFile.cppSource file for ZConfigFile
    /src/ZE_ZFont.cppSource file for ZFont
    /src/ZE_ZImage.cppSource file for ZImage
    /src/ZE_ZMusic.cppSource file for ZMusic
    /src/ZE_ZRandGen.cppSource file for ZRandGen
    /src/ZE_ZRect.cppSource file for ZRect
    /src/ZE_ZServer.cppSource file for ZServer
    /src/ZE_ZSound.cppSource file for ZSound
    /src/ZE_ZTimer.cppSource file for ZTimer
    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/functions.html b/doc/html/functions.html index a1fdb19..246398f 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -3,17 +3,16 @@ Compound Member Index - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZEngine Compound Members

    -a | b | c | d | e | f | g | h | i | k | l | m | o | p | q | r | s | t | u | v | w | x | y | z | ~
    +a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | ~

    Here is a list of all documented class members with links to the class documentation for each member:

    - a -

    - b - @@ -21,31 +20,24 @@ Here is a list of all documented class members with links to the class documenta
  • Bind() : ZE::ZImage
  • Bottom() : ZE::ZRect
  • BPP() -: ZE::ZEngine +: ZE::ZEngine

    - c -

    - d -

    - f -

    +: ZE::ZEngine

    - g -

    +: ZE::ZConfigFile

    - h -

    - i -

    +: ZE::ZError
  • LoopInfinite +: ZE::ZSound, ZE::ZMusic
  • LOWER_MASK +: ZE::ZRandGen

    - m -

    +

    - n - +

    - o -

    +: ZE::ZRect, VersionInfo
  • operator=() +: ZE::ZRect
  • operator==() +: VersionInfo
  • operator>() +: VersionInfo

    - p -

  • +: ZE::ZEngine
  • UPPER_MASK +: ZE::ZRandGen

    - v -

    - w -

    +
  • Width() +: ZE::ZRect, ZE::ZImage, ZE::ZEngine
  • WriteLog() +: ZE::ZEngine

    - x -

    • X() @@ -290,34 +291,30 @@ Here is a list of all documented class members with links to the class documenta : ZE::ZRect

    - z -

    - ~ -

    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/globals.html b/doc/html/globals.html index 75ec0f6..4908038 100644 --- a/doc/html/globals.html +++ b/doc/html/globals.html @@ -3,36 +3,22 @@ File Member Index - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZEngine File Members

    -m | u | v | z
    +u

    -Here is a list of all documented file members with links to the documentation:

    - m - +Here is a list of all documented file members with links to the documentation:

    - u -

    -

    - u - -

    -

    - v - -

    -

    - z - -

    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/index.html b/doc/html/index.html index bab1ea2..f42ebeb 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -3,7 +3,7 @@ ZEngine Documentation - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZEngine Documentation

    @@ -22,23 +22,20 @@ About ZEngine     -The ZEngine forums : http://www.conceptofzero.net/forums/index.php?act=SF&f=15

    Licensing


    -
            This file is Part of the ZEngine Library for 2D game development.
    -                   Copyright (C) 2002, 2003 James Turk
    -
    -                     Licensed under a BSD-style license.
    -
    -    The maintainer of this library is James Turk (james@conceptofzero.net) 
    + 
    This file is Part of the ZEngine Library for 2D game development. + Copyright (C) 2002, 2003 James Turk

    +

    Licensed under a BSD-style license.

    +

    The maintainer of this library is James Turk (james@conceptofzero.net) and the home of this Library is http://zengine.sourceforge.net -
    -

    +

    Contributing Authors


    - James Turk james@conceptofzero.net - Core Engine, Design, Docs, and Classes
    - Gamer Tazar tazar@conceptofzero.net - OpenGL assistance
    - Sean sean@conceptofzero.net - MSVC++6 Project Files
    - Kevin Watters kwatters@adelphia.net - Fix to ZImage::SetColorKey<br>
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by + James Turk james@conceptofzero.net - Core Engine, Design, Docs, and Classes
    + Gamer Tazar tazar@conceptofzero.net - OpenGL assistance
    + Sean sean@conceptofzero.net - MSVC++6 Project Files
    + Kevin Watters kwatters@adelphia.net - Fix to ZImage::SetColorKey<br>
    Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/namespaceZE.html b/doc/html/namespaceZE.html index 3e0a212..0022449 100644 --- a/doc/html/namespaceZE.html +++ b/doc/html/namespaceZE.html @@ -3,7 +3,7 @@ ZE Namespace Reference - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZE Namespace Reference


    Detailed Description

    @@ -16,32 +16,30 @@ Namespace for ZEngine classes a - - - - - - - + + + + + - + - + - + - + - + + + - - - + - + - + - + - - + + - + - + - + - +

    Compounds

    class  ZClient
     ZEngine class for a simplified TCP client. More...

    class  ZConfigFile
     ZConfigFile Class for use in ZEngine. More...

    class  ZCF_Variable
     ZConfigFile Variable class. More...

    class  ZCF_Section
     ZConfigFile Section class. More...

     ZConfigFile Class for use in ZEngine. More...

    class  ZConfigFile::ZCF_Variable
     ZConfigFile Variable class. More...

    class  ZConfigFile::ZCF_Section
     ZConfigFile Section class. More...

    class  ZEngine
     Main ZEngine Singleton Class. More...

     Main ZEngine Singleton Class. More...

    class  ZError
     ZError class for describing errors. More...

     ZError class for describing errors. More...

    class  ZFont
     ZFont class for basic Font use. More...

     ZFont class for basic Font use. More...

    class  ZImage
     ZImage class for basic Image use. More...

     ZImage class for basic Image use. More...

    class  ZMusic
     ZMusic class for playing full length music (eg. ogg or wav). More...

     ZMusic class for playing full length music (eg. ogg or wav). More...

    class  ZRandGen
     ZRandGen class for OO encapsulation of superb random generator "Mersenne Twister.". More...

    class  ZRect
     ZEngine class for simplified rectangle use. More...

    class  ZServer
     ZEngine class for simplified TCP server. More...

     ZEngine class for simplified rectangle use. More...

    class  ZSound
     ZSound class for playing sound effects. (WAV). More...

     ZSound class for playing sound effects. (WAV). More...

    class  ZTimer
     ZTimer class for Timer use. More...

     ZTimer class for Timer use. More...


    Enumerations

    enum  ZErrorCode {
      ZERR_NONE, @@ -69,18 +67,18 @@ Namespace for ZEngine classes a ZERR_LAST
    }
     Enumeration of ZEngine error codes. More...

     Enumeration of ZEngine error codes. More...


    Functions

    string FormatStr (const char *fmtstr,...)
     Parses a string and interprets variable arguments, similar to sprintf.

    std::string FormatStr (const char *fmtstr,...)
     Parses a std::string and interprets variable arguments, similar to sprintf.

    void FreeImage (SDL_Surface *&image)
     Properly free SDL_Surface.

     Properly free SDL_Surface.

    void FreeSound (Mix_Chunk *&chunk)
     Properly free Mix_Chunk.

     Properly free Mix_Chunk.

    void FreeMusic (Mix_Music *&music)
     Properly free Mix_Music.

     Properly free Mix_Music.

    void FreeFont (TTF_Font *&font)
     Properly free TTF_Font.

     Properly free TTF_Font.


    Enumeration Type Documentation

    @@ -135,11 +133,11 @@ Error trying to use a ZMusic wit ZERR_NOFONT  Error trying to use a ZFont without properly loading a font. ZERR_NOSOCKET  -Error trying to use a ZClient without having an open socket. +Error trying to use a ZClient without having an open socket. ZERR_NET_CLIENT  -Error using SDL_net in ZClient. +Error using SDL_net in ZClient. ZERR_NET_SERVER  -Error using SDL_net in ZClient. +Error using SDL_net in ZClient. ZERR_LAST  Value used as range index, not a valid error code. @@ -154,16 +152,16 @@ Value used as range index, not a valid error code. - + - + - + @@ -185,11 +183,11 @@ Value used as range index, not a valid error code.

    Takes identifiers out of fmtstr and parses them, replacing them with cooresponding values in the variable arguments list. For more detail view stdarg documentation.

    Parameters:
    string ZE::FormatStr std::string ZE::FormatStr const char *   fmtstr, fmtstr,
    ...  
    - +
    fmtstr defines format of resulting string
    fmtstr defines format of resulting std::string
    ... variable number of arguments after fmtstr

  • -
    Returns:
    string of parsed and combined string
    +
    Returns:
    std::string of parsed and combined std::string
    @@ -202,8 +200,8 @@ Takes identifiers out of fmtstr and parses them, replacing them with coorespond void ZE::FreeImage (  SDL_Surface *&  -   image - )  + image +  )  @@ -236,8 +234,8 @@ Safely free an SDL_Surface* and set it to NULL.
    Parameters: void FreeSound (  Mix_Chunk *&  -   chunk - )  + chunk +  )  @@ -270,8 +268,8 @@ Safely free a Mix_Chunk* and set it to NULL.
    Parameters:< void FreeMusic (  Mix_Music *&  -   music - )  + music +  )  @@ -304,8 +302,8 @@ Safely free a Mix_Music* and set it to NULL.
    Parameters:< void FreeFont (  TTF_Font *&  -   font - )  + font +  )  @@ -329,9 +327,9 @@ Safely free a TTF_Font* and set it to NULL.
    Parameters: -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/namespacemembers.html b/doc/html/namespacemembers.html index 9412818..2ac17fa 100644 --- a/doc/html/namespacemembers.html +++ b/doc/html/namespacemembers.html @@ -3,7 +3,7 @@ Namespace Member Index - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZEngine Namespace Members

    @@ -41,9 +41,9 @@ Here is a list of all documented namespace members with links to the namespaces : ZE
  • ZERR_VIDMODE : ZE
  • ZErrorCode : ZE -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/namespaces.html b/doc/html/namespaces.html index bb85010..12cbcd2 100644 --- a/doc/html/namespaces.html +++ b/doc/html/namespaces.html @@ -3,15 +3,15 @@ Namespace Index - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    ZEngine Namespace List

    Here is a list of all documented namespaces with brief descriptions:
    ZEZEngine Namespace
    -
    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:51 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/doc/html/physfsrwops_8h-source.html b/doc/html/physfsrwops_8h-source.html index 9712a84..9d41b0e 100644 --- a/doc/html/physfsrwops_8h-source.html +++ b/doc/html/physfsrwops_8h-source.html @@ -3,7 +3,7 @@ /include/external/physfsrwops.h Source File - +
    Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

    /include/external/physfsrwops.h

    00001 /*
    @@ -46,9 +46,9 @@
     00078 
     00079 /* end of physfsrwops.h ... */
     00080 
    -

    Generated on Sun Apr 27 22:34:35 2003 for ZEngine by +
    Generated on Sun Jun 29 14:13:50 2003 for ZEngine by doxygen1.3-rc2
    +width=110 height=53>1.3
    diff --git a/include/ZE_Includes.h b/include/ZE_Includes.h index bb857e1..9477ada 100644 --- a/include/ZE_Includes.h +++ b/include/ZE_Includes.h @@ -42,13 +42,11 @@ #include "physfs.h" #include "external/physfsrwops.h" #endif -#include "external/mt19937ar.h" #include //used frequently #include //used by ZEngine for ZErrors #include //used by ZConfigFile #include //used by ZConfigFile #include //used in parsing -#include //used to seed the random generator #endif //__ze_includes_h__ diff --git a/include/ZE_ZEngine.h b/include/ZE_ZEngine.h index 4782ce3..ff2fc46 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.41 2003/06/11 05:51:32 cozman Exp $
    +
    $Id: ZE_ZEngine.h,v 1.42 2003/07/05 00:40:45 cozman Exp $
    \author James Turk **/ @@ -26,6 +26,7 @@ #include "ZE_Utility.h" #include "ZE_Includes.h" #include "ZE_ZError.h" +#include "ZE_ZRandGen.h" #include "VersionInfo.h" /*! @@ -105,6 +106,8 @@ class ZEngine std::FILE *mErrlog; //! Event filter, for users who need to process their own events. SDL_EventFilter mEventFilter; + //! Random Generator for general use. + ZRandGen mRandGen; #ifdef USE_SDL_MIXER //! Sound Bitrate @@ -570,54 +573,77 @@ class ZEngine /*! \brief Seed random number generator. - Reseed Mersenne Twister (MT19937) random number generator. NOTE: Generator is initialized upon creation of ZEngine using time. - (Faster and more random than rand(), see src/external/mt19937ar.c) - \since 0.8.3 + Reseed Mersenne Twister random number generator. NOTE: Generator is initialized upon creation of object using time. \param seed Seed for random sequence. **/ - void SeedRandom(unsigned long seed); + void SeedRandGen(unsigned long seed); + + /*! + \brief Obtain random integer [0,max). + + Obtain random int l where 0 <= l < max. + \param max Limit for random number. + \return Random unsigned int. + **/ + unsigned int Rand(unsigned int max); /*! \brief Obtain random integer [0,max). Obtain random long l where 0 <= l < max. - \since 0.8.3 \param max Limit for random number. \return Random unsigned long. **/ - unsigned long RandLong(unsigned long max); + unsigned long Rand(unsigned long max); + + /*! + \brief Obtain random integer [min,max]. + + Obtain random int l where min <= l <= max. + \param min Lower limit for random number. + \param max Upper limit for random number. + \return Random int. + **/ + int Rand(int min, int max); /*! \brief Obtain random integer [min,max]. Obtain random long l where min <= l <= max. - \since 0.8.3 \param min Lower limit for random number. \param max Upper limit for random number. \return Random long. **/ - long RandLong(long min, long max); + long Rand(long min, long max); + + /*! + \brief Obtain random integer [min,max]. + + Obtain random float l where min <= l <= max. + \param min Lower limit for random number. + \param max Upper limit for random number. + \return Random float. + **/ + float Rand(float min, float max); + + /*! + \brief Obtain random integer [min,max]. + + Obtain random double l where min <= l <= max. + \param min Lower limit for random number. + \param max Upper limit for random number. + \return Random double. + **/ + double Rand(double min, double max); /*! \brief Obtain random double [0,1). Obtain random double d where 0 <= d < 1. - \since 0.8.3 \return Random double [0,1). **/ double RandDouble(); - /*! - \brief Obtain random double [min,max]. - - Obtain random double d where min <= d <= max. - \since 0.8.3 - \param min Lower limit for random number. - \param max Upper limit for random number. - \return Random double [min,max]. - **/ - double RandDouble(double min, double max); - //////////////////////////// //Data Loading + Unloading// //////////////////////////// diff --git a/include/ZE_ZError.h b/include/ZE_ZError.h index fb389d1..f193d4f 100755 --- a/include/ZE_ZError.h +++ b/include/ZE_ZError.h @@ -14,7 +14,7 @@ Definition file for ZError, the Error logging class for ZEngine. This class should never be used by the average user, it is used by ZEngine to store information on an error. -
    $Id: ZE_ZError.h,v 1.12 2003/06/11 05:51:32 cozman Exp $
    +
    $Id: ZE_ZError.h,v 1.13 2003/07/05 00:40:45 cozman Exp $
    \author James Turk **/ @@ -66,7 +66,7 @@ class ZError { protected: //! Static Array of Error Identifiers - static std::string *sErrorDesc; + static std::string sErrorDesc[ZERR_LAST]; //! Error ID. ZErrorCode rCode; //! Error Description. @@ -78,19 +78,12 @@ class ZError public: /*! - \brief Construct std::string table for error strings. + \brief Construct string table for error strings. - Constructs a std::string table for errors, enabling ZEngine to properly delete the table on exit. + Constructs a string table for errors, enabling ZEngine to properly delete the table on exit. **/ static void CreateStringTable(); - /*! - \brief Destroy std::string table of error strings. - - Properly delete the std::string table, freeing all memory used by the strings. - **/ - static void DestroyStringTable(); - /*! \brief Default constructor for ZError. @@ -126,9 +119,9 @@ class ZError ZErrorCode Code() const; /*! - \brief Get formatted std::string for log file. + \brief Get formatted string for log file. - Return the std::string to be written to the logfile. Called by ZEngine in LogError. + Return the string to be written to the logfile. Called by ZEngine in LogError. **/ std::string LogString() const; }; diff --git a/src/ZE_ZEngine.cpp b/src/ZE_ZEngine.cpp index 953ed21..d95ed6e 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.47 2003/06/16 07:45:03 cozman Exp $
    +
    $Id: ZE_ZEngine.cpp,v 1.48 2003/07/05 00:40:45 cozman Exp $
    \author James Turk **/ @@ -42,8 +42,6 @@ ZEngine::ZEngine() : mKeyPress[k] = false; ZError::CreateStringTable(); - - SeedRandom(static_cast(std::time(NULL))); } ZEngine* ZEngine::GetInstance() @@ -58,7 +56,6 @@ void ZEngine::ReleaseInstance() { if(sInstance) { - ZError::DestroyStringTable(); //part of fix to memory leak with static members sInstance->CloseDisplay(); delete sInstance; } @@ -626,29 +623,44 @@ void ZEngine::FlushErrors() } } -void ZEngine::SeedRandom(unsigned long seed) +void ZEngine::SeedRandGen(unsigned long seed) { - init_genrand(seed); + mRandGen.Seed(seed); } -unsigned long ZEngine::RandLong(unsigned long max) +unsigned int ZEngine::Rand(unsigned int max) { - return genrand_int32()%max; + return mRandGen.Rand(max); } -long ZEngine::RandLong(long min, long max) +unsigned long ZEngine::Rand(unsigned long max) { - return min + genrand_int32()%(max-min+1); + return mRandGen.Rand(max); +} + +int ZEngine::Rand(int min, int max) +{ + return mRandGen.Rand(min,max); +} + +long ZEngine::Rand(long min, long max) +{ + return mRandGen.Rand(min,max); +} + +float ZEngine::Rand(float min, float max) +{ + return mRandGen.Rand(min,max); +} + +double ZEngine::Rand(double min, double max) +{ + return mRandGen.Rand(min,max); } double ZEngine::RandDouble() { - return genrand_real2(); -} - -double ZEngine::RandDouble(double min, double max) -{ - return min + (genrand_real1()*(max-min)); + return mRandGen.RandDouble(); } SDL_Surface* ZEngine::LoadImage(std::string filename) diff --git a/src/ZE_ZError.cpp b/src/ZE_ZError.cpp index c49ddb0..39eaf49 100755 --- a/src/ZE_ZError.cpp +++ b/src/ZE_ZError.cpp @@ -13,7 +13,7 @@ \brief Source file for ZError. Implementation of ZError, the ZEngine internal error information storage class. -
    $Id: ZE_ZError.cpp,v 1.10 2003/06/11 05:51:16 cozman Exp $
    +
    $Id: ZE_ZError.cpp,v 1.11 2003/07/05 00:40:45 cozman Exp $
    \author James Turk **/ @@ -22,42 +22,29 @@ namespace ZE { -std::string *ZError::sErrorDesc = NULL; +std::string ZError::sErrorDesc[ZERR_LAST]; void ZError::CreateStringTable() { - if(!sErrorDesc) - { - //create error strings - sErrorDesc = new std::string[ZERR_LAST]; - sErrorDesc[ZERR_NONE] = "No Error. [%s]"; - sErrorDesc[ZERR_SDL_INTERNAL] = "SDL Error. [%s]"; - sErrorDesc[ZERR_SDL_INIT] = "Error Initializing SDL: %s"; - sErrorDesc[ZERR_MIX_INIT] = "Error Initializing SDL_mixer: %s"; - sErrorDesc[ZERR_TTF_INIT] = "Error Initializing SDL_ttf: %s"; - sErrorDesc[ZERR_NET_INIT] = "Error Initializing SDL_net: %s"; - sErrorDesc[ZERR_VIDMODE] = "Error Creating Display: %s"; - sErrorDesc[ZERR_LOAD_IMAGE] = "Failed to load Image: %s"; - sErrorDesc[ZERR_LOAD_SOUND] = "Failed to load Sound: %s"; - sErrorDesc[ZERR_LOAD_MUSIC] = "Failed to load Music: %s"; - sErrorDesc[ZERR_LOAD_FONT] = "Failed to load Font: %s"; - sErrorDesc[ZERR_NOIMAGE] = "Called ZImage::%s with no Image loaded."; - sErrorDesc[ZERR_NOSOUND] = "Called ZSound::%s with no Sound loaded."; - sErrorDesc[ZERR_NOMUSIC] = "Called ZMusic::%s with no Music loaded."; - sErrorDesc[ZERR_NOFONT] = "Called ZFont::%s with no Font loaded."; - sErrorDesc[ZERR_NOSOCKET] = "Called ZClient::%s with no open Socket."; - sErrorDesc[ZERR_NET_CLIENT] = "ZClient encountered a problem: %s"; - sErrorDesc[ZERR_NET_SERVER] = "ZServer encountered a problem: %s"; - } -} - -void ZError::DestroyStringTable() -{ - if(sErrorDesc) - { - delete []sErrorDesc; - sErrorDesc = NULL; - } + //create error strings + sErrorDesc[ZERR_NONE] = "No Error. [%s]"; + sErrorDesc[ZERR_SDL_INTERNAL] = "SDL Error. [%s]"; + sErrorDesc[ZERR_SDL_INIT] = "Error Initializing SDL: %s"; + sErrorDesc[ZERR_MIX_INIT] = "Error Initializing SDL_mixer: %s"; + sErrorDesc[ZERR_TTF_INIT] = "Error Initializing SDL_ttf: %s"; + sErrorDesc[ZERR_NET_INIT] = "Error Initializing SDL_net: %s"; + sErrorDesc[ZERR_VIDMODE] = "Error Creating Display: %s"; + sErrorDesc[ZERR_LOAD_IMAGE] = "Failed to load Image: %s"; + sErrorDesc[ZERR_LOAD_SOUND] = "Failed to load Sound: %s"; + sErrorDesc[ZERR_LOAD_MUSIC] = "Failed to load Music: %s"; + sErrorDesc[ZERR_LOAD_FONT] = "Failed to load Font: %s"; + sErrorDesc[ZERR_NOIMAGE] = "Called ZImage::%s with no Image loaded."; + sErrorDesc[ZERR_NOSOUND] = "Called ZSound::%s with no Sound loaded."; + sErrorDesc[ZERR_NOMUSIC] = "Called ZMusic::%s with no Music loaded."; + sErrorDesc[ZERR_NOFONT] = "Called ZFont::%s with no Font loaded."; + sErrorDesc[ZERR_NOSOCKET] = "Called ZClient::%s with no open Socket."; + sErrorDesc[ZERR_NET_CLIENT] = "ZClient encountered a problem: %s"; + sErrorDesc[ZERR_NET_SERVER] = "ZServer encountered a problem: %s"; } ZError::ZError(ZErrorCode code, std::string desc, std::string file, int line) : diff --git a/src/ZE_ZImage.cpp b/src/ZE_ZImage.cpp index 0edbf75..a038671 100644 --- a/src/ZE_ZImage.cpp +++ b/src/ZE_ZImage.cpp @@ -13,7 +13,7 @@ \brief Source file for ZImage. Implementation of ZImage, the Image class for ZEngine. -
    $Id: ZE_ZImage.cpp,v 1.35 2003/06/11 05:51:16 cozman Exp $
    +
    $Id: ZE_ZImage.cpp,v 1.36 2003/07/05 00:40:45 cozman Exp $
    \author James Turk **/ @@ -140,7 +140,7 @@ void ZImage::Attach(SDL_Surface *surface) { rWidth = surface->w; rHeight = surface->h; - rTexID = SDL_GL_LoadTexture(surface,coord); //major helper, not written by me, found on libsdl.org + rTexID = SDL_GL_LoadTexture(surface,coord); //major helper, not written by me, from libsdl.org rTexMinX = coord[0]; rTexMinY = coord[1]; rTexMaxX = coord[2]; @@ -233,7 +233,16 @@ void ZImage::Bind() const void ZImage::Draw(int x, int y) const { - Draw(static_cast(x),static_cast(y)); + //source is same as float version, but uses glVertex2i + glColor4ub(255,255,255,rAlpha); + Bind(); + glBegin(GL_TRIANGLE_STRIP); + glTexCoord2f(rTexMinX,rTexMinY); glVertex2i(x,y); + glTexCoord2f(rTexMaxX,rTexMinY); glVertex2i(x+rWidth,y); + glTexCoord2f(rTexMinX,rTexMaxY); glVertex2i(x,y+rHeight); + glTexCoord2f(rTexMaxX,rTexMaxY); glVertex2i(x+rWidth,y+rHeight); + glEnd(); + glColor4ub(255,255,255,255); } void ZImage::Draw(float x, float y) const diff --git a/test/ZMouseTest.cpp b/test/ZMouseTest.cpp index 9a6f622..b975aaf 100644 --- a/test/ZMouseTest.cpp +++ b/test/ZMouseTest.cpp @@ -8,7 +8,7 @@ and the home of this Library is http://www.zengine.sourceforge.net *******************************************************************************/ -/*$Id: ZMouseTest.cpp,v 1.13 2003/06/11 05:51:47 cozman Exp $*/ +/*$Id: ZMouseTest.cpp,v 1.14 2003/07/05 00:40:45 cozman Exp $*/ #include #include @@ -78,7 +78,7 @@ void Test() //draw the images// text[engine->MouseInRect(&textRect)].Draw(100,100); text[2].Draw(0,0); - cursor.Draw(engine->MouseX()-8.0f,engine->MouseY()-8.0f); + cursor.Draw(engine->MouseX()-8,engine->MouseY()-8); engine->Update(); //update the screen } diff --git a/vc7/ZEngine.vcproj b/vc7/ZEngine.vcproj index 3d1ab63..a49788f 100644 --- a/vc7/ZEngine.vcproj +++ b/vc7/ZEngine.vcproj @@ -84,6 +84,9 @@ + + - - @@ -148,6 +148,9 @@ + + @@ -163,9 +166,6 @@ - -