~ubuntu-branches/debian/squeeze/assaultcube-data/squeeze

« back to all changes in this revision

Viewing changes to source/src/cube.h

  • Committer: Bazaar Package Importer
  • Author(s): Gonéri Le Bouder, Ansgar Burchardt, Gonéri Le Bouder
  • Date: 2010-04-02 23:37:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402233755-kf74fxwlu634o6vg
Tags: 1.0.4+repack1-1
[ Ansgar Burchardt ]
* debian/control: fix typo in short description

[ Gonéri Le Bouder ]
* Upgrade to 1.0.4
* bump standards-version to 3.8.4
* Add Depends: ${misc:Depends} just to avoid a lintian warning
* Add a debian/source/format file for the same reason

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __CUBE_H__
 
2
#define __CUBE_H__
 
3
 
 
4
#include "tools.h"
 
5
#include "geom.h"
 
6
#include "model.h"
 
7
#include "protocol.h"
 
8
#include "sound.h"
 
9
#include "weapon.h"
 
10
#include "entity.h"
 
11
#include "world.h"
 
12
 
 
13
#ifndef STANDALONE
 
14
 #include "command.h"
 
15
 #include "vote.h"
 
16
 #include "console.h"
 
17
#endif
 
18
 
 
19
typedef vector<char *> cvector;
 
20
typedef vector<int> ivector;
 
21
 
 
22
// globals ooh naughty
 
23
 
 
24
extern sqr *world, *wmip[];             // map data, the mips are sequential 2D arrays in memory
 
25
extern header hdr;                      // current map header
 
26
extern int sfactor, ssize;              // ssize = 2^sfactor
 
27
extern int cubicsize, mipsize;          // cubicsize = ssize^2
 
28
extern physent *camera1;                // camera representing perspective of player, usually player1
 
29
extern playerent *player1;              // special client ent that receives input and acts as camera
 
30
extern vector<playerent *> players;     // all the other clients (in multiplayer)
 
31
extern vector<bounceent *> bounceents;
 
32
extern bool editmode;
 
33
extern vector<entity> ents;             // map entities
 
34
extern vec worldpos, camup, camright, camdir; // current target of the crosshair in the world
 
35
extern int lastmillis, totalmillis;     // last time
 
36
extern int curtime;                     // current frame time
 
37
extern int gamemode, nextmode;
 
38
extern int gamespeed;
 
39
extern int xtraverts;
 
40
extern float fovy, aspect;
 
41
extern int farplane;
 
42
extern bool minimap, reflecting, refracting;
 
43
extern int stenciling, stencilshadow;
 
44
extern bool intermission;
 
45
extern int arenaintermission;
 
46
extern hashtable<char *, enet_uint32> mapinfo;
 
47
extern int hwtexsize;
 
48
extern int numspawn[3], maploaded, numflagspawn[2];
 
49
extern int verbose;
 
50
 
 
51
#include "protos.h"                             // external function decls
 
52
 
 
53
#define AC_VERSION 1041
 
54
#define AC_MASTER_URI "masterserver.cubers.net/cgi-bin/actioncube.pl/" // FIXME, change DNS on ac release
 
55
 
 
56
#endif
 
57