Nilorea Library
C utilities for networking, threading, graphics
n_iso_engine.h File Reference

Map loading, saving, with objects, animations, ... More...

#include "n_common.h"
#include "n_log.h"
+ Include dependency graph for n_iso_engine.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CELL
 Cell of a MAP. More...
 
struct  MAP
 MAP with objects, tiles, skins. More...
 

Macros

#define BLCK   3
 FLAG of a stopping tile. More...
 
#define N_ABILITY   3
 FLAG of ability type. More...
 
#define N_MUSIC   4
 FLAG of music type. More...
 
#define N_OBJECT   5
 FLAG of object type. More...
 
#define N_TILE   2
 FLAG of tile type. More...
 
#define SWIM   2
 FLAG of a swimmable tile. More...
 
#define WALK   1
 FLAG of a walkable tile. More...
 

Functions

int camera_to_map (MAP **map, int tx, int ty, int x, int y)
 Center Map on given map coordinate, with x & y offset. More...
 
int camera_to_scr (MAP **map, int x, int y)
 Center Map on given screen coordinate. More...
 
int create_empty_map (MAP **map, char *name, int XSIZE, int YSIZE, int TILEW, int TILEH, int nbmaxobjects, int nbmaxgroup, int nbmaxanims, int nbtiles, int nbanims)
 Create an empty map. More...
 
int draw_map (MAP *map, BITMAP *bmp, int destx, int desty, int mode)
 Draw a MAP *map on the BITMAP *bmp. More...
 
int free_map (MAP **map)
 Free the map. More...
 
int get_value (MAP *map, int type, int x, int y)
 Get a the tilenumber of a cell item. More...
 
int load_map (MAP **map, char *filename)
 Load the map from filename. More...
 
int save_map (MAP *map, char *filename)
 Save the map to filename. More...
 
int ScreenToMap (int mx, int my, int *Tilex, int *Tiley, BITMAP *mousemap)
 Convert screen coordinate to map coordinate. More...
 
int set_value (MAP *map, int type, int x, int y, int value)
 Set the value of a cell in a map. More...
 

Detailed Description

Map loading, saving, with objects, animations, ...

Author
Castagnier Mickael
Version
1.0
Date
01/07/05

Definition in file n_iso_engine.h.