Don Melitonitzada la classe Notifier e independitzada de la classe Screen

Ara es poden afegir codis a les notificacions per identificarles
This commit is contained in:
2024-10-15 20:09:09 +02:00
parent e99c2c5265
commit de6508c37c
10 changed files with 506 additions and 463 deletions

View File

@@ -30,6 +30,7 @@
#include "lang.h" // for Code, loadFromFile
#include "logo.h" // for Logo
#include "manage_hiscore_table.h" // for ManageHiScoreTable
#include "notifier.h" // for Notifier
#include "on_screen_help.h" // for OnScreenHelp
#include "options.h" // for options, loadOptionsFile, saveO...
#include "param.h" // for param, loadParamsFromFile
@@ -102,6 +103,8 @@ Director::Director(int argc, const char *argv[])
Screen::init(window_, renderer_);
Notifier::init(renderer_, std::string(), Asset::get()->get("8bithud.png"), Asset::get()->get("8bithud.txt"), Asset::get()->get("notify.wav"));
OnScreenHelp::init();
// Carga los sonidos del juego
@@ -120,6 +123,7 @@ Director::~Director()
Asset::destroy();
Input::destroy();
Screen::destroy();
Notifier::destroy();
OnScreenHelp::destroy();
sounds_.clear();