-
Notifications
You must be signed in to change notification settings - Fork 1
/
numbers.h
37 lines (32 loc) · 1.56 KB
/
numbers.h
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
#ifndef NUMBERS_H
#define NUMBERS_H
#include <QObject>
#include "mapconstructor.h"
class Numbers : public QObject
{
Q_OBJECT
public:
Numbers() = delete;
Numbers(int dimensionsWidth, int dimensionsHeight, bool highlight = true);
QList<MapConstructor::constructParameters> getNumberConstructParameters(int position, int number, int segmentWidth);
private:
QList<MapConstructor::constructParameters> getZero(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getOne(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getTwo(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getThree(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getFour(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getFive(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getSix(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getSeven(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getEight(int position, int segmentWidth);
QList<MapConstructor::constructParameters> getNine(int position, int segmentWidth);
MapConstructor::constructParameters getLineSegment(int position, int index, int segmentWidth);
int getStartingTileIndex(int HorizonzalPosition, int verticalPosition, int index );
private:
int m_dimensionsWidth;
int m_dimensionsHeight;
int m_spacing;
int m_lineSegmentWidth;
bool m_highlight;
};
#endif // NUMBERS_H