fallout2-ce/src/random.h

27 lines
508 B
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef RANDOM_H
#define RANDOM_H
#include "db.h"
2022-09-23 05:43:44 -07:00
namespace fallout {
2022-05-19 01:51:26 -07:00
typedef enum Roll {
ROLL_CRITICAL_FAILURE,
ROLL_FAILURE,
ROLL_SUCCESS,
ROLL_CRITICAL_SUCCESS,
} Roll;
void randomInit();
void randomReset();
void randomExit();
int randomSave(File* stream);
int randomLoad(File* stream);
int randomRoll(int difficulty, int criticalSuccessModifier, int* howMuchPtr);
int randomBetween(int min, int max);
void randomSeedPrerandom(int seed);
2022-09-23 05:43:44 -07:00
} // namespace fallout
2022-05-19 01:51:26 -07:00
#endif /* RANDOM_H */