World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Random.h
См. документацию.
1
#pragma once
2
3
/* 304 */
4
#pragma pack(push, 1)
5
struct
Random
{
6
//----- (004BE365) --------------------------------------------------------
7
inline
Random
() {
8
Initialize
(0x5CCE1E47u);
9
min
= 0;
10
range
= 99;
11
}
12
13
void
SetRange
(
int
min
,
int
max);
14
double
GetRandom
();
15
int
GetInRange
();
16
void
Initialize
(
int
seed);
17
18
double
field_0
[5];
19
int
min
;
20
int
range
;
21
};
22
#pragma pack(pop)
23
24
extern
struct
Random
*
pRnd
;
// idb
Random::field_0
double field_0[5]
Definition:
Random.h:18
pRnd
struct Random * pRnd
Definition:
Random.cpp:5
Random::min
int min
Definition:
Random.h:19
Random::range
int range
Definition:
Random.h:20
Random::Random
Random()
Definition:
Random.h:7
Random::GetRandom
double GetRandom()
Definition:
Random.cpp:14
Random::GetInRange
int GetInRange()
Definition:
Random.cpp:28
Random
Definition:
Random.h:5
Random::Initialize
void Initialize(int seed)
Definition:
Random.cpp:36
Random::SetRange
void SetRange(int min, int max)
Definition:
Random.cpp:8
range
GLenum GLint * range
Definition:
SDL_opengl_glext.h:1872
Engine
Random.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:33. Создано системой
1.8.17