#include <ctime>
#include "utils.h"
#include "defs.h"
#include "main_options.h"
#include "audio.h"
#include "video.h"
#include "input.h"
#include "script.h"
#include "system.h"
#include "global.h"
#include "mode_manager.h"
#include "boot.h"
#include "map.h"
Include dependency graph for main.cpp:

Go to the source code of this file.
Functions | |
| bool | InitializeEngine () |
| Initializes all engine components and makes other preparations for the game to start. | |
| int32 | main (int32 argc, char *argv[]) |
| void | QuitAllacrost () |
| Frees all data allocated by Allacrost by destroying the singleton classes. | |
****************************************************************************
The code in this file is the first to execute when the game is started and the last to execute before the game exits. The core engine of Allacrost uses time-based updating, which means that the state of the game is updated based on how much time has expired since the last update.
The main game loop consists of the following steps.
Definition in file main.cpp.
| bool InitializeEngine | ( | ) |
Initializes all engine components and makes other preparations for the game to start.
Definition at line 98 of file main.cpp.
References hoa_audio::AudioManager, hoa_defs::BindEngineToLua(), hoa_global::GlobalManager, hoa_system::GameSystem::InitializeTimers(), hoa_input::InputManager, hoa_video::GameVideo::LoadFont(), hoa_video::GameVideo::LoadMenuSkin(), hoa_mode_manager::ModeManager, hoa_script::ScriptManager, hoa_video::GameVideo::SetFontShadowStyle(), hoa_video::GameVideo::SetFontShadowXOffset(), hoa_video::GameVideo::SetFontShadowYOffset(), hoa_global::GameGlobal::SingletonInitialize(), hoa_input::GameInput::SingletonInitialize(), hoa_system::GameSystem::SingletonInitialize(), hoa_mode_manager::GameModeManager::SingletonInitialize(), hoa_script::GameScript::SingletonInitialize(), hoa_audio::GameAudio::SingletonInitialize(), hoa_video::GameVideo::SingletonInitialize(), hoa_system::SystemManager, hoa_video::VIDEO_TEXT_SHADOW_BLACK, and hoa_video::VideoManager.
Referenced by main().
Here is the call graph for this function:

Definition at line 219 of file main.cpp.
References hoa_audio::AudioManager, hoa_video::GameVideo::Clear(), hoa_video::GameVideo::Display(), hoa_mode_manager::GameModeManager::Draw(), hoa_input::GameInput::EventHandler(), hoa_system::GameSystem::GetUpdateTime(), InitializeEngine(), hoa_input::InputManager, hoa_mode_manager::ModeManager, hoa_system::GameSystem::NotDone(), hoa_main::ParseProgramOptions(), QuitAllacrost(), hoa_system::SystemManager, hoa_mode_manager::GameModeManager::Update(), hoa_audio::GameAudio::Update(), hoa_system::GameSystem::UpdateTimers(), and hoa_video::VideoManager.
Here is the call graph for this function:

| void QuitAllacrost | ( | ) |
Frees all data allocated by Allacrost by destroying the singleton classes.
Definition at line 75 of file main.cpp.
Referenced by main().
1.5.1