Llevats uns punterets que sobraven en director.cpp
This commit is contained in:
@@ -596,7 +596,7 @@ void Director::loadMusics()
|
|||||||
// Ejecuta la sección con el logo
|
// Ejecuta la sección con el logo
|
||||||
void Director::runLogo()
|
void Director::runLogo()
|
||||||
{
|
{
|
||||||
auto *logo = new Logo();
|
auto logo = new Logo();
|
||||||
logo->run();
|
logo->run();
|
||||||
delete logo;
|
delete logo;
|
||||||
}
|
}
|
||||||
@@ -604,7 +604,7 @@ void Director::runLogo()
|
|||||||
// Ejecuta la sección con la secuencia de introducción
|
// Ejecuta la sección con la secuencia de introducción
|
||||||
void Director::runIntro()
|
void Director::runIntro()
|
||||||
{
|
{
|
||||||
auto *intro = new Intro(getMusic(musics, "intro.ogg"));
|
auto intro = new Intro(getMusic(musics, "intro.ogg"));
|
||||||
intro->run();
|
intro->run();
|
||||||
delete intro;
|
delete intro;
|
||||||
}
|
}
|
||||||
@@ -612,7 +612,7 @@ void Director::runIntro()
|
|||||||
// Ejecuta la sección con el titulo del juego
|
// Ejecuta la sección con el titulo del juego
|
||||||
void Director::runTitle()
|
void Director::runTitle()
|
||||||
{
|
{
|
||||||
auto *title = new Title(getMusic(musics, "title.ogg"));
|
auto title = new Title(getMusic(musics, "title.ogg"));
|
||||||
title->run();
|
title->run();
|
||||||
delete title;
|
delete title;
|
||||||
}
|
}
|
||||||
@@ -622,7 +622,7 @@ void Director::runGame()
|
|||||||
{
|
{
|
||||||
const auto playerID = section::options == section::OPTIONS_GAME_PLAY_1P ? 1 : 2;
|
const auto playerID = section::options == section::OPTIONS_GAME_PLAY_1P ? 1 : 2;
|
||||||
constexpr auto currentStage = 0;
|
constexpr auto currentStage = 0;
|
||||||
auto *game = new Game(playerID, currentStage, GAME_MODE_DEMO_OFF, getMusic(musics, "playing.ogg"));
|
auto game = new Game(playerID, currentStage, GAME_MODE_DEMO_OFF, getMusic(musics, "playing.ogg"));
|
||||||
game->run();
|
game->run();
|
||||||
delete game;
|
delete game;
|
||||||
}
|
}
|
||||||
@@ -630,7 +630,7 @@ void Director::runGame()
|
|||||||
// Ejecuta la sección donde se muestran las instrucciones
|
// Ejecuta la sección donde se muestran las instrucciones
|
||||||
void Director::runInstructions()
|
void Director::runInstructions()
|
||||||
{
|
{
|
||||||
auto *instructions = new Instructions(getMusic(musics, "title.ogg"));
|
auto instructions = new Instructions(getMusic(musics, "title.ogg"));
|
||||||
instructions->run();
|
instructions->run();
|
||||||
delete instructions;
|
delete instructions;
|
||||||
}
|
}
|
||||||
@@ -638,7 +638,7 @@ void Director::runInstructions()
|
|||||||
// Ejecuta la sección donde se muestra la tabla de puntuaciones
|
// Ejecuta la sección donde se muestra la tabla de puntuaciones
|
||||||
void Director::runHiScoreTable()
|
void Director::runHiScoreTable()
|
||||||
{
|
{
|
||||||
auto *hiScoreTable = new HiScoreTable(getMusic(musics, "title.ogg"));
|
auto hiScoreTable = new HiScoreTable(getMusic(musics, "title.ogg"));
|
||||||
hiScoreTable->run();
|
hiScoreTable->run();
|
||||||
delete hiScoreTable;
|
delete hiScoreTable;
|
||||||
}
|
}
|
||||||
@@ -648,7 +648,7 @@ void Director::runDemoGame()
|
|||||||
{
|
{
|
||||||
const auto playerID = (rand() % 2) + 1;
|
const auto playerID = (rand() % 2) + 1;
|
||||||
constexpr auto currentStage = 0;
|
constexpr auto currentStage = 0;
|
||||||
auto *game = new Game(playerID, currentStage, GAME_MODE_DEMO_ON, nullptr);
|
auto game = new Game(playerID, currentStage, GAME_MODE_DEMO_ON, nullptr);
|
||||||
game->run();
|
game->run();
|
||||||
delete game;
|
delete game;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user