Mercurial > mm7
annotate Random.h @ 1477:7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Added support for most of mm6 resources, placeholders for mm8 resources.
Fixed few C4258
author | Nomad |
---|---|
date | Wed, 28 Aug 2013 18:43:07 +0200 |
parents | 9c0607679772 |
children |
rev | line source |
---|---|
0 | 1 #pragma once |
2 | |
3 | |
4 /* 304 */ | |
5 #pragma pack(push, 1) | |
6 struct Random | |
7 { | |
8 //----- (004BE365) -------------------------------------------------------- | |
9 inline Random() | |
10 { | |
11 Initialize(0x5CCE1E47u); | |
12 min = 0; | |
13 range = 99; | |
14 } | |
15 | |
16 | |
17 void SetRange(int min, int max); | |
18 double GetRandom(); | |
19 int GetInRange(); | |
20 void Initialize(int seed); | |
21 | |
22 double field_0[5]; | |
23 int min; | |
24 int range; | |
25 }; | |
26 #pragma pack(pop) | |
27 | |
28 | |
29 | |
30 | |
31 extern struct Random *pRnd; // idb |