Go to the documentation of this file.
35 #define HOURS_PER_DAY 24
40 #define DAYS_PER_WEEK 7
122 #endif // GAMEDATE_H__
static bool get_state(igzstream &in)
Load the state of the gamedate class from disk.
static u_int16 hour()
Return the hour of the current day.
Class to read data from a Gzip compressed file.
#define u_int32
32 bits long unsigned integer
static u_int16 weekday()
Get the current weekday.
Class to write data from a Gzip compressed file.
Keeps track of the time the player spent within the game so far.
static u_int32 time()
Get the current gametime.
Declares the igzstream, ogzstream and fileops classes.
static u_int16 minute()
Return the minute of the current hour.
static void put_state(ogzstream &out)
Save the state of the gamedate class to disk.
#define u_int16
16 bits long unsigned integer
static void update()
Update the game date.
static u_int32 parse_time(const std::string &time)
convert the time string to gametime minutes.
static u_int16 day()
Returns the current day in the gameworld.