TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WeatherMgr.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
22 
23 #ifndef __WEATHERMGR_H
24 #define __WEATHERMGR_H
25 
26 #include "Define.h"
27 
28 class Weather;
29 class Player;
30 
31 namespace WeatherMgr
32 {
34 
37  TC_GAME_API void RemoveWeather(uint32 zone_id);
38 
39  TC_GAME_API void SendFineWeatherUpdateToPlayer(Player* player);
40 
41  TC_GAME_API void Update(uint32 diff);
42 }
43 
44 #endif
void RemoveWeather(uint32 id)
Remove a Weather object for the given zoneid.
Definition: WeatherMgr.cpp:57
Definition: WeatherMgr.cpp:31
Weather * FindWeather(uint32 id)
Find a Weather object by the given zoneid.
Definition: WeatherMgr.cpp:50
void LoadWeatherData()
Definition: WeatherMgr.cpp:83
uint32_t uint32
Definition: Define.h:150
Weather * AddWeather(uint32 zone_id)
Add a Weather object to the list.
Definition: WeatherMgr.cpp:67
void SendFineWeatherUpdateToPlayer(Player *player)
Definition: WeatherMgr.cpp:144
#define TC_GAME_API
Definition: Define.h:134
Weather for one zone.
Definition: Weather.h:65
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150