~masgk3team/masgk3/roads

6 by Michał Janiszewski
use LF line endings instead of CRLF
1
#ifndef ROAD_HPP
2
#define ROAD_HPP
3
//-----//
11 by Michał Janiszewski
rebase Road to QLineF
4
#include <QLineF>
6 by Michał Janiszewski
use LF line endings instead of CRLF
5
//-----//
7 by fayl
reorganized code; added l-system road generator
6
#include "Entity.hpp"
7
//-----//
10 by Michał Janiszewski
bring peace to header includes - avoid unnecessary #includes in headers where simple declaration (or nothing at all) suffices
8
9
class QImage;
11 by Michał Janiszewski
rebase Road to QLineF
10
class QVector2D;
10 by Michał Janiszewski
bring peace to header includes - avoid unnecessary #includes in headers where simple declaration (or nothing at all) suffices
11
7 by fayl
reorganized code; added l-system road generator
12
class Road : public Entity
6 by Michał Janiszewski
use LF line endings instead of CRLF
13
{
11 by Michał Janiszewski
rebase Road to QLineF
14
	QLineF mLine;
6 by Michał Janiszewski
use LF line endings instead of CRLF
15
public:
11 by Michał Janiszewski
rebase Road to QLineF
16
	Road(const QVector2D &s, const QVector2D &e);
17
	Road(const QLineF &road);
7 by fayl
reorganized code; added l-system road generator
18
11 by Michał Janiszewski
rebase Road to QLineF
19
	const QVector2D Start() const;
20
	const QVector2D End()   const;
21
	const QLineF line() const;
12 by Michał Janiszewski
add "set" road line accessor
22
	void setLine(const QLineF &line);
8 by fayl
3D rendering
23
    bool Valid(const QImage*) const;
6 by Michał Janiszewski
use LF line endings instead of CRLF
24
};
25
//-----//
26
#endif // ROAD_HPP