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

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

+ Include dependency graph for n_iso_engine.c:

Go to the source code of this file.

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
04/07/05

Definition in file n_iso_engine.c.