This the LevelEditor Class.
More...
#include <leveleditor.h>
|
void | levelEditorClosed () |
| signal emitted when the level editor is being closed.
|
|
void | addLevelToLevelsList (Level *_level) |
| This function add the current level to the levelsList. More...
|
|
void | setMouseMovementTracking (int mode) |
| This signal is emitted to set the Qubet's Mouse Move Tracking sensibility. The modes are: 0 - no signal emitted. 1 - the signal mouseMoved is emitted only when the mouse is moved and one of the mouse buttons are clicked. 2 - the signal mouseMoved is emitted always when the mouse is moved. More...
|
|
void | enableAudio (bool enabled) |
| Signal emitted to enable or disable the audio. More...
|
|
void | playAmbientMusic (QString filename) |
| Signal emitted to play the ambient music. More...
|
|
void | stopAmbientMusic () |
| Signal emitted to stop the current ambient music.
|
|
void | playEffect (QString effectName) |
| Signal emitted to play an effect. More...
|
|
void | setSkybox (QString skyboxName) |
| Signal emitted to set the Skybox. More...
|
|
|
void | itemClicked (QMouseEvent *event, QList< GLuint > listNames) |
| Slot invoked when the user clicks on a item. More...
|
|
void | mouseReleased (QMouseEvent *event) |
| Slot invoked when the user releases the mouse button. More...
|
|
void | mouseMoved (QMouseEvent *event, QList< GLuint > listNames) |
| Slot invoked when the user moves the mouse. More...
|
|
void | wheelScrolled (QWheelEvent *event) |
| Slot invoked when the user scrolls the wheel of the mouse button. More...
|
|
void | keyPressed (QKeyEvent *event) |
| Slot invoked when the user presses a key on the keyboard. More...
|
|
|
GLvoid | lengthen () |
| This function lengthen the level.
|
|
GLvoid | shorten () |
| This function shorten the level.
|
|
GLvoid | enlarge () |
| This function enlarge the level.
|
|
GLvoid | reduce () |
| This function reduce the level.
|
|
GLvoid | gravityMinus () |
| This function decraese the gravity value.
|
|
GLvoid | gravityPlus () |
| This function increase the gravity value.
|
|
GLvoid | buttonBackTriggered () |
| This function is invoked when back button is pressed.
|
|
GLvoid | buttonNextTriggered () |
| This function is invoked when next button is pressed.
|
|
GLvoid | letterTyped (int key) |
| This function is invoked when a letter is typed. More...
|
|
GLvoid | checkMousePosition (GLint x, GLint y) |
| This function check the position of the mouse. More...
|
|
GLvoid | moveIn () |
| Move the view in.
|
|
GLvoid | moveOut () |
| Move the view out.
|
|
GLvoid | saveLevel () |
| Save the Level.
|
|
GLvoid | quitEditor () |
| This function quit the level editor.
|
|
This the LevelEditor Class.
- Version
- 1.0
- Author
- #34
LevelEditor::LevelEditor |
( |
QMap< GLint, GLuint > & |
_iconsList, |
|
|
Alphabet * |
_alphabet, |
|
|
QObject * |
_parent, |
|
|
Level * |
_level = NULL , |
|
|
bool |
_audioEnabled = true , |
|
|
Skin * |
_asphaltSkin = NULL |
|
) |
| |
|
explicit |
Create a LevelEditor.
- Parameters
-
_iconsList | is the reference to Qubet's iconsList. |
_alphabet | is the reference to Qubet's alphabet. |
_level | is the level to load in the LevelEditor (NULL to create a new Level). |
_parent | is a callback variable to the parent of the parent. |
_audioEnabled | is a variable to states if the audio is enabled or not. |
_asphaltSkin | is the asphalt Skin for the Level. |
void LevelEditor::addLevelToLevelsList |
( |
Level * |
_level | ) |
|
|
signal |
This function add the current level to the levelsList.
- Parameters
-
GLvoid LevelEditor::checkMousePosition |
( |
GLint |
x, |
|
|
GLint |
y |
|
) |
| |
|
private |
This function check the position of the mouse.
- Parameters
-
x | is the x coordinate. |
y | is the y coordinate. |
void LevelEditor::draw |
( |
GLboolean |
simplifyForPicking = false | ) |
|
Method to draw the levelEditor.
- Parameters
-
simplifyForPicking | [default = false] is used to draw a simplified scene used for the picking function. |
void LevelEditor::enableAudio |
( |
bool |
enabled | ) |
|
|
signal |
Signal emitted to enable or disable the audio.
- Parameters
-
enabled | is the variable that states if the audio is to enable or not. |
void LevelEditor::itemClicked |
( |
QMouseEvent * |
event, |
|
|
QList< GLuint > |
listNames |
|
) |
| |
|
privateslot |
Slot invoked when the user clicks on a item.
- Parameters
-
event | is the QMouseEvent. |
listNames | is the QList<GLuint> of item's names. |
void LevelEditor::keyPressed |
( |
QKeyEvent * |
event | ) |
|
|
privateslot |
Slot invoked when the user presses a key on the keyboard.
- Parameters
-
GLvoid LevelEditor::letterTyped |
( |
int |
key | ) |
|
|
private |
This function is invoked when a letter is typed.
- Parameters
-
void LevelEditor::mouseMoved |
( |
QMouseEvent * |
event, |
|
|
QList< GLuint > |
listNames |
|
) |
| |
|
privateslot |
Slot invoked when the user moves the mouse.
- Parameters
-
event | is the QMouseEvent*. |
listNames | is the QList<GLuint> of item's names. |
void LevelEditor::mouseReleased |
( |
QMouseEvent * |
event | ) |
|
|
privateslot |
Slot invoked when the user releases the mouse button.
- Parameters
-
event | is the QMouseEvent*. |
void LevelEditor::playAmbientMusic |
( |
QString |
filename | ) |
|
|
signal |
Signal emitted to play the ambient music.
- Parameters
-
filename | is the filename to play. |
void LevelEditor::playEffect |
( |
QString |
effectName | ) |
|
|
signal |
Signal emitted to play an effect.
- Parameters
-
effectName | is the name of the effect to play. |
void LevelEditor::setMouseMovementTracking |
( |
int |
mode | ) |
|
|
signal |
This signal is emitted to set the Qubet's Mouse Move Tracking sensibility. The modes are: 0 - no signal emitted. 1 - the signal mouseMoved is emitted only when the mouse is moved and one of the mouse buttons are clicked. 2 - the signal mouseMoved is emitted always when the mouse is moved.
- Parameters
-
mode | It is the selected mode. |
void LevelEditor::setSkybox |
( |
QString |
skyboxName | ) |
|
|
signal |
Signal emitted to set the Skybox.
- Parameters
-
skyboxName | is the name of the Skybox to apply. |
void LevelEditor::wheelScrolled |
( |
QWheelEvent * |
event | ) |
|
|
privateslot |
Slot invoked when the user scrolls the wheel of the mouse button.
- Parameters
-
event | is the QWheelEvent*. |
It is the alphabet provided by Qubet.
GLfloat LevelEditor::angleRotVolumeCube |
|
private |
It is the current rotation angle of the volume icon.
Skin* LevelEditor::asphaltSkin |
|
private |
It is the skin of the Asphalt.
GLboolean LevelEditor::audioEnabled |
|
private |
It is the state of the audio.
GLfloat LevelEditor::cameraAngle |
|
private |
It is the camera angle for the editor.
It is the camera offset for the editor.
It is the list of the current menu steps.
It is the vector to manage the obstacle movement.
QString LevelEditor::currentError |
|
private |
GLuint LevelEditor::currentGravity |
|
private |
It is the current gravity.
GLuint LevelEditor::currentLength |
|
private |
It is the current length.
QString LevelEditor::currentName |
|
private |
It is the current name for the level.
GLint LevelEditor::currentView |
|
private |
It is the value of the current view
GLuint LevelEditor::currentWidth |
|
private |
It is the vector to manage the distance from the centre of the obstacle.
It is the formSetLevelName cubeStringList.
QMap<GLint,GLuint> LevelEditor::iconsList |
|
private |
It is the iconsList provided by Qubet object.
GLboolean LevelEditor::isMoving |
|
private |
It is the variable that states if the menu is moving or not.
It is the previous position of the centre of the moving object.
GLint LevelEditor::lastMouseX |
|
private |
It is the last mouse x value.
GLint LevelEditor::lastMouseY |
|
private |
It is the last mouse y value.
Level* LevelEditor::level |
|
private |
It is the current editing Level.
It is the offset of the Level.
GLint LevelEditor::movingObject |
|
private |
It is the number of the currently moving object.
It is a callback variable to the parent of the widget.
bool LevelEditor::positionValid |
|
private |
It is the value that say if the obstacle position is valid or not.
QList<Vector3f> LevelEditor::toolbarObstacleCentres |
|
private |
It is the list to keep the centre of the toolbar's obstacles.
GLboolean LevelEditor::visible |
|
private |
It is the boolean value that if the type block is visible.
GLint LevelEditor::visibleTime |
|
private |
It is the visible time counter of the type block.
Skin* LevelEditor::volumeSkin |
|
private |
It is the skin of the volume button.
The documentation for this class was generated from the following files: