-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.h
More file actions
37 lines (31 loc) · 702 Bytes
/
User.h
File metadata and controls
37 lines (31 loc) · 702 Bytes
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
//User.h
#pragma once
#include <qobject.h>
#include <qgeocoordinate.h>
#include "StepSizes.h"
class CUser : public QObject
{
Q_OBJECT
//Constructor
public:
CUser();
~CUser();
//Methods
public:
double GetLocationX();
double GetLocationY();
QGeoCoordinate GetCoordinate();
void MoveByStep(int dx, int dy);
void SetLocation(double x, double y);
QGeoCoordinate CalculateSWOffset(double x, double y);
QGeoCoordinate CalculateNEOffset(double x, double y);
double GetStepSize();
void ChangeStep(int direction);
bool stepAtMax();
bool stepAtMin();
//Member variables
private:
QGeoCoordinate m_location;
int m_stepIndex;
double m_StepSize;
};