Fix for initialization of scalos preferences library. Library is now loaded only...
[AROS-Contrib.git] / Games / lbreakout2 / client / lbreakout.h
blob4b0090c62ad8ff5cbea2dfac5922802cb9d19f1d
1 /***************************************************************************
2 lbreakout.h - description
3 -------------------
4 begin : Thu Sep 6 2001
5 copyright : (C) 2001 by Michael Speck
6 email : kulkanie@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
16 ***************************************************************************/
18 #ifndef __LBREAKOUT_H
19 #define __LBREAKOUT_H
21 //#define WITH_BUG_REPORT
22 #define GAME_DEBUG
25 ====================================================================
26 Global definitions for LBreakout and general system includes.
27 ====================================================================
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include <string.h>
33 #include <stdarg.h>
34 #include <math.h>
35 #include <time.h>
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"
42 #include "misc.h"
44 #ifndef M_PI
45 #define M_PI 3.1415926535897932384626433832795f
46 #endif
48 /* config directory name in home directory */
49 #ifdef _WIN32
50 #define CONFIG_DIR_NAME "lgames"
51 #else
52 #define CONFIG_DIR_NAME ".lgames"
53 #endif
55 /* i18n */
56 #ifdef HAVE_CONFIG_H
57 #include "../config.h"
58 #endif
59 #include "../common/gettext.h"
60 #if ENABLE_NLS
61 #define _(str) gettext (str)
62 #else
63 #define _(str) (str)
64 #endif
67 ====================================================================
68 Alpha of shadow
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];
81 extern int msglen;
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 )
89 #endif