D:/WorkAround/prequengine/trunk/src/lbaengine.c File Reference

This file contains the main game engine routines. More...

#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"

Include dependency graph for lbaengine.c:

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


Detailed Description

This file contains the main game engine routines.

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.


Function Documentation

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

Returns:
true if we want to show credit sequence

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 
)

int run_game_engine (  ) 

Game engine main loop

Returns:
true if we want to show credit sequence

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  ) 

int show_giveup_menu (  ) 

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().


Variable Documentation

int isTimeFreezed = 0

Definition at line 44 of file lbaengine.c.

Referenced by freeze_time(), and unfreeze_time().

int saveFreezedTime = 0

Definition at line 45 of file lbaengine.c.

Referenced by freeze_time(), and unfreeze_time().


Generated on Thu Sep 18 14:14:48 2008 for Prequengine by  doxygen 1.5.5