Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/helpers/Los.h
Show All 16 Lines | ||||||||||
#ifndef INCLUDED_LOS | #ifndef INCLUDED_LOS | |||||||||
#define INCLUDED_LOS | #define INCLUDED_LOS | |||||||||
// It doesn't seem worth moving the implementation to c++ and early-declaring Grid | // It doesn't seem worth moving the implementation to c++ and early-declaring Grid | |||||||||
// 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. | ||||||||||
* 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). | ||||||||||
FreagarachUnsubmitted Not Done Inline Actions
Freagarach: | ||||||||||
*/ | ||||||||||
static constexpr i32 LOS_TILE_SIZE = 4; | ||||||||||
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 89 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator