-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlavirint.hpp
More file actions
55 lines (48 loc) · 1.14 KB
/
lavirint.hpp
File metadata and controls
55 lines (48 loc) · 1.14 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
/**
* @file lavirint.hpp
* @brief Deklaracija klase Lavirint
* @version 1.0
*
* @see element.hpp
*
* @author Bogdan Ljubinković SV2/2023
* @date 27.12.2024. 18:08:07
*
* @see lavirint.cpp
* @see lavirint_utils.hpp
* @see element.hpp
*/
#ifndef LAVIRINT_HPP
#define LAVIRINT_HPP
#include "element.hpp"
#include "predmeti.hpp"
/**
* @brief Klasa Lavirint
*
* Klasa Lavirint koja predstavlja lavirint.
*
* @param brojRedova broj redova
* @param brojKolona broj kolona
* @param matrica matrica elemenata
*
* @version 1.0
*/
class Lavirint {
private:
int brojRedova;
int brojKolona;
Element*** matrica;
public:
Lavirint(int brojRedova, int brojKolona);
~Lavirint();
int getBrojRedova() const;
int getBrojKolona() const;
Element*** getMatrica() const;
void setBrojRedova(int brojRedova);
void setBrojKolona(int brojKolona);
void setMatrica(Element*** matrica);
Element& getElement(int x, int y) const;
void setElement(int x, int y, Element* element);
void generisiLavirint(int brojPredmeta);
};
#endif // LAVIRINT_HPP