~ubuntu-branches/ubuntu/maverick/crossfire-client/maverick

« back to all changes in this revision

Viewing changes to gnome/gnome-cf.h

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2005-08-20 23:46:35 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050820234635-m3nwl2a0190jc15f
Tags: 1.8.0-1
* New upstream release (closes: #298438)
* New maintainer
* Set datadir to /usr/share/games and sounddir to
  /usr/share/games/crossfire/sounds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#ifndef GX11_H
3
 
#define GX11_H
4
 
 
5
 
#include "client-types.h"
6
 
 
7
 
typedef struct 
8
 
{
9
 
  int x;
10
 
  int y;
11
 
} PlayerPosition;
12
 
 
13
 
extern PlayerPosition pl_pos;
14
 
 
15
 
extern int fog_of_war;
16
 
extern int map_size;
17
 
extern int map_image_size, map_image_half_size;
18
 
extern int per_pixel_lighting;
19
 
extern int per_tile_lighting;
20
 
extern int show_grid;
21
 
extern uint8 sdlimage,split_windows,map_did_scroll,keepcache;
22
 
extern uint8 nopopups,updatekeycodes;;
23
 
extern int map_scale, icon_scale, updatelock;
24
 
 
25
 
/* Pixmap data.  This is abstracted in the sense that the
26
 
 * code here does not care what the data points to (hence the
27
 
 * void).  The module using this data should know whether it 
28
 
 * is these point to png data or image data of whatever form.
29
 
 * The module is not required to use all these fileds - 
30
 
 * as png data includes transperancy, it will generally not
31
 
 * use the mask fields and instead just put its data into the
32
 
 * appropiate image fields.
33
 
 *
34
 
 * As images can now be of variable size (and potentially re-sized),
35
 
 * the size information is stored here.
36
 
 */
37
 
#define MAXPIXMAPNUM 10000
38
 
typedef struct {
39
 
        long fg, bg;
40
 
        GdkPixbuf *gdkpixbuf;
41
 
        GdkPixmap *map_image;
42
 
        GdkBitmap *map_mask;
43
 
        uint16      map_width, map_height;
44
 
        GdkPixmap *icon_image;
45
 
        GdkBitmap *icon_mask;
46
 
} PixmapInfo;
47
 
 
48
 
extern PixmapInfo pixmaps[MAXPIXMAPNUM];
49
 
 
50
 
extern GtkWidget *drawable;
51
 
extern GdkGC *gc;
52
 
extern GdkBitmap    *dark1, *dark2, *dark3;
53
 
extern GdkPixmap    *dark;
54
 
 
55
 
#if 0
56
 
/* Some global widgetws */
57
 
extern GtkWidget    *gtkwin_root,*drawingarea,*run_label,*fire_label;
58
 
extern GtkWidget    *gtkwin_info;
59
 
extern GtkWidget    *entrytext, *counttext;
60
 
extern GdkPixmap    *mapwindow,*dark;
61
 
extern GdkGC        *mapgc;
62
 
extern GtkWidget *ckentrytext, *ckeyentrytext, *cmodentrytext,*cnumentrytext, *cclist;
63
 
#endif
64
 
 
65
 
#endif