nakedmudv3.3/
nakedmudv3.3/lib/
nakedmudv3.3/lib/logs/
nakedmudv3.3/lib/misc/
nakedmudv3.3/lib/players/
nakedmudv3.3/lib/txt/
nakedmudv3.3/lib/world/
nakedmudv3.3/lib/world/examples/
nakedmudv3.3/lib/world/examples/mproto/
nakedmudv3.3/lib/world/examples/oproto/
nakedmudv3.3/lib/world/examples/reset/
nakedmudv3.3/lib/world/examples/rproto/
nakedmudv3.3/lib/world/examples/trigger/
nakedmudv3.3/lib/world/limbo/
nakedmudv3.3/lib/world/limbo/room/
nakedmudv3.3/lib/world/limbo/rproto/
nakedmudv3.3/src/alias/
nakedmudv3.3/src/char_vars/
nakedmudv3.3/src/editor/
nakedmudv3.3/src/example_module/
nakedmudv3.3/src/help/
nakedmudv3.3/src/set_val/
nakedmudv3.3/src/socials/
nakedmudv3.3/src/time/
#ifndef __MUDTIME_H
#define __MUDTIME_H
//*****************************************************************************
//
// mudtime.h
//
// We can't use time.h, because it is a standard C header. A small module for
// handling time of day in the MUD.
//
//*****************************************************************************

//
// This must be put at the top of mud.h so the rest of the MUD knows that
// we've got the time module installed
// #define MODULE_TIME
//

#define MUD_HOUR       * 5 MINUTES
#define MUD_HOURS      * 5 MINUTES



//
// Set up the time module
//
void init_time();


//
// what day is it?
//
const char *get_day();


//
// what month is it?
//
const char *get_month();


//
// what hour is it
//
int get_hour();


//
// what year is it?
//
int get_year();


//
// What period of the day are we in?
//
bool is_morning();
bool is_afternoon();
bool is_evening();
bool is_night();


//
// If we have the time module installed, there is the option of
// supplying a night description for the room, that will be shifted
// to when it becomes evening/night time.
//
const char *roomGetNightDesc      (ROOM_DATA *room);
BUFFER     *roomGetNightDescBuffer(ROOM_DATA *room);
void        roomSetNightDesc      (ROOM_DATA *room, const char *desc);


#endif // __MUDTIME_H