~ubuntu-branches/ubuntu/lucid/warzone2100/lucid

« back to all changes in this revision

Viewing changes to src/multiint.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger, Paul Wise, Christoph Egger
  • Date: 2009-06-29 17:12:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090629171252-5ddnlfg3zfchrega
Tags: 2.2.1+dfsg1-1
[ Paul Wise ]
* New upstream release (Closes: #534962)
* Adjust the flex build-depends to take account of the conflict
  with all the versions of flex 2.5.34 (LP: #372872)
* Make the -music Recommends more strict, 2.1 music doesn't work
  with 2.2.
* Upstream moved the downloads to sourceforge, update the watch file
* Bump Standards-Version, no changes needed
* Drop use of dh_desktop since it no longer does anything
* Recommend the new warzone2100-video package, version 2.2 or similar
* Mention the warzone2100 crash reports in the -dbg package description

[ Christoph Egger ]
* Replace CC-2.0 graphic from cybersphinx, create a new tarball
* Add myself to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
        This file is part of Warzone 2100.
3
3
        Copyright (C) 1999-2004  Eidos Interactive
4
 
        Copyright (C) 2005-2007  Warzone Resurrection Project
 
4
        Copyright (C) 2005-2009  Warzone Resurrection Project
5
5
 
6
6
        Warzone 2100 is free software; you can redistribute it and/or modify
7
7
        it under the terms of the GNU General Public License as published by
24
24
#ifndef __INCLUDED_SRC_MULTIINT_H__
25
25
#define __INCLUDED_SRC_MULTIINT_H__
26
26
 
 
27
extern LOBBY_ERROR_TYPES getLobbyError(void);
 
28
extern void setLobbyError(LOBBY_ERROR_TYPES error_type);
 
29
 
27
30
extern  void    runConnectionScreen             (void);
28
31
extern  BOOL    startConnectionScreen   (void);
29
32
extern  void    intProcessConnection    (UDWORD id);
43
46
extern  SDWORD  playerTeamGUI[MAX_PLAYERS];
44
47
extern  SDWORD  playerTeam[MAX_PLAYERS];
45
48
 
46
 
void    kickPlayer                      (uint32_t dpid);
47
 
UDWORD  addPlayerBox            (BOOL);                         // players (mid) box
48
 
void loadMapPreview(void);
49
 
 
 
49
void    kickPlayer(uint32_t dpid, const char *reason, LOBBY_ERROR_TYPES type);
 
50
UDWORD  addPlayerBox(BOOL);                     // players (mid) box
 
51
void loadMapPreview(bool hideInterface);
 
52
void stopJoining(void);
50
53
 
51
54
// ////////////////////////////////////////////////////////////////
52
55
// CONNECTION SCREEN
79
82
#define CON_IPX                         20
80
83
#define CON_IPY                         45
81
84
 
82
 
#define CON_COM1                        10134
83
 
#define CON_COM1X                       22
84
 
#define CON_COM1Y                       10
85
 
 
86
 
#define CON_COM2                        10135
87
 
#define CON_COM2X                       62
88
 
#define CON_COM2Y                       10
89
 
 
90
 
#define CON_COM3                        10136
91
 
#define CON_COM3X                       102
92
 
#define CON_COM3Y                       10
93
 
 
94
 
#define CON_COM4                        10137
95
 
#define CON_COM4X                       142
96
 
#define CON_COM4Y                       10
97
 
 
98
 
#define CON_14400                       10138
99
 
#define CON_14400X                      22
100
 
#define CON_14400Y                      42
101
 
 
102
 
#define CON_19200                       10139
103
 
#define CON_19200X                      62
104
 
#define CON_19200Y                      42
105
 
 
106
 
#define CON_57600                       10140
107
 
#define CON_57600X                      102
108
 
#define CON_57600Y                      42
109
 
 
110
 
#define CON_11520                       10141
111
 
#define CON_11520X                      142
112
 
#define CON_11520Y                      42
 
85
//for clients
 
86
#define CON_PASSWORD            10139
 
87
#define CON_PASSWORDX           20
 
88
#define CON_PASSWORDY           110
 
89
// for hosts
 
90
#define CON_H_PASSWORD          10140
 
91
#define CON_H_PASSWORDX         MCOL2
 
92
#define CON_H_PASSWORDY         MROW10 +31
 
93
 
113
94
 
114
95
 
115
96
// ////////////////////////////////////////////////////////////////
169
150
#define MROW1                                   4
170
151
#define MROW2                                   MROW1+MULTIOP_EDITBOXH+4
171
152
#define MROW3                                   MROW2+MULTIOP_EDITBOXH+4
172
 
#define MROW4                                   MROW3+38
173
 
#define MROW5                                   MROW4+31
 
153
#define MROW4                                   MROW3+MULTIOP_EDITBOXH+4
 
154
#define MROW5                                   MROW4+36
174
155
#define MROW6                                   MROW5+31
175
156
#define MROW7                                   MROW6+31
176
157
#define MROW8                                   MROW7+31
270
251
 
271
252
#define MULTIOP_MAP_PREVIEW 920000
272
253
#define MULTIOP_MAP_BUT         920002
 
254
 
 
255
#define MULTIOP_PASSWORD        920010
 
256
#define MULTIOP_PASSWORD_BUT 920012
 
257
#define MULTIOP_PASSWORD_EDIT 920013
273
258
// ///////////////////////////////
274
259
// Many Button Variations..
275
260