annotate Random.h @ 2151:92511cd8fcdb

Cleaned some variables.
author Nomad
date Wed, 08 Jan 2014 22:29:11 +0200
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 304 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct Random
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 //----- (004BE365) --------------------------------------------------------
Ritor1
parents:
diff changeset
9 inline Random()
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 Initialize(0x5CCE1E47u);
Ritor1
parents:
diff changeset
12 min = 0;
Ritor1
parents:
diff changeset
13 range = 99;
Ritor1
parents:
diff changeset
14 }
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17 void SetRange(int min, int max);
Ritor1
parents:
diff changeset
18 double GetRandom();
Ritor1
parents:
diff changeset
19 int GetInRange();
Ritor1
parents:
diff changeset
20 void Initialize(int seed);
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22 double field_0[5];
Ritor1
parents:
diff changeset
23 int min;
Ritor1
parents:
diff changeset
24 int range;
Ritor1
parents:
diff changeset
25 };
Ritor1
parents:
diff changeset
26 #pragma pack(pop)
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 extern struct Random *pRnd; // idb