Compounds | |
| class | cMonth |
| Class cMonth. More... | |
| class | cWeekday |
| Class cWeekday. More... | |
Functions | |
| bool | chrInStr (char c, char *str) |
| check if a charachter is in string | |
| void | setSeason (int nSeason) |
| sets a season globally | |
| void | commitSeason (P_CHAR pc) |
| commits season changes to a given player | |
| bool | advanceMinute () |
| advances time of a minute. returns true if date has changed | |
| void | parseMonth (int m, FILE *F) |
| parses a month from the calendar.scp file | |
| void | parseWeekday (int m, FILE *F) |
| parses a weekday from calendar.scp | |
| void | loadCalendarScp () |
| loads calendar.scp file | |
| void | parseHour (char *str, int &h, int &m) |
| parses an hour from the file | |
Variables | |
| int | g_nWeekday = 1 |
| int | g_nDay = 1 |
| int | g_nMonth = 1 |
| int | g_nYear = 1 |
| int | g_nHour = 0 |
| int | g_nMinute = 0 |
| int | g_nMaxWeekday = 7 |
| int | g_nMaxMonth = 12 |
| int | g_nCurDawnHour = 7 |
| int | g_nCurDawnMin = 30 |
| int | g_nCurSunsetHour = 19 |
| int | g_nCurSunsetMin = 30 |
| float | g_fCurSnowMod = 1.0f |
| float | g_fCurRainMod = 1.0f |
| float | g_fCurDryMod = 1.0f |
| int | g_nWinterOverride = 0 |
| bool | g_bInitOk = false |
| cMonth | g_Months [32] |
| cWeekday | g_Weekday [32] |
|
|
advances time of a minute. returns true if date has changed
|
|
||||||||||||
|
check if a charachter is in string
|
|
|
commits season changes to a given player
|
|
|
loads calendar.scp file
|
|
||||||||||||||||
|
parses an hour from the file
|
|
||||||||||||
|
parses a month from the calendar.scp file
|
|
||||||||||||
|
parses a weekday from calendar.scp
|
|
|
sets a season globally
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|