diff options
author | 2014-03-06 11:32:25 +0000 | |
---|---|---|
committer | 2014-03-06 11:32:25 +0000 | |
commit | ebdc44aea86a1fe7eace4dca91128675519171f6 (patch) | |
tree | c32b18dbd25abf530c2ffcca4e42cfa5eb28d54a /libcgh.h | |
parent | b3c3e0348f19125b5123d6f5c87e2cc91fd0172f (diff) | |
download | bullet-lab-remix-ebdc44aea86a1fe7eace4dca91128675519171f6.tar.xz |
New cgh interfage RandomEngine replacing rand(). Other small fixes.
Diffstat (limited to 'libcgh.h')
-rw-r--r-- | libcgh.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,7 +1,7 @@ //Chrisoft Bullet Lab Remix HGE //Chrisoft Game Helper header //Copyright Chrisoft 2014 -//libcgh version 0005 +//libcgh version 0006 //Last full compatible version 0002 //^Modify that when big change is made^ #include <hge.h> @@ -81,6 +81,15 @@ struct TextureRect TextureRect(){} TextureRect(double _x,double _y,double _w,double _h){x=_x,y=_y,w=_w,h=_h;} }; +class RandomEngine +{ +private: + unsigned int cseed; +public: + void SetSeed(unsigned int seed); + int NextInt(int min,int max); + double NextDouble(double min,double max); +}; class CircleIndicator { private: |