Add infos into target window
[ryzomcore.git] / ryzom / server / src / entities_game_service / weather / weather.h
blobcf694bc14a21c6fc62b8dc7c3e70b0be6ad0af57
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef RY_WEATHER_H
20 #define RY_WEATHER_H
22 #include "game_share/cdb.h"
23 #include "game_share/cdb_leaf.h"
24 #include "game_share/cdb_branch.h"
25 #include "game_share/cdb_synchronised.h"
27 #include "game_share/weather_cfg.h"
29 #include "game_share/property_base_type.h"
30 #include "game_share/property_container.h"
31 #include "game_share/container_property_receiver.h"
33 class CWeather
35 public:
36 enum EDayCycle
38 dawn = 0,
39 day,
40 twilight,
41 night
44 // Constructor
45 static void init();
47 // Update Ryzom time
48 static void updateRyzomTime();
50 // Get Ryzom Time
51 static float getRyzomTime() { return _RyzomTime.getValue(); }
53 // Get Day Cycle
54 static uint8 getDayCycle() { return _DayCycle.getValue(); }
56 // get string of day cycle
57 static const std::string& toString( uint8 );
59 private:
60 static CPropertyBaseType< float > _RyzomTime;
61 static CPropertyBaseType< uint8 > _DayCycle;
63 #endif // RY_WEATHER_H
65 /* End of file weather.h */