Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/calendar.h

Go to the documentation of this file.
00001   /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
00002     || NoX-Wizard UO Server Emulator (NXW) [http://noxwizard.sourceforge.net]  ||
00003     ||                                                                         ||
00004     || This software is free software released under GPL2 license.             ||
00005     || You can find detailed license information in nox-wizard.cpp file.       ||
00006     ||                                                                         ||
00007     || For any question post to NoX-Wizard forums.                             ||
00008     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
00009 
00015 #ifndef __CALENDAR_H__
00016 #define __CALENDAR_H__
00017 
00023 namespace Calendar {
00024 
00025         extern int g_nWeekday, g_nDay, g_nMonth, g_nYear, g_nHour, g_nMinute;
00026         extern int g_nMaxWeekday, g_nMaxMonth;
00027         extern int g_nCurDawnHour, g_nCurDawnMin, g_nCurSunsetHour, g_nCurSunsetMin;
00028         extern int g_nWinterOverride;
00029         extern float g_fCurSnowMod, g_fCurRainMod, g_fCurDryMod;
00030 
00031         void loadCalendarScp ();
00032         bool advanceMinute();
00033         void setSeason(int nSeason);
00034         void commitSeason(P_CHAR pc);
00035 
00042         class cMonth
00043         {
00044                 public:
00045                         char*   m_strName;
00046                         int     m_nDays;
00047                         int     m_nCompensation;
00048                         float   m_fSnowMod;
00049                         float   m_fRainMod;
00050                         float   m_fDryMod;
00051                         int     m_nDawnHour;
00052                         int     m_nDawnMin;
00053                         int     m_nSunsetHour;
00054                         int     m_nSunsetMin;
00055                         int     m_nSeason;
00056                         int     getDays();
00057         };
00058 
00064         class cWeekday
00065         {
00066                 public:
00067                         char*   m_strName;
00068         };
00069 
00070         extern cMonth g_Months[];
00071         extern cWeekday g_Weekday[];
00072 }
00073 
00074 #endif
SourceForge.net Logo