22 #include "positioncontroller.h"
23 #include "actionlist.h"
24 #include "cubestring.h"
49 explicit Game(QMap<GLint,GLuint> &_iconsList,
Alphabet *_alphabet,
Skin *_skin, QMap<GLint,Level*> &_levelsList,
QObject *_parent = 0,
bool _audioEnabled =
true, QGLShaderProgram *_explosionShader = NULL);
62 explicit Game(QMap<GLint,GLuint> &_iconsList,
Alphabet *_alphabet,
Skin *_skin,
Level *_level,
QObject *_parent = 0,
bool _audioEnabled =
true, QGLShaderProgram *_explosionShader = NULL);
80 void draw(GLboolean simplifyForPicking =
false);
169 void itemClicked(QMouseEvent *event, QList<GLuint> listNames);
184 void mouseMoved(QMouseEvent *event, QList<GLuint> listNames);
bool isExploding
Definition: game.h:109
~Game()
Safely destroy a Game Object.
Definition: game.cpp:50
Level * next
Definition: game.h:90
GLuint waitCounter
Definition: game.h:117
void levelCompleted()
Slot invoked when level is completed.
Definition: game.cpp:506
void explosionFinished()
Slot invoked when the explosion has finished.
Definition: game.cpp:500
void setMouseMovementTracking(int mode)
This signal is emitted to set the Qubet's Mouse Move Tracking sensibility. The modes are: 0 - no sign...
CubeString * adjectiveCubeString
Definition: game.h:116
void initGame()
Initialize the game.
Definition: game.cpp:223
PositionController Class check if the cube has a collision with obstacles.
Definition: positioncontroller.h:30
PositionController * positionController
Definition: game.h:94
GLint currentLevel
Definition: game.h:96
CubeString * deathCounter
Definition: game.h:110
Skin * asphaltSkin
Definition: game.h:101
Cube * cube
Definition: game.h:93
Vector3f * levelOffset
Definition: game.h:104
void nextLevel()
Go to the next level.
Definition: game.cpp:335
This class is used to keep track of actions to do. For example it can keep track of current view scro...
Definition: actionlist.h:50
void mouseMoved(QMouseEvent *event, QList< GLuint > listNames)
Slot invoked when the user moves the mouse.
Definition: game.cpp:434
void playEffect(QString effectName)
Signal emitted to play an effect.
GLuint introStep
Definition: game.h:107
void continueGame()
Continue the Game from Pause mode.
Definition: game.cpp:373
void enableAudio(bool enabled)
Signal emitted to enable or disable the audio.
GLfloat angleRotVolumeCube
Definition: game.h:99
GLint gameType
Definition: game.h:95
CubeString * levelName
Definition: game.h:114
Game(QMap< GLint, GLuint > &_iconsList, Alphabet *_alphabet, Skin *_skin, QMap< GLint, Level * > &_levelsList, QObject *_parent=0, bool _audioEnabled=true, QGLShaderProgram *_explosionShader=NULL)
Creator for the Story Mode.
Definition: game.cpp:24
void keyPressedSignal(QKeyEvent *event)
Signal relaunched from Qubet when the user presses a key on the keyboard.
Skin * skin
Definition: game.h:88
This class is used to draw, a string composed the horizontal justapposition of Different cubes on whi...
Definition: cubestring.h:37
It is the Skin Class.
Definition: skin.h:30
void createResultStrings()
Creates the resultsCubeString.
Definition: game.cpp:528
Skin * volumeSkin
Definition: game.h:100
CubeString * stateLabel
Definition: game.h:105
void startGame()
Function to start the game.
Definition: game.cpp:62
bool showingResult
Definition: game.h:113
QGLShaderProgram * explosionShader
Definition: game.h:111
Level * level
Definition: game.h:89
CubeString * resultsCubeString
Definition: game.h:115
void quitGame()
Quit the game and returns to Menu.
Definition: game.cpp:391
void collision()
Signal emitted when the cube has a collision with an obstacle.
Alphabet * alphabet
Definition: game.h:87
void playAmbientMusic(QString filename)
Signal emitted to play the ambient music.
QObject * parent
Definition: game.h:85
bool isQuitting
Definition: game.h:112
void wheelScrolled(QWheelEvent *event)
Slot invoked when the user scrolls the wheel of the mouse button.
Definition: game.cpp:458
Structure that rapresents a Vector of float in a 3-D space.
Definition: vector3f.h:31
This class rapresents the player's Cube.
Definition: cube.h:31
void playLevel()
Start the current Level.
Definition: game.cpp:310
void gameClosedSignal()
Signal emitted to close the game.
void setSkybox(QString skyboxName)
Signal emitted to set the Skybox.
It is the Game Class.
Definition: game.h:32
This class rapresents a Level of Qubet, with its obstacle. It is able to draw itself simply using the...
Definition: level.h:33
void draw(GLboolean simplifyForPicking=false)
Method to draw the game.
Definition: game.cpp:67
bool isPaused
Definition: game.h:108
Skin * gridSkin
Definition: game.h:102
void collided()
Slot invoked when the cube has a collision with an obstacle.
Definition: game.cpp:485
GLint deaths
Definition: game.h:97
void countdown()
make the animation for the initial countdown
Definition: game.cpp:265
void pauseGame()
Pause the Game.
Definition: game.cpp:357
CubeString * quitLabel
Definition: game.h:106
This class is used to keep a list of Letter (from this the name Alphabet) It provide access to Letter...
Definition: alphabet.h:33
void stopAmbientMusic()
Signal emitted to stop the current ambient music.
bool audioEnabled
Definition: game.h:92
QMap< GLint, GLuint > iconsList
Definition: game.h:86
void hideLevelName()
Slot invoked to hide the Level Name.
Definition: game.cpp:523
void exploded()
Slot invoked when the cube has exploded (suicide or collided).
Definition: game.cpp:491
void mouseReleased(QMouseEvent *event)
Slot invoked when the user releases the mouse button.
Definition: game.cpp:429
ActionList * currentActions
Definition: game.h:98
QMap< GLint, Level * > levelsList
Definition: game.h:91
void itemClicked(QMouseEvent *event, QList< GLuint > listNames)
Slot invoked when the user clicks on a item.
Definition: game.cpp:402
Vector3f * cameraOffset
Definition: game.h:103
void keyPressed(QKeyEvent *event)
Slot invoked when the user presses a key on the keyboard.
Definition: game.cpp:463