DungeonCrawl
|
Entry point handling game initialization, launch screen display, main loop start, and shutdown. More...
#include "main.h"
#include "combat/combat_mode.h"
#include "common.h"
#include "database/game/gamestate_database.h"
#include "game.h"
#include "game_data.h"
#include "inventory/inventory_mode.h"
#include "io/io_handler.h"
#include "io/output/specific/stats_output.h"
#include "local/local_handler.h"
#include "logging/logger.h"
#include "map/map_mode.h"
#include "menu/language_menu.h"
#include "menu/main_menu.h"
#include "menu/save_menu.h"
#include <unistd.h>
#include "io/output/specific/wait_output.h"
#include <time.h>
Go to the source code of this file.
Functions | |
void | shutdown_game (void) |
Frees all allocated resources and performs cleanup tasks for the game. | |
int | init () |
Initializes all necessary parts and subsystems for the game. | |
int | main (void) |
Main entry point for the application. |
Variables | |
volatile int | init_done = 0 |
Entry point handling game initialization, launch screen display, main loop start, and shutdown.
Definition in file main.c.
int init | ( | ) |
Initializes all necessary parts and subsystems for the game.
First initializes IO handler to show a splash screen, then initializes the rest of the systems sequentially.
Definition at line 75 of file main.c.
int main | ( | void | ) |
Main entry point for the application.
This function initializes the game, runs the main game loop, and performs cleanup before exiting. It handles the overall flow of the application.
Definition at line 178 of file main.c.
void shutdown_game | ( | void | ) |
Frees all allocated resources and performs cleanup tasks for the game.
Shuts down the entire game and frees associated resources.
Definition at line 158 of file main.c.