From 3af5c54f604216e85eb04d1e02242440093eb03b Mon Sep 17 00:00:00 2001 From: James Turk Date: Sun, 27 Apr 2003 21:50:43 +0000 Subject: [PATCH] random numbers --- changelog.txt | 4 +- doc/html/SDLGL__Util_8h-source.html | 2 +- doc/html/ZE__Defines_8h-source.html | 2 +- doc/html/ZE__Defines_8h.html | 4 +- doc/html/ZE__Includes_8h-source.html | 29 +- doc/html/ZE__Includes_8h.html | 3 +- doc/html/ZE__Utility_8cpp.html | 2 +- doc/html/ZE__Utility_8h-source.html | 2 +- doc/html/ZE__Utility_8h.html | 2 +- doc/html/ZE__ZConfigFile_8cpp.html | 2 +- doc/html/ZE__ZConfigFile_8h-source.html | 2 +- doc/html/ZE__ZConfigFile_8h.html | 2 +- doc/html/ZE__ZEngine_8cpp.html | 2 +- doc/html/ZE__ZEngine_8h-source.html | 71 ++--- doc/html/ZE__ZEngine_8h.html | 2 +- doc/html/ZE__ZError_8cpp.html | 2 +- doc/html/ZE__ZError_8h-source.html | 2 +- doc/html/ZE__ZError_8h.html | 2 +- doc/html/ZE__ZFont_8cpp.html | 2 +- doc/html/ZE__ZFont_8h-source.html | 2 +- doc/html/ZE__ZFont_8h.html | 2 +- doc/html/ZE__ZImage_8cpp.html | 2 +- doc/html/ZE__ZImage_8h-source.html | 2 +- doc/html/ZE__ZImage_8h.html | 2 +- doc/html/ZE__ZMusic_8cpp.html | 2 +- doc/html/ZE__ZMusic_8h-source.html | 2 +- doc/html/ZE__ZMusic_8h.html | 2 +- doc/html/ZE__ZRect_8cpp.html | 2 +- doc/html/ZE__ZRect_8h-source.html | 2 +- doc/html/ZE__ZRect_8h.html | 2 +- doc/html/ZE__ZSound_8cpp.html | 2 +- doc/html/ZE__ZSound_8h-source.html | 2 +- doc/html/ZE__ZSound_8h.html | 2 +- doc/html/ZE__ZTimer_8cpp.html | 2 +- doc/html/ZE__ZTimer_8h-source.html | 2 +- doc/html/ZE__ZTimer_8h.html | 2 +- doc/html/ZEngine_8h-source.html | 2 +- doc/html/ZEngine_8h.html | 4 +- doc/html/annotated.html | 2 +- doc/html/classZE_1_1ZConfigFile-members.html | 2 +- doc/html/classZE_1_1ZConfigFile.html | 2 +- ..._1ZConfigFile_1_1ZCF__Section-members.html | 2 +- ...lassZE_1_1ZConfigFile_1_1ZCF__Section.html | 2 +- ...1ZConfigFile_1_1ZCF__Variable-members.html | 2 +- ...assZE_1_1ZConfigFile_1_1ZCF__Variable.html | 2 +- doc/html/classZE_1_1ZEngine-members.html | 23 +- doc/html/classZE_1_1ZEngine.html | 253 ++++++++++++++++-- doc/html/classZE_1_1ZError-members.html | 2 +- doc/html/classZE_1_1ZError.html | 2 +- doc/html/classZE_1_1ZFont-members.html | 2 +- doc/html/classZE_1_1ZFont.html | 2 +- doc/html/classZE_1_1ZImage-members.html | 2 +- doc/html/classZE_1_1ZImage.html | 2 +- doc/html/classZE_1_1ZMusic-members.html | 2 +- doc/html/classZE_1_1ZMusic.html | 2 +- doc/html/classZE_1_1ZRect-members.html | 2 +- doc/html/classZE_1_1ZRect.html | 2 +- doc/html/classZE_1_1ZSound-members.html | 2 +- doc/html/classZE_1_1ZSound.html | 2 +- doc/html/classZE_1_1ZTimer-members.html | 2 +- doc/html/classZE_1_1ZTimer.html | 2 +- doc/html/files.html | 3 +- doc/html/functions.html | 25 +- doc/html/globals.html | 2 +- doc/html/index.html | 2 +- doc/html/namespaceZE.html | 2 +- doc/html/namespacemembers.html | 2 +- doc/html/namespaces.html | 2 +- doc/html/physfsrwops_8h-source.html | 2 +- include/ZE_Includes.h | 3 +- include/ZE_ZClient.h | 3 +- include/ZE_ZEngine.h | 55 +++- include/ZE_ZServer.h | 3 +- include/external/mt19937ar.h | 23 ++ src/ZE_ZEngine.cpp | 27 +- src/external/mt19937ar.cpp | 167 ++++++++++++ todo.txt | 8 +- vc7/ZEngine.vcproj | 6 + 78 files changed, 666 insertions(+), 166 deletions(-) create mode 100755 include/external/mt19937ar.h create mode 100755 src/external/mt19937ar.cpp diff --git a/changelog.txt b/changelog.txt index 76a784b..5ebd897 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,5 @@ -ZEngine Version Log for Version 0.8.2 -$Id: changelog.txt,v 1.31 2003/04/27 18:54:58 cozman Exp $ +ZEngine Version Log for Version 0.8.3 +$Id: changelog.txt,v 1.32 2003/04/27 21:50:43 cozman Exp $ 0.8.3 -Fixed project files for people who don't want to add ZEngine to their path. diff --git a/doc/html/SDLGL__Util_8h-source.html b/doc/html/SDLGL__Util_8h-source.html index 5a62e59..49d9919 100755 --- a/doc/html/SDLGL__Util_8h-source.html +++ b/doc/html/SDLGL__Util_8h-source.html @@ -18,7 +18,7 @@ 00010 GLuint SDL_GL_LoadTexture(SDL_Surface *surface, GLfloat *texcoord); 00011 00012 #endif //__sdlgl_h__ -
Generated on Sun Apr 27 14:53:39 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Defines_8h-source.html b/doc/html/ZE__Defines_8h-source.html index 3b6f032..076bf28 100644 --- a/doc/html/ZE__Defines_8h-source.html +++ b/doc/html/ZE__Defines_8h-source.html @@ -37,7 +37,7 @@ 00046 typedef char ZByte; 00047 00048 #endif //__ze_defines_h__ -
Generated on Sun Apr 27 14:53:39 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Defines_8h.html b/doc/html/ZE__Defines_8h.html index 16efc53..28d5a72 100644 --- a/doc/html/ZE__Defines_8h.html +++ b/doc/html/ZE__Defines_8h.html @@ -10,7 +10,7 @@
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.11 2003/04/08 03:33:10 cozman Exp
+
Id
ZE_Defines.h,v 1.12 2003/04/27 18:55:00 cozman Exp

@@ -42,7 +42,7 @@ Definition file, holds #define statements describing optional features of ZEngin typedef char ZByte  Define a ZByte as a plain char (for SDL_net).

-
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Includes_8h-source.html b/doc/html/ZE__Includes_8h-source.html index 971d029..bb2d11e 100644 --- a/doc/html/ZE__Includes_8h-source.html +++ b/doc/html/ZE__Includes_8h-source.html @@ -40,20 +40,21 @@ 00046 #include "physfs.h" 00047 #include "external/physfsrwops.h" 00048 #endif -00049 -00050 #include <string> -00051 #include <vector> -00052 #include <queue> -00053 #include <list> -00054 #include <fstream> -00055 #include <cstdio> -00056 #include <cstdlib> -00057 #include <cstdarg> -00058 #include <cctype> -00059 using namespace std; -00060 -00061 #endif //__ze_includes_h__ -
Generated on Sun Apr 27 14:53:39 2003 for ZEngine by +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 using namespace std; +00061 +00062 #endif //__ze_includes_h__ +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Includes_8h.html b/doc/html/ZE__Includes_8h.html index c2e682c..cdebd1c 100644 --- a/doc/html/ZE__Includes_8h.html +++ b/doc/html/ZE__Includes_8h.html @@ -24,6 +24,7 @@ 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 "external/mt19937ar.h"
#include <string>
#include <vector>
#include <queue>
@@ -40,7 +41,7 @@ ZE_*.h files should only include this file and any other ZE_*.h files that they

Namespaces

namespace  std -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Utility_8cpp.html b/doc/html/ZE__Utility_8cpp.html index c3298c7..c93e97e 100755 --- a/doc/html/ZE__Utility_8cpp.html +++ b/doc/html/ZE__Utility_8cpp.html @@ -23,7 +23,7 @@ Source file containing open utilities for use inside and alongside ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Utility_8h-source.html b/doc/html/ZE__Utility_8h-source.html index 2e59b9c..fd1646e 100755 --- a/doc/html/ZE__Utility_8h-source.html +++ b/doc/html/ZE__Utility_8h-source.html @@ -47,7 +47,7 @@ 00073 00074 #endif //__ze_utility_h__ 00075 -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__Utility_8h.html b/doc/html/ZE__Utility_8h.html index 74c3c4d..f9fc15d 100755 --- a/doc/html/ZE__Utility_8h.html +++ b/doc/html/ZE__Utility_8h.html @@ -139,7 +139,7 @@ Safely free a Mix_Music* and set it to NULL. Safely free a TTF_Font and set it to NULL. -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZConfigFile_8cpp.html b/doc/html/ZE__ZConfigFile_8cpp.html index 523a0e7..35772fb 100644 --- a/doc/html/ZE__ZConfigFile_8cpp.html +++ b/doc/html/ZE__ZConfigFile_8cpp.html @@ -23,7 +23,7 @@ Implementation of ZConfigFile, the ZEngine INI-Style Config File.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZConfigFile_8h-source.html b/doc/html/ZE__ZConfigFile_8h-source.html index 1893783..1b73f8d 100644 --- a/doc/html/ZE__ZConfigFile_8h-source.html +++ b/doc/html/ZE__ZConfigFile_8h-source.html @@ -92,7 +92,7 @@ 00266 } 00267 00268 #endif //__ze_zconfigfile_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZConfigFile_8h.html b/doc/html/ZE__ZConfigFile_8h.html index 6c80b07..ebd2f51 100644 --- a/doc/html/ZE__ZConfigFile_8h.html +++ b/doc/html/ZE__ZConfigFile_8h.html @@ -25,7 +25,7 @@ Definition file for ZConfigFile, an INI-style Config format.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZEngine_8cpp.html b/doc/html/ZE__ZEngine_8cpp.html index 42e57d4..888cb89 100644 --- a/doc/html/ZE__ZEngine_8cpp.html +++ b/doc/html/ZE__ZEngine_8cpp.html @@ -23,7 +23,7 @@ Actual implementation of ZEngine singleton class, the core of ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZEngine_8h-source.html b/doc/html/ZE__ZEngine_8h-source.html index 8359f41..249f9fa 100644 --- a/doc/html/ZE__ZEngine_8h-source.html +++ b/doc/html/ZE__ZEngine_8h-source.html @@ -188,38 +188,49 @@ 00560 00567 void FlushErrors(); 00568 -00569 -00571 //Data Loading + Unloading// -00573 -00580 SDL_Surface* LoadImage(string filename); +00570 //Random Number Generation// +00572 +00580 void SeedRandom(unsigned long seed); 00581 -00582 #ifdef USE_SDL_MIXER -00583 -00590 Mix_Chunk* LoadSound(string filename); +00590 unsigned long RandLong(unsigned long max); 00591 -00599 Mix_Music* LoadMusic(string filename); -00600 #endif -00601 -00602 #ifdef USE_SDL_TTF -00603 -00611 TTF_Font* LoadFont(string filename, int size); -00612 #endif -00613 -00615 //Accessors// -00617 -00624 int Width(); -00625 -00632 int Height(); -00633 -00640 int BPP(); -00641 -00648 bool IsFullscreen(); -00649 }; -00650 -00651 } -00652 -00653 #endif //__ze_zengine_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +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 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZEngine_8h.html b/doc/html/ZE__ZEngine_8h.html index 8827056..0638c10 100644 --- a/doc/html/ZE__ZEngine_8h.html +++ b/doc/html/ZE__ZEngine_8h.html @@ -28,7 +28,7 @@ ZEngine Game Engine core Engine definition.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZError_8cpp.html b/doc/html/ZE__ZError_8cpp.html index 4c9a5fa..85cd46a 100755 --- a/doc/html/ZE__ZError_8cpp.html +++ b/doc/html/ZE__ZError_8cpp.html @@ -23,7 +23,7 @@ Implementation of ZError, the ZEngine internal error information storage class.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZError_8h-source.html b/doc/html/ZE__ZError_8h-source.html index 72dcfc9..c6f12e3 100755 --- a/doc/html/ZE__ZError_8h-source.html +++ b/doc/html/ZE__ZError_8h-source.html @@ -80,7 +80,7 @@ 00147 } 00148 00149 #endif //__ze_zerror_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZError_8h.html b/doc/html/ZE__ZError_8h.html index 21e9d3f..caf30a6 100755 --- a/doc/html/ZE__ZError_8h.html +++ b/doc/html/ZE__ZError_8h.html @@ -26,7 +26,7 @@ Definition file for ZError, the Error logging class for ZEngine. This class shou

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZFont_8cpp.html b/doc/html/ZE__ZFont_8cpp.html index 896c7d0..f771476 100644 --- a/doc/html/ZE__ZFont_8cpp.html +++ b/doc/html/ZE__ZFont_8cpp.html @@ -21,7 +21,7 @@ Implementation of ZFont, the basic Font class for ZEngine.
-
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZFont_8h-source.html b/doc/html/ZE__ZFont_8h-source.html index 9541ba6..04ebf22 100644 --- a/doc/html/ZE__ZFont_8h-source.html +++ b/doc/html/ZE__ZFont_8h-source.html @@ -88,7 +88,7 @@ 00232 #endif //USE_SDL_TTF 00233 00234 #endif //__ze_zfont_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZFont_8h.html b/doc/html/ZE__ZFont_8h.html index 81b6efd..10c0cfd 100644 --- a/doc/html/ZE__ZFont_8h.html +++ b/doc/html/ZE__ZFont_8h.html @@ -26,7 +26,7 @@ Definition file for ZFont, the basic Font class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZImage_8cpp.html b/doc/html/ZE__ZImage_8cpp.html index e05f60b..89eb9ed 100644 --- a/doc/html/ZE__ZImage_8cpp.html +++ b/doc/html/ZE__ZImage_8cpp.html @@ -23,7 +23,7 @@ Implementation of ZImage, the Image class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZImage_8h-source.html b/doc/html/ZE__ZImage_8h-source.html index 7b27137..a1bb400 100644 --- a/doc/html/ZE__ZImage_8h-source.html +++ b/doc/html/ZE__ZImage_8h-source.html @@ -106,7 +106,7 @@ 00330 } 00331 00332 #endif -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZImage_8h.html b/doc/html/ZE__ZImage_8h.html index e4d8725..ff6d601 100644 --- a/doc/html/ZE__ZImage_8h.html +++ b/doc/html/ZE__ZImage_8h.html @@ -25,7 +25,7 @@ Definition file for ZImage, the OpenGL version of the ZImage class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZMusic_8cpp.html b/doc/html/ZE__ZMusic_8cpp.html index 455ba56..705c04f 100644 --- a/doc/html/ZE__ZMusic_8cpp.html +++ b/doc/html/ZE__ZMusic_8cpp.html @@ -21,7 +21,7 @@ Implementation of ZMusic, the basic Music class for ZEngine.
-
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZMusic_8h-source.html b/doc/html/ZE__ZMusic_8h-source.html index 1635376..12b8dcd 100644 --- a/doc/html/ZE__ZMusic_8h-source.html +++ b/doc/html/ZE__ZMusic_8h-source.html @@ -78,7 +78,7 @@ 00183 #endif //USE_SDL_MIXER 00184 00185 #endif //__ze_zmusic_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZMusic_8h.html b/doc/html/ZE__ZMusic_8h.html index eb43e0c..7fe3a89 100644 --- a/doc/html/ZE__ZMusic_8h.html +++ b/doc/html/ZE__ZMusic_8h.html @@ -25,7 +25,7 @@ Definition file for ZMusic, the Music file wrapper for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZRect_8cpp.html b/doc/html/ZE__ZRect_8cpp.html index 69c1b21..61d58ca 100644 --- a/doc/html/ZE__ZRect_8cpp.html +++ b/doc/html/ZE__ZRect_8cpp.html @@ -23,7 +23,7 @@ Implementation of ZRect, the Rectangle class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZRect_8h-source.html b/doc/html/ZE__ZRect_8h-source.html index 9658e0a..563b81b 100644 --- a/doc/html/ZE__ZRect_8h-source.html +++ b/doc/html/ZE__ZRect_8h-source.html @@ -88,7 +88,7 @@ 00268 } //namespace ZE 00269 00270 #endif //__ze_zrect_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZRect_8h.html b/doc/html/ZE__ZRect_8h.html index 800d863..57ccea4 100644 --- a/doc/html/ZE__ZRect_8h.html +++ b/doc/html/ZE__ZRect_8h.html @@ -25,7 +25,7 @@ Definition file for ZRect, the Rectangle class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZSound_8cpp.html b/doc/html/ZE__ZSound_8cpp.html index cbc0dcf..792bd69 100644 --- a/doc/html/ZE__ZSound_8cpp.html +++ b/doc/html/ZE__ZSound_8cpp.html @@ -21,7 +21,7 @@ Implementation of ZSound, the basic Sound class for ZEngine.
-
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZSound_8h-source.html b/doc/html/ZE__ZSound_8h-source.html index a3f9f85..f6014c3 100644 --- a/doc/html/ZE__ZSound_8h-source.html +++ b/doc/html/ZE__ZSound_8h-source.html @@ -77,7 +77,7 @@ 00178 #endif //USE_SDL_MIXER 00179 00180 #endif //__ze_zsound_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZSound_8h.html b/doc/html/ZE__ZSound_8h.html index d53b940..d5d005a 100644 --- a/doc/html/ZE__ZSound_8h.html +++ b/doc/html/ZE__ZSound_8h.html @@ -25,7 +25,7 @@ Definition file for ZSound, the Sound Effect wrapper for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZTimer_8cpp.html b/doc/html/ZE__ZTimer_8cpp.html index ff1e921..b501058 100644 --- a/doc/html/ZE__ZTimer_8cpp.html +++ b/doc/html/ZE__ZTimer_8cpp.html @@ -23,7 +23,7 @@ Implementation of ZTimer, the basic Timer class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZTimer_8h-source.html b/doc/html/ZE__ZTimer_8h-source.html index 8078d13..35898df 100644 --- a/doc/html/ZE__ZTimer_8h-source.html +++ b/doc/html/ZE__ZTimer_8h-source.html @@ -55,7 +55,7 @@ 00114 } 00115 00116 #endif //__ze_ztimer_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZE__ZTimer_8h.html b/doc/html/ZE__ZTimer_8h.html index d0adc71..763f070 100644 --- a/doc/html/ZE__ZTimer_8h.html +++ b/doc/html/ZE__ZTimer_8h.html @@ -25,7 +25,7 @@ Definition file for ZTimer, the Timer class for ZEngine.

Namespaces

namespace  ZE -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZEngine_8h-source.html b/doc/html/ZEngine_8h-source.html index d15b2ce..17e416b 100644 --- a/doc/html/ZEngine_8h-source.html +++ b/doc/html/ZEngine_8h-source.html @@ -30,7 +30,7 @@ 00074 #endif 00075 00076 #endif //__zengine_h__ -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/ZEngine_8h.html b/doc/html/ZEngine_8h.html index 36be057..6b922ff 100644 --- a/doc/html/ZEngine_8h.html +++ b/doc/html/ZEngine_8h.html @@ -10,7 +10,7 @@
File Header:
File: ZEngine.h
Description: Public Header File for ZEngine.
Author(s): James Turk
-
Id
ZEngine.h,v 1.23 2003/03/15 03:34:08 cozman Exp
+
Id
ZEngine.h,v 1.24 2003/04/27 18:55:00 cozman Exp

@@ -32,7 +32,7 @@ Header file for ZEngine Game Engine from Concept of Zero, this is the file that Go to the source code of this file.
-
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 66703fe..32c92a1 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -19,7 +19,7 @@ ZE::ZSoundZSound class for playing sound effects. (WAV) ZE::ZTimerZTimer class for Timer use -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZConfigFile-members.html b/doc/html/classZE_1_1ZConfigFile-members.html index 91309a2..bb9b7bf 100644 --- a/doc/html/classZE_1_1ZConfigFile-members.html +++ b/doc/html/classZE_1_1ZConfigFile-members.html @@ -28,7 +28,7 @@ ZConfigFile()ZE::ZConfigFile ZConfigFile(string filename)ZE::ZConfigFile ~ZConfigFile()ZE::ZConfigFile [virtual] -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZConfigFile.html b/doc/html/classZE_1_1ZConfigFile.html index 15bc719..a0c8f46 100644 --- a/doc/html/classZE_1_1ZConfigFile.html +++ b/doc/html/classZE_1_1ZConfigFile.html @@ -877,7 +877,7 @@ Flush the file and clear the filename.
The documentation for this class was generated from the following files: -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
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 c5092e5..3a402be 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section-members.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section-members.html @@ -9,7 +9,7 @@

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 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html index 9ba471b..5be1d21 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Section.html @@ -21,7 +21,7 @@ list< ZCF_V
The documentation for this class was generated from the following file:
-
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
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 9afbce7..b52519d 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable-members.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable-members.html @@ -9,7 +9,7 @@

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 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html index 4819aa6..1472d87 100755 --- a/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html +++ b/doc/html/classZE_1_1ZConfigFile_1_1ZCF__Variable.html @@ -21,7 +21,7 @@ string ZE_ZConfigFile.h -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZEngine-members.html b/doc/html/classZE_1_1ZEngine-members.html index e92b295..4ad7a51 100644 --- a/doc/html/classZE_1_1ZEngine-members.html +++ b/doc/html/classZE_1_1ZEngine-members.html @@ -7,7 +7,7 @@
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. - + @@ -22,20 +22,20 @@ - + - + - - - - + + + + @@ -70,10 +70,15 @@ + + + + + @@ -87,10 +92,10 @@ - + -
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
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
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(string filename, int size)ZE::ZEngine
LoadImage(string filename)ZE::ZEngine
LoadMusic(string filename)ZE::ZEngine
LoadSound(string filename)ZE::ZEngine
LogError(ZError error)ZE::ZEngine [private]
mActiveZE::ZEngine [private]
mBPPZE::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
RButtonPressed()ZE::ZEngine
ReleaseInstance()ZE::ZEngine [static]
ReportError(ZErrorCode code, string desc="", string file="", unsigned int line=0)ZE::ZEngine
RequestQuit()ZE::ZEngine
SeedRandom(unsigned long seed)ZE::ZEngine
SetDesiredFramerate(Uint8 rate)ZE::ZEngine
SetErrorLog(bool logAll, string logFile="")ZE::ZEngine
SetEventFilter(SDL_EventFilter filter)ZE::ZEngine
ToggleFullscreen()ZE::ZEngine
UnpauseTimer()ZE::ZEngine
Update()ZE::ZEngine
Width()ZE::ZEngine
Width()ZE::ZEngine
WriteLog(string str)ZE::ZEngine
ZEngine()ZE::ZEngine [private]

Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZEngine.html b/doc/html/classZE_1_1ZEngine.html index 9e0467b..113f45d 100644 --- a/doc/html/classZE_1_1ZEngine.html +++ b/doc/html/classZE_1_1ZEngine.html @@ -96,22 +96,32 @@  Write to the log.

void FlushErrors ()  Flush Stack of Errors to file.

-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.

+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

ZEngine * GetInstance ()  Get Instance.

@@ -1743,7 +1753,200 @@ Write the error stack to the error log.
Since:
0. -

+

+ + + + +
+ + + + + + + + + + +
void ZE::ZEngine::SeedRandom unsigned long   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:
+ + +
seed Seed for random sequence.
+
+
+

+ + + + +
+ + + + + + + + + + +
unsigned long ZE::ZEngine::RandLong unsigned long   max
+
+ + + + + +
+   + + +

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

Since:
0.8.3
+
Parameters:
+ + +
max Limit for random number.
+
+
Returns:
Random unsigned long.
+
+

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

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

Since:
0.8.3
+
Parameters:
+ + + +
min Lower limit for random number.
max Upper limit for random number.
+
+
Returns:
Random long.
+
+

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

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

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

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

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

Since:
0.8.3
+
Parameters:
+ + + +
min Lower limit for random number.
max Upper limit for random number.
+
+
Returns:
Random double [min,max].
+
+

@@ -1778,7 +1981,7 @@ Loads an Image to an ImageData class which keeps vital information on the Image.
-

+

@@ -1813,7 +2016,7 @@ Loads a Sound to a SoundData class which keeps vital information on the Sound
-

+

@@ -1848,7 +2051,7 @@ Loads a Music Clip to a MusicData class which keeps vital information on the Mus
-

+

@@ -1893,7 +2096,7 @@ Loads a Font to a FontData class which keeps vital information on the Font
-

+

@@ -1922,7 +2125,7 @@ Get Width of Window or Fullscreen mode.
Returns:
-

+

@@ -1951,7 +2154,7 @@ Get Height of Window or Fullscreen mode.
Returns:
-

+

@@ -1980,7 +2183,7 @@ Get BPP of Window or Fullscreen mode.
Returns:
BP
-

+

@@ -2011,7 +2214,7 @@ Get Fullscreen setting of Display.
Returns:
True


The documentation for this class was generated from the following files: -
Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZError-members.html b/doc/html/classZE_1_1ZError-members.html index 4f934c1..d7c58c5 100755 --- a/doc/html/classZE_1_1ZError-members.html +++ b/doc/html/classZE_1_1ZError-members.html @@ -19,7 +19,7 @@ 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 14:53:40 2003 for ZEngine by +
Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
diff --git a/doc/html/classZE_1_1ZError.html b/doc/html/classZE_1_1ZError.html index a5e7655..707b47c 100755 --- a/doc/html/classZE_1_1ZError.html +++ b/doc/html/classZE_1_1ZError.html @@ -309,7 +309,7 @@ Return the string to be written to the logfile. Called by ZE_ZError.h
  • /src/ZE_ZError.cpp -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZFont-members.html b/doc/html/classZE_1_1ZFont-members.html index 45ca74d..17f6c87 100644 --- a/doc/html/classZE_1_1ZFont-members.html +++ b/doc/html/classZE_1_1ZFont-members.html @@ -31,7 +31,7 @@ ZFont()ZE::ZFont ZFont(string filename, int size)ZE::ZFont ~ZFont()ZE::ZFont [virtual] -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZFont.html b/doc/html/classZE_1_1ZFont.html index e22b5ad..6811176 100644 --- a/doc/html/classZE_1_1ZFont.html +++ b/doc/html/classZE_1_1ZFont.html @@ -764,7 +764,7 @@ 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 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZImage-members.html b/doc/html/classZE_1_1ZImage-members.html index 18b187a..287234b 100644 --- a/doc/html/classZE_1_1ZImage-members.html +++ b/doc/html/classZE_1_1ZImage-members.html @@ -45,7 +45,7 @@ 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 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZImage.html b/doc/html/classZE_1_1ZImage.html index db4233e..ff1a2cf 100644 --- a/doc/html/classZE_1_1ZImage.html +++ b/doc/html/classZE_1_1ZImage.html @@ -1240,7 +1240,7 @@ 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 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZMusic-members.html b/doc/html/classZE_1_1ZMusic-members.html index 52e4ce8..cae2a0f 100644 --- a/doc/html/classZE_1_1ZMusic-members.html +++ b/doc/html/classZE_1_1ZMusic-members.html @@ -25,7 +25,7 @@ ZMusic()ZE::ZMusic ZMusic(string filename)ZE::ZMusic ~ZMusic()ZE::ZMusic [virtual] -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZMusic.html b/doc/html/classZE_1_1ZMusic.html index eac214e..5bc7a53 100644 --- a/doc/html/classZE_1_1ZMusic.html +++ b/doc/html/classZE_1_1ZMusic.html @@ -524,7 +524,7 @@ 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 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZRect-members.html b/doc/html/classZE_1_1ZRect-members.html index 7b9a049..b713f58 100644 --- a/doc/html/classZE_1_1ZRect-members.html +++ b/doc/html/classZE_1_1ZRect-members.html @@ -36,7 +36,7 @@ ZRect(const SDL_Rect &rect)ZE::ZRect ZRect(const ZRect &rhs)ZE::ZRect ~ZRect()ZE::ZRect [virtual] -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZRect.html b/doc/html/classZE_1_1ZRect.html index 60dda12..22197c5 100644 --- a/doc/html/classZE_1_1ZRect.html +++ b/doc/html/classZE_1_1ZRect.html @@ -979,7 +979,7 @@ Access private height member.
    Returns:
    Value of m
    The documentation for this class was generated from the following files: -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZSound-members.html b/doc/html/classZE_1_1ZSound-members.html index e047969..99c0b63 100644 --- a/doc/html/classZE_1_1ZSound-members.html +++ b/doc/html/classZE_1_1ZSound-members.html @@ -25,7 +25,7 @@ ZSound()ZE::ZSound ZSound(string filename)ZE::ZSound ~ZSound()ZE::ZSound [virtual] -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZSound.html b/doc/html/classZE_1_1ZSound.html index c93398e..4e8e7b4 100644 --- a/doc/html/classZE_1_1ZSound.html +++ b/doc/html/classZE_1_1ZSound.html @@ -497,7 +497,7 @@ 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 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZTimer-members.html b/doc/html/classZE_1_1ZTimer-members.html index 6866c7c..970f45f 100644 --- a/doc/html/classZE_1_1ZTimer-members.html +++ b/doc/html/classZE_1_1ZTimer-members.html @@ -20,7 +20,7 @@ Unpause()ZE::ZTimer ZTimer(bool useZEngine=true)ZE::ZTimer ~ZTimer()ZE::ZTimer [virtual] -
    Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/classZE_1_1ZTimer.html b/doc/html/classZE_1_1ZTimer.html index 3fc9b6b..22aed8b 100644 --- a/doc/html/classZE_1_1ZTimer.html +++ b/doc/html/classZE_1_1ZTimer.html @@ -285,7 +285,7 @@ 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 14:53:40 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/files.html b/doc/html/files.html index 527faee..fb80a26 100644 --- a/doc/html/files.html +++ b/doc/html/files.html @@ -22,6 +22,7 @@ /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/ZE_Utility.cppSource file for ZEngine utility functions @@ -37,7 +38,7 @@ /src/ZE_ZSound.cppSource file for ZSound /src/ZE_ZTimer.cppSource file for ZTimer -
    Generated on Sun Apr 27 14:53:39 2003 for ZEngine by +
    Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
    diff --git a/doc/html/functions.html b/doc/html/functions.html index cfc4baa..c057a09 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -20,7 +20,7 @@ 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 -

    • CheckEvents() @@ -73,7 +73,7 @@ Here is a list of all documented class members with links to the class documenta

      - h -

      - i -

      @@ -165,7 +165,9 @@ Here is a list of all documented class members with links to the class documenta

      - r -

      • rAlpha -: ZE::ZImage
      • rBGColor +: ZE::ZImage
      • RandDouble() +: ZE::ZEngine
      • RandLong() +: ZE::ZEngine
      • rBGColor : ZE::ZFont
      • RButtonPressed() : ZE::ZEngine
      • rChannelID : ZE::ZSound
      • rCode @@ -207,7 +209,8 @@ Here is a list of all documented class members with links to the class documenta
        • SDLrect() : ZE::ZRect
        • section -: ZE::ZConfigFile::ZCF_Section
        • sErrorDesc +: ZE::ZConfigFile::ZCF_Section
        • SeedRandom() +: ZE::ZEngine
        • sErrorDesc : ZE::ZError
        • SetAlpha() : ZE::ZImage
        • SetBGColor() : ZE::ZFont
        • SetBool() @@ -256,7 +259,7 @@ Here is a list of all documented class members with links to the class documenta

          - w -

          - x -

            @@ -289,7 +292,7 @@ Here is a list of all documented class members with links to the class documenta : ZE::ZRect
          • ~ZSound() : ZE::ZSound
          • ~ZTimer() : ZE::ZTimer
          -
          Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
          Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
          diff --git a/doc/html/globals.html b/doc/html/globals.html index 1597ce8..9f2015f 100644 --- a/doc/html/globals.html +++ b/doc/html/globals.html @@ -35,7 +35,7 @@ Here is a list of all documented file members with links to the documentation: -
          Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
          Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
          diff --git a/doc/html/index.html b/doc/html/index.html index 7d20909..cac5877 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -36,7 +36,7 @@ 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 14:53:39 2003 for ZEngine by + Kevin Watters kwatters@adelphia.net - Fix to ZImage::SetColorKey<br>
          Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
          diff --git a/doc/html/namespaceZE.html b/doc/html/namespaceZE.html index 8d367a4..086dd1f 100644 --- a/doc/html/namespaceZE.html +++ b/doc/html/namespaceZE.html @@ -181,7 +181,7 @@ Takes identifiers out of fmtstr and parses them, replacing them with coorespond -
          Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
          Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
          diff --git a/doc/html/namespacemembers.html b/doc/html/namespacemembers.html index 43a7483..44d8fd9 100644 --- a/doc/html/namespacemembers.html +++ b/doc/html/namespacemembers.html @@ -37,7 +37,7 @@ 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 14:53:40 2003 for ZEngine by +
        Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
        diff --git a/doc/html/namespaces.html b/doc/html/namespaces.html index 1ff9600..c3c03ff 100644 --- a/doc/html/namespaces.html +++ b/doc/html/namespaces.html @@ -9,7 +9,7 @@

        ZEngine Namespace List

        Here is a list of all documented namespaces with brief descriptions:
        ZEZEngine Namespace
        -
        Generated on Sun Apr 27 14:53:40 2003 for ZEngine by +
        Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
        diff --git a/doc/html/physfsrwops_8h-source.html b/doc/html/physfsrwops_8h-source.html index feeaf3b..b2387f7 100644 --- a/doc/html/physfsrwops_8h-source.html +++ b/doc/html/physfsrwops_8h-source.html @@ -46,7 +46,7 @@ 00078 00079 /* end of physfsrwops.h ... */ 00080 -
        Generated on Sun Apr 27 14:53:39 2003 for ZEngine by +
        Generated on Sun Apr 27 17:49:38 2003 for ZEngine by doxygen1.3-rc2
        diff --git a/include/ZE_Includes.h b/include/ZE_Includes.h index 065193e..3b82362 100644 --- a/include/ZE_Includes.h +++ b/include/ZE_Includes.h @@ -13,7 +13,7 @@ File: ZE_Includes.h
        Description: Header file for ZEngine universal includes.
        Author(s): James Turk
        -$Id: ZE_Includes.h,v 1.6 2003/02/16 21:38:50 cozman Exp $
        +$Id: ZE_Includes.h,v 1.7 2003/04/27 21:50:47 cozman Exp $
        \file ZE_Includes.h \brief Include file for SDL and C++ Includes that many ZEngine files need. @@ -46,6 +46,7 @@ $Id: ZE_Includes.h,v 1.6 2003/02/16 21:38:50 cozman Exp $
        #include "physfs.h" #include "external/physfsrwops.h" #endif +#include "external/mt19937ar.h" #include #include diff --git a/include/ZE_ZClient.h b/include/ZE_ZClient.h index 73226a0..ef3678d 100755 --- a/include/ZE_ZClient.h +++ b/include/ZE_ZClient.h @@ -13,7 +13,7 @@ File: ZE_ZClient.h
        Description: Header file for core ZEngine TCP Client Object.
        Author(s): James Turk
        -$Id: ZE_ZClient.h,v 1.2 2003/03/15 03:27:19 cozman Exp $
        +$Id: ZE_ZClient.h,v 1.3 2003/04/27 21:50:47 cozman Exp $
        \file ZE_ZClient.h \brief Definition file for ZClient. @@ -33,6 +33,7 @@ namespace ZE /*! \brief ZEngine class for a simplified TCP client. + \since 0.8.3 ZClient net client class, used to create a simple TCP game client for use with ZServer. **/ diff --git a/include/ZE_ZEngine.h b/include/ZE_ZEngine.h index 3676328..843848d 100644 --- a/include/ZE_ZEngine.h +++ b/include/ZE_ZEngine.h @@ -13,7 +13,7 @@ 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.21 2003/04/18 21:59:56 cozman Exp $
        +$Id: ZE_ZEngine.h,v 1.22 2003/04/27 21:50:47 cozman Exp $
        \file ZE_ZEngine.h \brief Definition file for core ZEngine class. @@ -566,6 +566,59 @@ class ZEngine **/ void FlushErrors(); + //////////////////////////// + //Random Number Generation// + //////////////////////////// + /*! + \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 + \param seed Seed for random sequence. + **/ + void SeedRandom(unsigned long seed); + + /*! + \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); + + /*! + \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); + + /*! + \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_ZServer.h b/include/ZE_ZServer.h index 58fe6dc..eec9ddd 100755 --- a/include/ZE_ZServer.h +++ b/include/ZE_ZServer.h @@ -13,7 +13,7 @@ File: ZE_ZServer.h
        Description: Header file for core ZEngine TCP Server Object.
        Author(s): James Turk
        -$Id: ZE_ZServer.h,v 1.3 2003/03/19 04:12:52 cozman Exp $
        +$Id: ZE_ZServer.h,v 1.4 2003/04/27 21:50:47 cozman Exp $
        \file ZE_ZServer.h \brief Definition file for ZServer. @@ -33,6 +33,7 @@ namespace ZE /*! \brief ZEngine class for simplified TCP server. + \since 0.8.3 ZServer server class, used to create a simple TCP game server for use with ZClient. A very simple turnaround server, all the server does is accept connections and relay all recieved data to all other clients. diff --git a/include/external/mt19937ar.h b/include/external/mt19937ar.h new file mode 100755 index 0000000..ed8c9ea --- /dev/null +++ b/include/external/mt19937ar.h @@ -0,0 +1,23 @@ +#ifndef __mt19937ar__ +#define __mt19937ar__ + +//This .h file written for ZEngine by James Turk to declare the methods implemented in mt19937ar.c +//See mt19937ar.c for license of the Mersenne Twister. + +#include //changed for ZEngine +/* Period parameters */ +#define N 624 +#define M 397 +#define MATRIX_A 0x9908b0dfUL /* constant vector a */ +#define UPPER_MASK 0x80000000UL /* most significant w-r bits */ +#define LOWER_MASK 0x7fffffffUL /* least significant r bits */ + +void init_genrand(unsigned long s); +unsigned long genrand_int32(void); +long genrand_int31(void); +double genrand_real1(void); +double genrand_real2(void); +double genrand_real3(void); +double genrand_res53(void); + +#endif //__mt19937ar__ \ No newline at end of file diff --git a/src/ZE_ZEngine.cpp b/src/ZE_ZEngine.cpp index f48836b..13d9037 100644 --- a/src/ZE_ZEngine.cpp +++ b/src/ZE_ZEngine.cpp @@ -13,7 +13,7 @@ File: ZE_ZEngine.cpp
        Description: Implementation source file for ZEngine library main singleton class.
        Author(s): James Turk
        -$Id: ZE_ZEngine.cpp,v 1.34 2003/04/08 03:30:50 cozman Exp $
        +$Id: ZE_ZEngine.cpp,v 1.35 2003/04/27 21:50:48 cozman Exp $
        \file ZE_ZEngine.cpp \brief Central source file for ZEngine. @@ -631,6 +631,31 @@ void ZEngine::FlushErrors() } } +void ZEngine::SeedRandom(unsigned long seed) +{ + init_genrand(seed); +} + +unsigned long ZEngine::RandLong(unsigned long max) +{ + return genrand_int32()%max; +} + +long ZEngine::RandLong(long min, long max) +{ + return min + genrand_int32()%(max-min); +} + +double ZEngine::RandDouble() +{ + return genrand_real2(); +} + +double ZEngine::RandDouble(double min, double max) +{ + return min + (genrand_real1()*(max-min)); +} + SDL_Surface* ZEngine::LoadImage(string filename) { SDL_Surface *image; diff --git a/src/external/mt19937ar.cpp b/src/external/mt19937ar.cpp new file mode 100755 index 0000000..a35fe85 --- /dev/null +++ b/src/external/mt19937ar.cpp @@ -0,0 +1,167 @@ +/* + A C-program for MT19937, with initialization improved 2002/1/26. + Coded by Takuji Nishimura and Makoto Matsumoto. + + Before using, initialize the state by using init_genrand(seed) + or init_by_array(init_key, key_length). + + Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + 3. The names of its contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + Any feedback is very welcome. + http://www.math.keio.ac.jp/matumoto/emt.html + email: matumoto@math.keio.ac.jp +*/ + +//IMPORTANT NOTICE +//some of this file moved to mt19937ar.h, this file originally mt19937ar.c +//minor changes made for C++ compilation (all for ZEngine project) +#include "ZE_ZEngine.h" + +static unsigned long mt[N]; /* the array for the state vector */ +static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */ + +/* initializes mt[N] with a seed */ +void init_genrand(unsigned long s) +{ + mt[0]= s & 0xffffffffUL; + for (mti=1; mti> 30)) + mti); + /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ + /* In the previous versions, MSBs of the seed affect */ + /* only MSBs of the array mt[]. */ + /* 2002/01/09 modified by Makoto Matsumoto */ + mt[mti] &= 0xffffffffUL; + /* for >32 bit machines */ + } +} + +/* initialize by an array with array-length */ +/* init_key is the array for initializing keys */ +/* key_length is its length */ +void init_by_array(unsigned long init_key[], unsigned long key_length) +{ + unsigned int i, j, k; + init_genrand(19650218UL); + i=1; j=0; + k = (N>key_length ? N : key_length); + for (; k; k--) { + mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525UL)) + + init_key[j] + j; /* non linear */ + mt[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */ + i++; j++; + if (i>=N) { mt[0] = mt[N-1]; i=1; } + if (j>=key_length) j=0; + } + for (k=N-1; k; k--) { + mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1566083941UL)) + - i; /* non linear */ + mt[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */ + i++; + if (i>=N) { mt[0] = mt[N-1]; i=1; } + } + + mt[0] = 0x80000000UL; /* MSB is 1; assuring non-zero initial array */ +} + +/* generates a random number on [0,0xffffffff]-interval */ +unsigned long genrand_int32(void) +{ + unsigned long y; + static unsigned long mag01[2]={0x0UL, MATRIX_A}; + /* mag01[x] = x * MATRIX_A for x=0,1 */ + + if (mti >= N) { /* generate N words at one time */ + int kk; + + if (mti == N+1) /* if init_genrand() has not been called, */ + init_genrand(5489UL); /* a default initial seed is used */ + + for (kk=0;kk> 1) ^ mag01[y & 0x1UL]; + } + for (;kk> 1) ^ mag01[y & 0x1UL]; + } + y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1UL]; + + mti = 0; + } + + y = mt[mti++]; + + /* Tempering */ + y ^= (y >> 11); + y ^= (y << 7) & 0x9d2c5680UL; + y ^= (y << 15) & 0xefc60000UL; + y ^= (y >> 18); + + return y; +} + +/* generates a random number on [0,0x7fffffff]-interval */ +long genrand_int31(void) +{ + return (long)(genrand_int32()>>1); +} + +/* generates a random number on [0,1]-real-interval */ +double genrand_real1(void) +{ + return genrand_int32()*(1.0/4294967295.0); + /* divided by 2^32-1 */ +} + +/* generates a random number on [0,1)-real-interval */ +double genrand_real2(void) +{ + return genrand_int32()*(1.0/4294967296.0); + /* divided by 2^32 */ +} + +/* generates a random number on (0,1)-real-interval */ +double genrand_real3(void) +{ + return (((double)genrand_int32()) + 0.5)*(1.0/4294967296.0); + /* divided by 2^32 */ +} + +/* generates a random number on [0,1) with 53-bit resolution*/ +double genrand_res53(void) +{ + unsigned long a=genrand_int32()>>5, b=genrand_int32()>>6; + return(a*67108864.0+b)*(1.0/9007199254740992.0); +} +/* These real versions are due to Isaku Wada, 2002/01/09 added */ diff --git a/todo.txt b/todo.txt index e7039e0..87f7fb4 100644 --- a/todo.txt +++ b/todo.txt @@ -1,13 +1,11 @@ ZEngine Todo List - -Random number class - -Net Example - -Integrate Particle Engine + -Integrate Particle Engine (Particle Engine shell complete, working on integration) + -Net Example (waiting on finalized net classes) -Add Support for PhysFS in ZMusic. (Waiting on SDL_mixer.) -ZSprite class (XML?) -Entirely New ZFont class, using display lists - -FreeBSD support / OSX support + -OSX support -Lua Scripting Integration Things to add outside ZEngine: - external widget library (Gewi) Examples + Tutorials \ No newline at end of file diff --git a/vc7/ZEngine.vcproj b/vc7/ZEngine.vcproj index 50c615e..a5cd3ac 100644 --- a/vc7/ZEngine.vcproj +++ b/vc7/ZEngine.vcproj @@ -99,6 +99,9 @@ + + @@ -154,6 +157,9 @@ + +