1 /***************************************************************************
2 lbreakout.h - description
5 copyright : (C) 2001 by Michael Speck
6 email : kulkanie@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
21 //#define WITH_BUG_REPORT
25 ====================================================================
26 Global definitions for LBreakout and general system includes.
27 ====================================================================
36 #include "../gui/stk.h"
37 #include "../common/tools.h"
38 #include "../common/list.h"
39 #include "../common/net.h"
40 #include "../common/messages.h"
41 #include "../game/gamedefs.h"
45 #define M_PI 3.1415926535897932384626433832795f
48 /* config directory name in home directory */
50 #define CONFIG_DIR_NAME "lgames"
52 #define CONFIG_DIR_NAME ".lgames"
57 #include "../config.h"
59 #include "../common/gettext.h"
61 #define _(str) gettext (str)
67 ====================================================================
69 ====================================================================
71 enum { SHADOW_ALPHA
= 128 };
73 ====================================================================
74 Number of original backgrounds.
75 ====================================================================
77 enum { ORIG_BACK_COUNT
= 6 };
79 /* used to compile net messages */
80 extern char msgbuf
[MAX_MSG_SIZE
];
83 /* check if position is in given region */
84 #define FOCUS( cx, cy, rx, ry, rw, rh ) \
85 ( cx >= rx && cy >= ry && cx < rx + rw && cy < ry + rh )
86 #define FOCUS_RECT( cx, cy, rect ) \
87 FOCUS( cx, cy, (rect).x, (rect).y, (rect).w, (rect).h )