Afegides mes descripcions a les classes
Eliminat el punter a renderer de les classes-estat que faltava
This commit is contained in:
@@ -708,7 +708,7 @@ bool Director::saveConfigFile()
|
||||
{
|
||||
file << "notification.posV=pos_top\n";
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
file << "notification.posV=pos_bottom\n";
|
||||
@@ -718,12 +718,12 @@ bool Director::saveConfigFile()
|
||||
{
|
||||
file << "notification.posH=pos_left\n";
|
||||
}
|
||||
|
||||
|
||||
else if (options->notification.posH == pos_middle)
|
||||
{
|
||||
file << "notification.posH=pos_middle\n";
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
file << "notification.posH=pos_right\n";
|
||||
@@ -836,7 +836,7 @@ void Director::deleteMusics()
|
||||
// Ejecuta la seccion de juego con el logo
|
||||
void Director::runLogo()
|
||||
{
|
||||
logo = new Logo(renderer, screen, asset, input, param, section);
|
||||
logo = new Logo(screen, asset, input, param, section);
|
||||
logo->run();
|
||||
delete logo;
|
||||
}
|
||||
@@ -844,7 +844,7 @@ void Director::runLogo()
|
||||
// Ejecuta la seccion de juego de la introducción
|
||||
void Director::runIntro()
|
||||
{
|
||||
intro = new Intro(renderer, screen, asset, input, lang, param, section, getMusic(musics, "intro.ogg"));
|
||||
intro = new Intro(screen, asset, input, lang, param, section, getMusic(musics, "intro.ogg"));
|
||||
intro->run();
|
||||
delete intro;
|
||||
}
|
||||
@@ -852,7 +852,7 @@ void Director::runIntro()
|
||||
// Ejecuta la seccion de juego con el titulo y los menus
|
||||
void Director::runTitle()
|
||||
{
|
||||
title = new Title(screen, input, asset, options, lang, param, section, getMusic(musics, "title.ogg"));
|
||||
title = new Title(screen, asset, input, options, lang, param, section, getMusic(musics, "title.ogg"));
|
||||
title->run();
|
||||
delete title;
|
||||
}
|
||||
@@ -861,7 +861,7 @@ void Director::runTitle()
|
||||
void Director::runGame()
|
||||
{
|
||||
const int playerID = section->subsection == SUBSECTION_GAME_PLAY_1P ? 1 : 2;
|
||||
game = new Game(playerID, 0, renderer, screen, asset, lang, input, false, param, options, section, getMusic(musics, "playing.ogg"));
|
||||
game = new Game(playerID, 0, screen, asset, lang, input, false, param, options, section, getMusic(musics, "playing.ogg"));
|
||||
game->run();
|
||||
delete game;
|
||||
}
|
||||
@@ -869,7 +869,7 @@ void Director::runGame()
|
||||
// Ejecuta la parte donde se muestra la tabla de puntuaciones
|
||||
void Director::runHiScoreTable()
|
||||
{
|
||||
hiScoreTable = new HiScoreTable(renderer, screen, asset, input, lang, param, options, section);
|
||||
hiScoreTable = new HiScoreTable(screen, asset, input, lang, param, options, section);
|
||||
hiScoreTable->run();
|
||||
delete hiScoreTable;
|
||||
}
|
||||
@@ -877,7 +877,7 @@ void Director::runHiScoreTable()
|
||||
// Ejecuta la parte donde se muestran las instrucciones
|
||||
void Director::runInstructions()
|
||||
{
|
||||
instructions = new Instructions(renderer, screen, asset, input, lang, param, section);
|
||||
instructions = new Instructions(screen, asset, input, lang, param, section);
|
||||
instructions->run();
|
||||
delete instructions;
|
||||
}
|
||||
@@ -886,7 +886,7 @@ void Director::runInstructions()
|
||||
void Director::runDemoGame()
|
||||
{
|
||||
const int playerID = (rand() % 2) + 1;
|
||||
demoGame = new Game(playerID, 0, renderer, screen, asset, lang, input, true, param, options, section, nullptr);
|
||||
demoGame = new Game(playerID, 0, screen, asset, lang, input, true, param, options, section, nullptr);
|
||||
demoGame->run();
|
||||
delete demoGame;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user