Crossfire Client, Branch  R11627
Functions | Variables
map.c File Reference
#include <config.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <png.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
#include "client-types.h"
#include "gx11.h"
#include "client.h"
#include "gtkproto.h"
#include "mapdata.h"
Include dependency graph for map.c:

Go to the source code of this file.


static void display_mapcell (int ax, int ay, int mx, int my)
int display_mapscroll (int dx, int dy)
static void draw_pixmap (int srcx, int srcy, int dstx, int dsty, int clipx, int clipy, void *mask, void *image, int sizex, int sizey)
void drawsmooth (int mx, int my, int layer, int picx, int picy)
void gtk_draw_map (int redraw)
void reset_map (void)
 Request a map update from the server.


PlayerPosition pl_pos
const char *const rcsid_gtk_map_c = "$Id: map.c 9218 2008-06-03 13:45:46Z anmaster $"
struct Map the_map

Function Documentation

static void display_mapcell ( int  ax,
int  ay,
int  mx,
int  my 
) [static]

Definition at line 219 of file map.c.

References Map::cells, MapCell::cleared, CONFIG_FOGWAR, CONFIG_SMOOTH, dark, dark1, dark2, dark3, MapCell::darkness, draw_pixmap(), drawingarea, drawsmooth(), PixmapInfo::map_height, map_image_size, PixmapInfo::map_width, mapdata_bigface(), mapdata_face(), mapwindow, MAXLAYERS, pixmaps, the_map, TRUE, and use_config.

Referenced by gtk_draw_map().

Here is the call graph for this function:

Here is the caller graph for this function:

int display_mapscroll ( int  dx,
int  dy 

Definition at line 88 of file map.c.

static void draw_pixmap ( int  srcx,
int  srcy,
int  dstx,
int  dsty,
int  clipx,
int  clipy,
void *  mask,
void *  image,
int  sizex,
int  sizey 
) [static]

Definition at line 80 of file map.c.

References mapgc, and mapwindow.

Referenced by display_mapcell(), and drawsmooth().

Here is the caller graph for this function:

void drawsmooth ( int  mx,
int  my,
int  layer,
int  picx,
int  picy 

Definition at line 104 of file map.c.

void gtk_draw_map ( int  redraw)

Definition at line 337 of file map.c.

void reset_map ( void  )

Request a map update from the server.

This is to circumvent a bug in some server versions.


Definition at line 76 of file map.c.

Variable Documentation

Definition at line 69 of file map.c.

const char* const rcsid_gtk_map_c = "$Id: map.c 9218 2008-06-03 13:45:46Z anmaster $"

Definition at line 1 of file map.c.

struct Map the_map