Forked from
tome / Tales of MajEyal
13832 commits behind the upstream repository.
-
dg authored
Right click popup will not allow talents to be used on the world map Static map generator will not clone terrain that does not requests cloning git-svn-id: http://svn.net-core.org/repos/t-engine4@1256 51575b47-30f0-44d4-a5cc-537603b46e54
dg authoredRight click popup will not allow talents to be used on the world map Static map generator will not clone terrain that does not requests cloning git-svn-id: http://svn.net-core.org/repos/t-engine4@1256 51575b47-30f0-44d4-a5cc-537603b46e54
map.h 1.56 KiB
/*
TE4 - T-Engine 4
Copyright (C) 2009, 2010 Nicolas Casalini
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 3 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, see <http://www.gnu.org/licenses/>.
Nicolas Casalini "DarkGod"
darkgod@te4.org
*/
#ifndef _MAP_H_
#define _MAP_H_
#include "tgl.h"
typedef struct {
int nb_textures;
int *textures_ref;
GLuint *textures;
bool *textures_is3d;
GLuint shader;
float dx, dy, scale;
float tint_r;
float tint_g;
float tint_b;
bool on_seen;
bool on_remember;
bool on_unknown;
bool valid;
long uid;
} map_object;
typedef struct {
map_object* ***grids;
float **grids_seens;
bool **grids_remembers;
bool **grids_lites;
unsigned char **minimap;
GLuint mm_floor, mm_block, mm_object, mm_trap, mm_friend, mm_neutral, mm_hostile, mm_level_change;
int minimap_gridsize;
// Map parameters
float obscure_r, obscure_g, obscure_b, obscure_a;
float shown_r, shown_g, shown_b, shown_a;
// Map size
int w;
int h;
int zdepth;
int tile_w, tile_h;
// Scrolling
int mx, my, mwidth, mheight;
} map_type;
#endif