2022-05-19 01:51:26 -07:00
|
|
|
#ifndef LIGHT_H
|
|
|
|
#define LIGHT_H
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#define LIGHT_LEVEL_MIN (65536 / 4)
|
|
|
|
#define LIGHT_LEVEL_MAX 65536
|
|
|
|
|
|
|
|
typedef void AdjustLightIntensityProc(int elevation, int tile, int intensity);
|
|
|
|
|
|
|
|
int lightInit();
|
|
|
|
int lightGetLightLevel();
|
|
|
|
void lightSetLightLevel(int lightLevel, bool shouldUpdateScreen);
|
|
|
|
int _light_get_tile(int elevation, int tile);
|
|
|
|
int lightGetIntensity(int elevation, int tile);
|
|
|
|
void lightSetIntensity(int elevation, int tile, int intensity);
|
|
|
|
void lightIncreaseIntensity(int elevation, int tile, int intensity);
|
|
|
|
void lightDecreaseIntensity(int elevation, int tile, int intensity);
|
|
|
|
void lightResetIntensity();
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* LIGHT_H */
|