Documentation Area

CHAPTER 1
Light and Weather:
Per default, rooms have no light and no weather. Though every outside
room should have weather and every inside room should be lit, except we
are in a dark cave or dungeon.
Light and weather can be set with the set_weather function. The light
level normally is either weather dependent (in the night it is dark), or
permanently on, or permanently off. You can set one of these states with
LIGHT, LIGHT_ON or LIGHT_OFF.
The real values of these defines are shown in /include/room2.h, but in
any case you should use these defines, because the real implementation
and values might change, while your code should be portable.
You can set the weather and climate of your room with the (optional)
second and third arguments to set_weather. The defines for the different
weather and climate classes are also defined in /include/room2.h. You
can inform yourself about the Nemesis weather in the correspondig man
pages listed below. For example a valid use of set_weather would be:
set_weather(LIGHT, OUTSIDE, STANDARD);
More about weather and time can be found in the correspondig help and
man pages - see 'man weather' and 'man weather.advise' etc. as listed
below.
Changed/modified/modernised in August 2016.
See also: