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.
Class to write data from a Gzip compressed file.
static u_int16 weekday()
Get the current weekday.
Class to read data from a Gzip compressed file.
#define u_int16
16 bits long unsigned integer
static u_int16 hour()
Return the hour of the current day.
#define u_int32
32 bits long unsigned integer
static u_int16 day()
Returns the current day in the gameworld.
static u_int32 time()
Get the current gametime.
static u_int16 minute()
Return the minute of the current hour.
static u_int32 parse_time(const std::string &time)
convert the time string to gametime minutes.
static void put_state(ogzstream &out)
Save the state of the gamedate class to disk.
static void update()
Update the game date.
Declares the igzstream, ogzstream and fileops classes.
Keeps track of the time the player spent within the game so far.