TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GridStates.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 
19 #ifndef TRINITY_GRIDSTATES_H
20 #define TRINITY_GRIDSTATES_H
21 
22 #include "GridDefines.h"
23 #include "NGrid.h"
24 
25 class Map;
26 
28 {
29  public:
30  virtual ~GridState() { };
31  virtual void Update(Map &, NGridType&, GridInfo &, uint32 t_diff) const = 0;
32 };
33 
35 {
36  public:
37  void Update(Map &, NGridType &, GridInfo &, uint32 t_diff) const override;
38 };
39 
41 {
42  public:
43  void Update(Map &, NGridType &, GridInfo &, uint32 t_diff) const override;
44 };
45 
47 {
48  public:
49  void Update(Map &, NGridType &, GridInfo &, uint32 t_diff) const override;
50 };
51 
53 {
54  public:
55  void Update(Map &, NGridType &, GridInfo &, uint32 t_diff) const override;
56 };
57 #endif
Definition: NGrid.h:77
Definition: NGrid.h:32
Definition: GridStates.h:52
Definition: GridStates.h:27
Definition: GridStates.h:34
Definition: GridStates.h:40
uint32_t uint32
Definition: Define.h:150
Definition: Map.h:259
#define TC_GAME_API
Definition: Define.h:134
virtual ~GridState()
Definition: GridStates.h:30
Definition: GridStates.h:46
virtual void Update(Map &, NGridType &, GridInfo &, uint32 t_diff) const =0
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150