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

This file contains grid manipulation routines. More...

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

Go to the source code of this file.

Functions

void draw_over_sprite_actor (int X, int Z, int Y)
void get_sprite_size (int offset, int *width, int *height, unsigned char *spritePtr)
void draw_brick (int index, int posX, int posY)
void draw_sprite (int index, int posX, int posY, unsigned char *spritePtr)
void draw_brick_sprite (int index, int posX, int posY, unsigned char *spritePtr, int isSprite)
void create_grid_map ()
int init_grid (int index)
int init_celling_grid (int index)
void redraw_grid ()

Variables

int newCameraX
int newCameraY
int newCameraZ
int cameraX
int cameraY
int cameraZ
unsigned char * blockBuffer
unsigned char * brickBuffer
unsigned char * brickBuffer2
int shadowX
int shadowY
int shadowZ
char shadowVar
short int useCellingGrid
short int cellingGridIdx


Detailed Description

This file contains grid manipulation 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 grid.h.


Function Documentation

void create_grid_map (  ) 

Create grid map from current grid to block library buffer

Definition at line 541 of file grid.c.

References blockBuffer, create_grid_column(), currentGrid, GRID_SIZE_X, and GRID_SIZE_Z.

Referenced by apply_celling_grid(), and init_grid().

void draw_brick ( int  index,
int  posX,
int  posY 
)

Definition at line 659 of file grid.c.

References brickTable, and draw_brick_sprite().

Referenced by draw_column_grid().

void draw_brick_sprite ( int  index,
int  posX,
int  posY,
unsigned char *  spritePtr,
int  isSprite 
)

void draw_over_sprite_actor ( int  X,
int  Z,
int  Y 
)

void draw_sprite ( int  index,
int  posX,
int  posY,
unsigned char *  spritePtr 
)

Definition at line 664 of file grid.c.

References draw_brick_sprite().

Referenced by process_drawing().

void get_sprite_size ( int  offset,
int *  width,
int *  height,
unsigned char *  spritePtr 
)

Definition at line 357 of file grid.c.

Referenced by process_drawing().

int init_celling_grid ( int  index  ) 

Initialize celling grid (background scenearios)

Parameters:
index grid index number

Definition at line 634 of file grid.c.

References CELLING_GRIDS_START_INDEX, create_celling_grid_map(), hqr_entry_size(), hqr_get_entry(), HQR_LBA_GRI_FILE, and reqBgRedraw.

Referenced by apply_celling_grid().

int init_grid ( int  index  ) 

Initialize grid (background scenearios)

Parameters:
index grid index number

Definition at line 591 of file grid.c.

References create_grid_map(), create_grid_mask(), currentBll, currentGrid, hqr_entry_size(), hqr_get_entry(), HQR_LBA_BLL_FILE, HQR_LBA_GRI_FILE, load_grid_bricks(), and numberOfBll.

Referenced by change_scene().

void redraw_grid (  ) 


Variable Documentation

unsigned char* blockBuffer

Definition at line 37 of file grid.h.

Referenced by create_celling_grid_map(), create_grid_map(), init_grid_buffer(), and redraw_grid().

unsigned char* brickBuffer

Definition at line 38 of file grid.h.

Referenced by init_grid_buffer().

unsigned char* brickBuffer2

Definition at line 39 of file grid.h.

int cameraX

Definition at line 33 of file grid.h.

Referenced by display_zones(), process_actors_drawlist(), process_drawing(), and redraw_grid().

int cameraY

Definition at line 34 of file grid.h.

Referenced by display_zones(), process_actors_drawlist(), process_drawing(), and redraw_grid().

int cameraZ

Definition at line 35 of file grid.h.

Referenced by display_zones(), process_actors_drawlist(), process_drawing(), and redraw_grid().

short int cellingGridIdx

Definition at line 48 of file grid.h.

Referenced by apply_celling_grid(), init_vars(), and process_actors_drawlist().

Definition at line 29 of file grid.h.

Referenced by change_grid_camera(), change_scene(), draw_column_grid(), and redraw_grid().

Definition at line 30 of file grid.h.

Referenced by change_scene(), draw_column_grid(), and redraw_grid().

Definition at line 31 of file grid.h.

Referenced by change_grid_camera(), change_scene(), draw_column_grid(), and redraw_grid().

char shadowVar

Definition at line 45 of file grid.h.

int shadowX

Definition at line 42 of file grid.h.

Referenced by process_actors_drawlist().

int shadowY

Definition at line 43 of file grid.h.

Referenced by process_actors_drawlist().

int shadowZ

Definition at line 44 of file grid.h.

Referenced by process_actors_drawlist().

short int useCellingGrid

Definition at line 47 of file grid.h.

Referenced by apply_celling_grid(), init_vars(), and process_actors_drawlist().


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