aboutsummaryrefslogtreecommitdiff
path: root/libcgh.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-06 11:32:25 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-06 11:32:25 +0000
commitebdc44aea86a1fe7eace4dca91128675519171f6 (patch)
treec32b18dbd25abf530c2ffcca4e42cfa5eb28d54a /libcgh.h
parentb3c3e0348f19125b5123d6f5c87e2cc91fd0172f (diff)
downloadbullet-lab-remix-ebdc44aea86a1fe7eace4dca91128675519171f6.tar.xz
New cgh interfage RandomEngine replacing rand(). Other small fixes.
Diffstat (limited to 'libcgh.h')
-rw-r--r--libcgh.h11
1 files changed, 10 insertions, 1 deletions
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 <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: