[2771] Applied MaNGOS coding style (see trunk/bcpp.cfg).
[mangos-git.git] / src / game / Weather.h
bloba49458581c1928af1c03dc90857f9b1be1c47833
1 /*
2 * Copyright (C) 2005,2006 MaNGOS <http://www.mangosproject.org/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
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 General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WEATHER_H
20 #define __WEATHER_H
22 #include "Common.h"
24 // weather difines
25 #define WEATHER_NOSOUND 0
26 #define WEATHER_RAINLIGHT 8533
27 #define WEATHER_RAINMEDIUM 8534
28 #define WEATHER_RAINHEAVY 8535
29 #define WEATHER_SNOWLIGHT 8536
30 #define WEATHER_SNOWMEDIUM 8537
31 #define WEATHER_SNOWHEAVY 8538
32 #define WEATHER_SANDSTORMLIGHT 8556
33 #define WEATHER_SANDSTORMMEDIUM 8557
34 #define WEATHER_SANDSTORMHEAVY 8558
36 class Player;
38 class Weather
40 public:
41 Weather(Player *player);
42 ~Weather() { m_player = NULL;};
43 void ReGenerate();
44 void UpdateWeather();
45 void SetWeather(uint32 type, float grade);
46 uint32 GetZone() { return m_zone; };
47 bool Update(uint32 diff);
48 private:
49 uint32 GetSound();
50 uint32 m_zone;
51 uint32 m_type;
52 float m_grade;
53 Player *m_player;
54 uint32 m_interval;
55 uint32 m_timer;
57 #endif