annotate Random.h @ 2193:4842f58715ea

sub_47C3D7_get_fog_related_stuff to sub_47C3D7_get_fog_specular cleanup, IsTerrainSlopeTooHigh restoring commented out min,min/max,max implementation, some small changes in OnMapLoad, sub_4465DF_check_season attempted to pick the best readabilty/maintainability tradeoff
author Grumpy7
date Thu, 30 Jan 2014 22:09:10 +0100
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