TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
wdtfile.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2011 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 WDTFILE_H
20 #define WDTFILE_H
21 
22 #include "mpqfile.h"
23 #include "wmo.h"
24 #include <string>
25 #include <vector>
26 #include <cstdlib>
27 
28 class ADTFile;
29 
30 class WDTFile
31 {
32 private:
34  std::string filename;
35 public:
36  WDTFile(char* file_name, char* file_name1);
37  ~WDTFile(void);
38  bool init(char* map_id, unsigned int mapID);
39 
40  std::vector<std::string> gWmoInstansName;
41  int gnWMO;
42 
43  ADTFile* GetMap(int x, int z);
44 };
45 
46 #endif
int gnWMO
Definition: wdtfile.h:41
std::vector< std::string > gWmoInstansName
Definition: wdtfile.h:40
Definition: adtfile.h:110
Definition: System.cpp:71
Definition: mpqfile.h:32
bool init(char *map_id, unsigned int mapID)
Definition: wdtfile.cpp:40
Definition: wdtfile.h:30
G3D::int16 z
Definition: Vector3int16.h:46
WDTFile(char *file_name, char *file_name1)
Definition: wdtfile.cpp:35
ADTFile * GetMap(int x, int z)
Definition: wdtfile.cpp:119
MPQFile WDT
Definition: wdtfile.h:33
G3D::int16 x
Definition: Vector2int16.h:37
~WDTFile(void)
Definition: wdtfile.cpp:114
std::string filename
Definition: wdtfile.h:34