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

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void freeze_time ()
void unfreeze_time ()
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 quitGame
volatile int lbaTime
short int reqBgRedraw
short int projPosXScreen
short int projPosYScreen
short int projPosZScreen
short int projPosX
short int projPosY
short int projPosZ
short int currentlyFollowedActor
unsigned char gameFlags [256]
int isUsingOrhoProjection
int basePosX
int basePosY
int basePosZ
int setSomethingVar1
int setSomethingVar2
int setSomethingVar3
int cameraPosX
int cameraPosY
int cameraPosZ


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.h.


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 
)

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 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 basePosX

Definition at line 47 of file lbaengine.h.

Referenced by project_position_on_screen().

int basePosY

Definition at line 48 of file lbaengine.h.

Referenced by project_position_on_screen().

int basePosZ

Definition at line 49 of file lbaengine.h.

Referenced by project_position_on_screen().

Definition at line 55 of file lbaengine.h.

Referenced by project_position_on_screen(), and set_camera_position().

Definition at line 56 of file lbaengine.h.

Referenced by project_position_on_screen(), and set_camera_position().

Definition at line 57 of file lbaengine.h.

Referenced by project_position_on_screen(), and set_camera_position().

Definition at line 41 of file lbaengine.h.

Referenced by change_scene(), and init_vars().

unsigned char gameFlags[256]

Definition at line 43 of file lbaengine.h.

Referenced by change_scene().

Definition at line 45 of file lbaengine.h.

Referenced by init_vars(), project_position_on_screen(), and set_camera_position().

volatile int lbaTime

short int projPosX

short int projPosXScreen

Definition at line 34 of file lbaengine.h.

Referenced by process_drawing(), redraw_engine_actions(), and redraw_grid().

short int projPosY

short int projPosYScreen

Definition at line 35 of file lbaengine.h.

Referenced by process_drawing(), redraw_engine_actions(), and redraw_grid().

short int projPosZ

Definition at line 39 of file lbaengine.h.

Referenced by draw_bounding_box_project_points(), and project_position_on_screen().

short int projPosZScreen

Definition at line 36 of file lbaengine.h.

int quitGame

Definition at line 29 of file lbaengine.h.

Referenced by game_engine_loop(), and show_giveup_menu().

short int reqBgRedraw

Request background redraw

Definition at line 32 of file lbaengine.h.

Referenced by apply_celling_grid(), change_grid(), change_grid_camera(), init_celling_grid(), init_vars(), and run_game_engine().

Definition at line 51 of file lbaengine.h.

Referenced by init_vars(), project_position_on_screen(), and set_camera_position().

Definition at line 52 of file lbaengine.h.

Referenced by init_vars(), project_position_on_screen(), and set_camera_position().

Definition at line 53 of file lbaengine.h.

Referenced by init_vars().


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