12 #include <QGraphicsItem> 25 class Student :
public QObject,
public QGraphicsEllipseItem
GameSettings * _gameSettings
Uchwyt do globalnych ustawień gry.
bool _stopStudent
Flaga zatrzymania studenta.
Definicja strutkur rawData i moveData.
Dane przesunięcia studenta.
void resetPosition()
Ustawienie studenta do pozycji początkowej.
void on_Game_stopStudent()
Zatrzymuje studenta.
Modeuje pojęcie Studenta.
void on_Game_startStudent()
Odblokowuje możliwości ruchu studentowi.
void moveStudent(moveData data)
Poruszanie studenta po scenie.
Definuje ustawienia gryModeluje pojęcie ustawień gry, jako struktura odpowiednich pól...
Student(GameSettings *gSettings, QObject *parent=nullptr)
Kontrutor klasy Student.