Go to the source code of this file.
Detailed Description
In-game time functions.
Definition in file time.c.
Define Documentation
Size of history buffer.
Definition at line 35 of file time.c.
Function Documentation
Computes the in-game time of the day.
- Parameters:
-
| tod | Where to store information. Must not be NULL. |
Definition at line 245 of file time.c.
| static void log_time |
( |
long |
process_utime | ) |
[static] |
Adds time to our history list.
Definition at line 121 of file time.c.
Prints the time.
- Parameters:
-
| op | Player who requested time. |
Definition at line 317 of file time.c.
Initialize all variables used in the timing routines.
Definition at line 101 of file time.c.
Gets the seconds.
- Returns:
- Seconds.
Definition at line 395 of file time.c.
| void set_max_time |
( |
long |
t | ) |
|
Sets the max speed. Can be called by a DM through the /speed command.
- Parameters:
-
Definition at line 237 of file time.c.
Checks how much time has elapsed since last tick. If it is less than max_time, the remaining time is slept with select().
Definition at line 149 of file time.c.
Players wants to know the time. Called through the /time command.
- Parameters:
-
| op | Player who requested time. |
Definition at line 352 of file time.c.
Variable Documentation
Initial value:
{
"Month of the Ice Dragon",
"Month of the Frost Giant",
"Month of the Clouds",
"Month of Gaea",
"Month of the Harvest",
"Month of Futility",
"Month of the Dragon",
"Month of the Sun",
"Month of the Falling",
"Month of the Dark Shades",
"Month of the Great Infernus",
"Month of the Ancient Darkness",
}
Months.
Definition at line 73 of file time.c.
Initial value: {
"Night",
"Dawn",
"Morning",
"Noon",
"Evening",
"Dusk"
}
Periods of day.
Definition at line 90 of file time.c.
Longest cycle time.
Definition at line 42 of file time.c.
Shortest cycle time.
Definition at line 44 of file time.c.
Historic data.
Definition at line 38 of file time.c.
Used by various function to determine how often to save the character.
Definition at line 46 of file time.c.
Initial value:
{
"The Season of New Year",
"The Season of Growth",
"The Season of Harvest",
"The Season of Decay",
"The Season of the Blizzard",
"\n"
}
In-game seasons.
Definition at line 50 of file time.c.
Initial value:
{
"the Day of the Moon",
"the Day of the Bull",
"the Day of the Deception",
"the Day of Thunder",
"the Day of Freedom",
"the Day of the Great Gods",
"the Day of the Sun"
}
Days of the week.
Definition at line 61 of file time.c.