roguish/lights.hpp

31 lines
460 B
C++

#pragma once
#include <array>
#include "dbc.hpp"
#include "point.hpp"
#include <algorithm>
#include "map.hpp"
namespace lighting {
struct LightSource {
int strength = 0; // lower is better
int distance = 1; // higher is farther, in squares
};
const int MIN = 40;
const int MAX = 220;
const int MID = 140;
const std::array<int, 10> LEVELS{
MAX,
200,
180,
160,
MID,
120,
100,
80,
60,
MIN,
};
}