72 #include "audiomanager.h"
73 #include "leveleditor.h"
99 explicit Qubet(QWidget *parent = 0);
135 GLvoid
resizeGL(GLint _width, GLint _height);
280 GLvoid
showMenu(
bool showIntro =
true);
301 GLvoid
drawScene(GLboolean simplifyForPicking =
false);
438 void itemClicked(QMouseEvent *event, QList<GLuint> listNames);
453 void mouseMoved(QMouseEvent *event, QList<GLuint> listNames);
It is a semi-thread class to manage the audio of Qubet. It can manage an ambientMusic and different e...
Definition: audiomanager.h:37
Alphabet * alphabet
Definition: qubet.h:188
GLboolean loadAlphabet()
Load the alphabet.
Definition: qubet.cpp:541
GLvoid mouseMoveEvent(QMouseEvent *event)
This function is invoked when the player moves the mouse inside the game window.
Definition: qubet.cpp:174
QMap< GLint, Level * > levelsList
Definition: qubet.h:180
void enableAudio(bool enabled)
Signal emitted to enable or disable the audio.
void setSkybox(QString skyboxName)
This slot is invoked to set the Skybox.
Definition: qubet.cpp:748
void mouseMoved(QMouseEvent *event, QList< GLuint > listNames)
Signal emitted when the user moves the mouse.
void playStory(GLint skinId)
This function is a slot linked to the Menu and invoked when the player chooses to play the Story Mode...
Definition: qubet.cpp:649
void wheelScrolled(QWheelEvent *event)
Signal emitted when the user scrolls the wheel of the mouse.
GLvoid mousePressEvent(QMouseEvent *event)
This function is invoked when the player clicks inside the game window.
Definition: qubet.cpp:164
QMap< GLint, Skin * > skinsList
Definition: qubet.h:179
QTimer * drawTimer
Definition: qubet.h:183
void showLevelEditor(GLint _levelId)
This function is a slot linked to the Menu and invoked when the player chooses to enter the Level Edi...
Definition: qubet.cpp:692
This class rapresents an instance of the QGLWidget Qubet. It is the game.
Definition: qubet.h:83
It is the Skybox Class.
Definition: skybox.h:30
Skin * asphaltSkin
Definition: qubet.h:192
void addLevelToLevelsList(Level *_level)
Slot invoked to add a level to the levelList.
Definition: qubet.cpp:713
void stopAmbientMusic()
Signal emitted to stop the current ambient music.
LevelEditor * levelEditor
Definition: qubet.h:186
QMap< QString, Skybox * > skyboxesList
Definition: qubet.h:182
GLfloat skyboxAngle
Definition: qubet.h:190
It is the Skin Class.
Definition: skin.h:30
GLint width
Definition: qubet.h:194
void draw()
This is a duplicated function to call paintGL, but this can be used as a slot.
Definition: qubet.cpp:644
GLint currentNewLevelNumber
Definition: qubet.h:198
GLvoid connectGame()
This function is used to connect all the game slots to their signals.
Definition: qubet.cpp:330
GLboolean loadShader()
Load the Shader.
Definition: qubet.cpp:636
GLvoid paintGL()
Paint the OpenGL scene.
Definition: qubet.cpp:141
void itemClicked(QMouseEvent *event, QList< GLuint > listNames)
Signal emitted when the user clicks on a item.
Game * game
Definition: qubet.h:185
GLvoid connectAudio(const QObject *sender)
This method connects audio signals of the sender to their slots in AudioManager.
Definition: qubet.cpp:301
GLvoid connectInputEvents(const QObject *receiver)
This methos connects mouse and keyboard events to the receiver object to forward user's input to the ...
Definition: qubet.cpp:209
GLvoid resizeGL(GLint _width, GLint _height)
Resize the OpenGL Window.
Definition: qubet.cpp:151
GLvoid initQubet()
It is used after the first show of the qubet window to initialize Qubet.
Definition: qubet.cpp:192
void playEffect(QString effectName)
Signal emitted to play an effect.
GLvoid initializeGL()
Initialize the Qt OpenGL.
Definition: qubet.cpp:99
This the LevelEditor Class.
Definition: leveleditor.h:31
Qubet(QWidget *parent=0)
Create a Qubet object, which is a QGLWidget that contains the game.
Definition: qubet.cpp:23
void playAmbientMusic(QString filename)
Signal emitted to play the ambient music.
Menu * menu
Definition: qubet.h:184
void setMouseMovementTracking(int mode)
This slot is to set the Mouse Move Tracking sensibility. The modes are: 0 - no signal emitted...
Definition: qubet.cpp:731
bool loadDone
Definition: qubet.h:197
GLvoid mouseReleaseEvent(QMouseEvent *event)
This function is invoked when the player releases the mouse click.
Definition: qubet.cpp:169
GLvoid closeMenu()
This function is invoked when the player chooses an option from the Menu, so this is no more necessar...
Definition: qubet.cpp:350
GLboolean loadIcons()
Load the icons.
Definition: qubet.cpp:567
GLvoid keyPressEvent(QKeyEvent *event)
This function is invoked when the player presses a key.
Definition: qubet.cpp:185
QList< GLuint > getPickedName(GLint mouseX, GLint mouseY)
This method returns a list of the names of the foreground item at mouse coordinates (mouseX...
Definition: qubet.cpp:218
GLvoid connectMenu()
This function is used to connect all the menu slots to their signals.
Definition: qubet.cpp:309
void mouseReleased(QMouseEvent *event)
Signal emitted when the user releases the mouse button.
GLint height
Definition: qubet.h:195
QMap< GLint, GLuint > iconsList
Definition: qubet.h:181
void gameClosed()
This function is a slot linked to the Game and invoked when the player chooses to close the current G...
Definition: qubet.cpp:679
GLboolean load()
Load skins, levels and obstacles in Qubet.
Definition: qubet.cpp:403
It is the Game Class.
Definition: game.h:32
void keyPressed(QKeyEvent *event)
Signal emitted when the user presses a key on the keyboard.
This class rapresents a Level of Qubet, with its obstacle. It is able to draw itself simply using the...
Definition: level.h:33
Skybox * skybox
Definition: qubet.h:189
void playArcade(GLint skinId, GLint levelId)
This function is a slot linked to the Menu and invoked when the player chooses to play the Arcade Mod...
Definition: qubet.cpp:664
GLvoid wheelEvent(QWheelEvent *event)
This function is invoked when the player scrolls the wheel of the mouse inside the game window...
Definition: qubet.cpp:180
GLvoid connectLevelEditor()
This function is used to connect all the levelEditor slots to their signals.
Definition: qubet.cpp:320
GLboolean loadSkyboxes()
Load the skyboxes.
Definition: qubet.cpp:600
QGLShaderProgram * explosionShader
Definition: qubet.h:191
GLboolean loadLevels()
Load the levels from the resource file.
Definition: qubet.cpp:490
This class is used to keep a list of Letter (from this the name Alphabet) It provide access to Letter...
Definition: alphabet.h:33
AudioManager * audioManager
Definition: qubet.h:187
GLvoid showMenu(bool showIntro=true)
This function is used to states the paintGL function to show the Menu.
Definition: qubet.cpp:339
GLvoid errorLoading()
This function has to be invoked when something in the loading process goes wrong. ...
Definition: qubet.cpp:296
GLvoid loadingCompleted()
This function has to be invoked when the loading is finished.
Definition: qubet.cpp:290
GLint currentView
Definition: qubet.h:177
~Qubet()
Destroy a Qubet object.
Definition: qubet.cpp:47
void levelEditorClosed()
This function is a slot linked to the LevelEditor and invoked when the player chooses to close the cu...
Definition: qubet.cpp:718
QString currentText
Definition: qubet.h:178
GLint mouseMovedMode
Definition: qubet.h:196
GLvoid drawScene(GLboolean simplifyForPicking=false)
This function is used to draw the scene on the QGLWidget. It is used by PaintGL that calls this and t...
Definition: qubet.cpp:359
GLboolean loadSkins()
Load the skins from the resource file.
Definition: qubet.cpp:430