weather.c

lima-1.0b5/lib/std/room/weather.c · 460 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

/*
** weather.c -- add weather interface for a room
**
** 950826, Deathblade: created (moved Yaynu's weather code)
*/

#include <daemons.h>

nosave private int weather;


void set_weather(int new_weather)
{
    weather = new_weather;
}
int query_weather()
{
    return weather;
}

string get_weather()
{
    if ( weather )
	return WEATHER_D->query_current_weather();

    return "";
}

Site Stats

Snippets: 1791
Codebases: 571