Crossfire Client, Branch  R11627
Functions | Variables
magicmap.c File Reference

Covers drawing the magic map. More...

#include <gtk/gtk.h>
#include <glade/glade.h>
#include "client.h"
#include "main.h"
Include dependency graph for magicmap.c:

Go to the source code of this file.

Functions

void draw_magic_map (void)
 Draws the magic map - basically, it is just a simple encoding of space X is color C.
void magic_map_flash_pos (void)
 Flash the player position on the magic map.
gboolean on_drawingarea_magic_map_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)

Variables

GtkWidget * magic_map
 main.c - drawing area for the magic map
static GdkGC * magic_map_gc = NULL
GtkWidget * map_notebook
 main.c - drawing areas for the maps
const char *const rcsid_gtk2_magicmap_c = "$Id: magicmap.c 9193 2008-06-01 14:26:32Z anmaster $"
GdkColor root_color [NUM_COLORS]

Detailed Description

Covers drawing the magic map.

Definition in file magicmap.c.


Function Documentation

void draw_magic_map ( void  )

Draws the magic map - basically, it is just a simple encoding of space X is color C.

Definition at line 51 of file magicmap.c.

References cpl, FACE_COLOR_MASK, LOG(), LOG_WARNING, magic_map, magic_map_gc, MAGIC_MAP_PAGE, Player_Struct::magicmap, map_notebook, Player_Struct::mapxres, Player_Struct::mapyres, Player_Struct::mmapx, Player_Struct::mmapy, root_color, and TRUE.

Here is the call graph for this function:

void magic_map_flash_pos ( void  )
gboolean on_drawingarea_magic_map_expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  user_data 
)
Parameters:
widget
event
user_data
Returns:
FALSE

Definition at line 154 of file magicmap.c.

References draw_magic_map(), and FALSE.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

GtkWidget* magic_map

main.c - drawing area for the magic map

Definition at line 56 of file main.c.

Referenced by draw_magic_map(), magic_map_flash_pos(), and main().

GdkGC* magic_map_gc = NULL [static]

Definition at line 45 of file magicmap.c.

Referenced by draw_magic_map(), and magic_map_flash_pos().

GtkWidget* map_notebook

main.c - drawing areas for the maps

Definition at line 68 of file map.c.

Referenced by draw_magic_map(), magic_map_flash_pos(), and map_init().

const char* const rcsid_gtk2_magicmap_c = "$Id: magicmap.c 9193 2008-06-01 14:26:32Z anmaster $"

Definition at line 1 of file magicmap.c.

Definition at line 244 of file gx11.c.