dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
rawtile.h
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 #ifndef RAWTILE_H
28 #define RAWTILE_H
29 
30 #include "maptype.h"
31 #include "point.h"
32 #include <QString>
33 #include <QHash>
34 
35 namespace core {
36  class RawTile
37  {
38  friend uint qHash(RawTile const& tile);
39  friend bool operator==(RawTile const& lhs,RawTile const& rhs);
40 
41  public:
42  RawTile(const MapType::Types &Type,const core::Point &Pos,const int &Zoom);
43  QString ToString(void);
44  MapType::Types Type();
45  core::Point Pos();
46  int Zoom();
47  void setType(const MapType::Types &value);
48  void setPos(const core::Point &value);
49  void setZoom(const int &value);
50  private:
51  MapType::Types type;
52  core::Point pos;
53  int zoom;
54  };
55 }
56 #endif // RAWTILE_H
void setType(const MapType::Types &value)
Definition: rawtile.cpp:53
void setPos(const core::Point &value)
Definition: rawtile.cpp:57
friend bool operator==(RawTile const &lhs, RawTile const &rhs)
Definition: rawtile.cpp:72
MapType::Types Type()
Definition: rawtile.cpp:45
int Zoom()
Definition: rawtile.cpp:49
core::Point Pos()
Definition: rawtile.cpp:41
friend uint qHash(RawTile const &tile)
Definition: rawtile.cpp:65
void setZoom(const int &value)
Definition: rawtile.cpp:61
QString ToString(void)
Definition: rawtile.cpp:37
RawTile(const MapType::Types &Type, const core::Point &Pos, const int &Zoom)
Definition: rawtile.cpp:31