-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoordinates.h
More file actions
executable file
·60 lines (51 loc) · 1.9 KB
/
Coordinates.h
File metadata and controls
executable file
·60 lines (51 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//------------------------------------------------------------------------------
/// Filename: Coordinates.h
/// Description: The Class represents the Coordinates
/// Authors:
/// Ralph Ankele (0931953)
/// Tutor: Manuel Weber
/// Group: 24
/// Created: 16.09.2011
/// Last change: 16.09.2011
//------------------------------------------------------------------------------
#ifndef COORDINATES_H_INCLUDED
#define COORDINATES_H_INCLUDED
class Coordinates
{
private:
//----------------------------------------------------------------------------
/// x value of Coordiante
signed int x_;
//----------------------------------------------------------------------------
/// y value of Coordinate
signed int y_;
public:
//----------------------------------------------------------------------------
/// Constructor
/// @param x is the x coordinate of an object
/// @param y is the y coordinate of an object
Coordinates(signed int x,
signed int y);
//----------------------------------------------------------------------------
/// Destructor
virtual ~Coordinates() throw();
//----------------------------------------------------------------------------
/// setX() setterMethod
/// @param x sets the x value
/// @return returns void
void setX( signed int x) { x_ = x;}
//----------------------------------------------------------------------------
/// setY() setterMethod
/// @param y sets the y value
/// @return returns void
void setY( signed int y) { y_ = y;}
//----------------------------------------------------------------------------
/// getX() getterMethod
/// @return returns the x value
signed int getX() { return x_;}
//----------------------------------------------------------------------------
/// getY() getterMethod
/// @return returns the y value
signed int getY() { return y_;}
};
#endif // COORDINATES_H_INCLUDED