Sanejar codi
This commit is contained in:
@@ -39,24 +39,14 @@ Reescribiendo el código el 27/09/2022
|
||||
|
||||
*/
|
||||
|
||||
#include <iostream> // for char_traits, basic_ostream, operator<<, endl
|
||||
#include "director.h" // for Director
|
||||
#include <memory>
|
||||
#include "director.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
std::cout << "Starting the game..." << std::endl
|
||||
<< std::endl;
|
||||
|
||||
// Crea el objeto Director
|
||||
Director *director = new Director(argc, argv);
|
||||
auto director = std::make_unique<Director>(argc, const_cast<const char **>(argv));
|
||||
|
||||
// Bucle principal
|
||||
director->run();
|
||||
|
||||
// Destruye el objeto Director
|
||||
delete director;
|
||||
|
||||
std::cout << "\nShutting down the game..." << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
return director->run();
|
||||
}
|
||||
Reference in New Issue
Block a user