#include "lbaengine.h"
#include "main.h"
#include "sdlengine.h"
#include "images.h"
#include "grid.h"
#include "scene.h"
#include "menu.h"
#include "interface.h"
#include "dialogues.h"
#include "redraw.h"
#include "hqrdepack.h"
#include "resources.h"
Go to the source code of this file.
Functions | |
| void | freeze_time () |
| void | unfreeze_time () |
| int | show_giveup_menu () |
| void | show_game_options (short int pKey) |
| int | run_game_engine () |
| int | game_engine_loop () |
| int | project_position_on_screen (int cX, int cY, int cZ) |
| void | set_camera_position (int X, int Y, int cX, int cY, int cZ) |
Variables | |
| int | isTimeFreezed = 0 |
| int | saveFreezedTime = 0 |
Prequengine: a Little Big Adventure engine
Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file lbaengine.c.
| void freeze_time | ( | ) |
Definition at line 48 of file lbaengine.c.
References isTimeFreezed, lbaTime, and saveFreezedTime.
Referenced by redraw_engine_actions(), show_game_options(), and show_giveup_menu().
| int game_engine_loop | ( | ) |
Game engine main loop
Definition at line 140 of file lbaengine.c.
References cfgfile, ConfigFile::Fps, fps_cycles(), lbaTime, quitGame, and run_game_engine().
Referenced by new_game_menu().
| int project_position_on_screen | ( | int | cX, | |
| int | cY, | |||
| int | cZ | |||
| ) |
Definition at line 158 of file lbaengine.c.
References basePosX, basePosY, basePosZ, cameraPosX, cameraPosY, cameraPosZ, isUsingOrhoProjection, projPosX, projPosY, projPosZ, setSomethingVar1, and setSomethingVar2.
Referenced by draw_bounding_box_project_points(), process_actors_drawlist(), process_drawing(), and redraw_grid().
| int run_game_engine | ( | ) |
Game engine main loop
Definition at line 109 of file lbaengine.c.
References change_scene(), needChangeScene, process_debug(), read_keys(), redraw_engine_actions(), reqBgRedraw, show_game_options(), show_giveup_menu(), and skipIntro.
Referenced by game_engine_loop().
| void set_camera_position | ( | int | X, | |
| int | Y, | |||
| int | cX, | |||
| int | cY, | |||
| int | cZ | |||
| ) |
Definition at line 196 of file lbaengine.c.
References cameraPosX, cameraPosY, cameraPosZ, isUsingOrhoProjection, setSomethingVar1, and setSomethingVar2.
Referenced by init_vars().
| void show_game_options | ( | short int | pKey | ) |
Definition at line 87 of file lbaengine.c.
References cfgfile, currentTextBank, freeze_time(), init_dialogue_bank(), ConfigFile::LanguageCDId, options_menu(), OptionsMenuSettings, redraw_engine_actions(), and unfreeze_time().
Referenced by run_game_engine().
| int show_giveup_menu | ( | ) |
Definition at line 62 of file lbaengine.c.
References cfgfile, freeze_time(), giveup_menu(), ConfigFile::Quit, quitGame, redraw_engine_actions(), skipIntro, and unfreeze_time().
Referenced by run_game_engine().
| void unfreeze_time | ( | ) |
Definition at line 55 of file lbaengine.c.
References isTimeFreezed, lbaTime, and saveFreezedTime.
Referenced by show_game_options(), and show_giveup_menu().
| int isTimeFreezed = 0 |
| int saveFreezedTime = 0 |
1.5.5