[Main page] [Overview]   /std /living /get_light_level
SYNOPSIS
int get_light_level()
FILE
/std/living/sense.h
DESCRIPTION
Returns the current light level this living is in, and calculates ambient
and total light of the environment as well as other light
sources into it. Returns one of LIGHTLEVEL_NONE, LIGHTLEVEL_SHADY,
LIGHTLEVEL_FULL or LIGHTLEVEL_BLINDED.
The default implementation will never return LIGHTLEVEL_BLINDED - this
can only be achieved through overrides/shadows.
SEE ALSO
/include/light.h