Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/helpers/Los.h
Show All 21 Lines | |||||
// since files must include "Los.h" explicitly, and that's only done in .cpp files. | // since files must include "Los.h" explicitly, and that's only done in .cpp files. | ||||
#include "Grid.h" | #include "Grid.h" | ||||
/** | /** | ||||
* Computing LOS data at a very high resolution is not necessary and quite slow. | * Computing LOS data at a very high resolution is not necessary and quite slow. | ||||
* This is the size, in meters, of every LOS tile. | * This is the size, in meters, of every LOS tile. | ||||
* (Note that this also means it is the minimal meaningful resolution of any vision range change). | * (Note that this also means it is the minimal meaningful resolution of any vision range change). | ||||
*/ | */ | ||||
static constexpr i32 LOS_TILE_SIZE = 4; | static constexpr i32 LOS_TILE_SIZE = 8; | ||||
enum class LosState : u8 | enum class LosState : u8 | ||||
{ | { | ||||
UNEXPLORED = 0, | UNEXPLORED = 0, | ||||
EXPLORED = 1, | EXPLORED = 1, | ||||
VISIBLE = 2, | VISIBLE = 2, | ||||
MASK = 3 | MASK = 3 | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator