From ebdc44aea86a1fe7eace4dca91128675519171f6 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Thu, 6 Mar 2014 11:32:25 +0000 Subject: New cgh interfage RandomEngine replacing rand(). Other small fixes. --- libcgh.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libcgh.h') diff --git a/libcgh.h b/libcgh.h index f78391c..3140946 100644 --- a/libcgh.h +++ b/libcgh.h @@ -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 @@ -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: -- cgit v1.2.3