Atrinik Server  4.0
Data Structures | Macros | Typedefs
tod.h File Reference

Go to the source code of this file.

Data Structures

struct  _timeofday
 

Macros

#define PTICKS_PER_CLOCK   1500
 
#define HOURS_PER_DAY   24
 
#define DAYS_PER_WEEK   7
 
#define WEEKS_PER_MONTH   4
 
#define MONTHS_PER_YEAR   12
 
#define SEASONS_PER_YEAR   4
 
#define PERIODS_PER_DAY   10
 
#define WEEKS_PER_YEAR   (WEEKS_PER_MONTH * MONTHS_PER_YEAR)
 
#define DAYS_PER_MONTH   (DAYS_PER_WEEK * WEEKS_PER_MONTH)
 
#define DAYS_PER_YEAR   (DAYS_PER_MONTH * MONTHS_PER_YEAR)
 
#define HOURS_PER_WEEK   (HOURS_PER_DAY * DAYS_PER_WEEK)
 
#define HOURS_PER_MONTH   (HOURS_PER_WEEK * WEEKS_PER_MONTH)
 
#define HOURS_PER_YEAR   (HOURS_PER_MONTH * MONTHS_PER_YEAR)
 
#define MONTHS_PER_SEASON   (MONTHS_PER_YEAR / SEASONS_PER_YEAR)
 

Typedefs

typedef struct _timeofday timeofday_t
 

Detailed Description

Defines for in-game clock and ticks management.

Definition in file tod.h.

Macro Definition Documentation

#define DAYS_PER_MONTH   (DAYS_PER_WEEK * WEEKS_PER_MONTH)

Days per month.

Definition at line 52 of file tod.h.

#define DAYS_PER_WEEK   7

Days per week.

Definition at line 39 of file tod.h.

#define DAYS_PER_YEAR   (DAYS_PER_MONTH * MONTHS_PER_YEAR)

Days per year.

Definition at line 54 of file tod.h.

#define HOURS_PER_DAY   24

Hours per day.

Definition at line 37 of file tod.h.

#define HOURS_PER_MONTH   (HOURS_PER_WEEK * WEEKS_PER_MONTH)

Hours per month.

Definition at line 58 of file tod.h.

#define HOURS_PER_WEEK   (HOURS_PER_DAY * DAYS_PER_WEEK)

Hours per week.

Definition at line 56 of file tod.h.

#define HOURS_PER_YEAR   (HOURS_PER_MONTH * MONTHS_PER_YEAR)

Hours per year.

Definition at line 60 of file tod.h.

#define MONTHS_PER_SEASON   (MONTHS_PER_YEAR / SEASONS_PER_YEAR)

Months per season.

Definition at line 62 of file tod.h.

#define MONTHS_PER_YEAR   12

Months per year.

Definition at line 43 of file tod.h.

#define PERIODS_PER_DAY   10

Periods per day.

Definition at line 47 of file tod.h.

#define PTICKS_PER_CLOCK   1500

Ticks per clock.

Definition at line 34 of file tod.h.

#define SEASONS_PER_YEAR   4

Seasons per year.

Definition at line 45 of file tod.h.

#define WEEKS_PER_MONTH   4

Weeks per month.

Definition at line 41 of file tod.h.

#define WEEKS_PER_YEAR   (WEEKS_PER_MONTH * MONTHS_PER_YEAR)

Weeks per year.

Definition at line 50 of file tod.h.

Typedef Documentation

typedef struct _timeofday timeofday_t

Represents the in-game time.