PGE Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
common_features
point.h
1
/*
2
* Platformer Game Engine by Wohlstand, a free platform for game making
3
* Copyright (c) 2015 Vitaly Novichkov <admin@wohlnet.ru>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef PGE_Point_H
20
#define PGE_Point_H
21
22
class
PGE_PointF
;
23
class
PGE_Point
24
{
25
friend
class
PGE_PointF
;
26
public
:
27
PGE_Point
();
28
PGE_Point
(
const
PGE_Point
&p);
29
PGE_Point
(
const
PGE_PointF
&p);
30
PGE_Point
(
int
x,
int
y);
31
~
PGE_Point
();
32
void
setPoint(
int
x,
int
y);
33
void
setX(
int
x);
34
void
setY(
int
y);
35
bool
isNull();
36
int
x();
37
int
y();
38
friend
bool
operator==(
const
PGE_Point
& lhs,
const
PGE_Point
& rhs);
39
friend
bool
operator!=(
const
PGE_Point
& lhs,
const
PGE_Point
& rhs);
40
private
:
41
int
_x;
42
int
_y;
43
};
44
45
bool
operator==(
const
PGE_Point
& lhs,
const
PGE_Point
& rhs);
46
bool
operator!=(
const
PGE_Point
& lhs,
const
PGE_Point
& rhs);
47
48
#endif // PGE_Point_H
PGE_PointF
Definition:
pointf.h:23
PGE_Point
Definition:
point.h:23
Generated by
1.8.7