map2d_widget
src
core
rawtile.h
Go to the documentation of this file.
1
12
/*
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
* for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with this program; if not, write to the Free Software Foundation, Inc.,
25
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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
core::RawTile
Definition:
rawtile.h:36
maptype.h
core::RawTile::Type
MapType::Types Type()
Definition:
rawtile.cpp:45
core::RawTile::setZoom
void setZoom(const int &value)
Definition:
rawtile.cpp:61
core::RawTile::RawTile
RawTile(const MapType::Types &Type, const core::Point &Pos, const int &Zoom)
Definition:
rawtile.cpp:31
core::MapType::Types
Types
Definition:
maptype.h:39
core
Definition:
accessmode.h:35
point.h
core::RawTile::Zoom
int Zoom()
Definition:
rawtile.cpp:49
core::RawTile::qHash
friend uint qHash(RawTile const &tile)
Definition:
rawtile.cpp:65
core::Point
Definition:
point.h:35
core::RawTile::setType
void setType(const MapType::Types &value)
Definition:
rawtile.cpp:53
core::RawTile::ToString
QString ToString(void)
Definition:
rawtile.cpp:37
core::RawTile::Pos
core::Point Pos()
Definition:
rawtile.cpp:41
core::RawTile::operator==
friend bool operator==(RawTile const &lhs, RawTile const &rhs)
Definition:
rawtile.cpp:72
core::RawTile::setPos
void setPos(const core::Point &value)
Definition:
rawtile.cpp:57
Generated by
1.8.13