40 GameSettings(
int sceneH = 800,
int sceneW = 600,
int studH = 60,
int studW = 60,
int speed = 6,
int deficitLimit = 11)
41 : sceneHeight(sceneH), sceneWidth(sceneW), studentHeight(studH), studentWidth(studW), speed(speed), deficitLimit(deficitLimit) {}
45 #endif // GAMESETTINGS_H int studentWidth
Szerokość studenta.
GameSettings(int sceneH=800, int sceneW=600, int studH=60, int studW=60, int speed=6, int deficitLimit=11)
Konstruktor GameSettings.
int sceneHeight
Wysokość sceny (okienka z grą)
int deficitLimit
Maksymalny deficyt punktów ECTS.
Definuje ustawienia gryModeluje pojęcie ustawień gry, jako struktura odpowiednich pól...
int studentHeight
Wysokość studenta.
int sceneWidth
Szerokość sceny (okienka z grą)
int speed
Skalowanie szybkości gry (1-10)