Logo Search packages:      
Sourcecode: rafkill version File versions  Download package

defs.h

#ifndef _def_h_
#define _def_h_

#ifndef NULL
#define NULL 0
#endif

extern int screen_x;
extern int screen_y;

#define missle_speed -0.56
#define MAX_ENEMY 50
#define USE_AMMO 8
#define MAX_EXPL 200
#define expl_color 254
#define PLAYER_TOTAL 1
#define MAX_PLANE 20
#define NO_EXPLODE 4000

#define GRAPHICS_X 640
#define GRAPHICS_Y 480

#define TEAM_ENEMY 1
#define TEAM_PLAYER 2

#define SHIP_DAMAGE 4

#define SMALL_BULLET 1.6
#define LARGE_BULLET 1.6
#define FIND_BULLET 1.2
#define ENEMY_MISSLE 1.9

#define PLANE_AIR 1
#define PLANE_GROUND 2

#define MACHINE_SPEED -3.0

#define Y_BLIT_OFFSET 500


//#define MAX_GAMMO 350
//#define MAX_BAMMO 100

#define MAX_E_COLOR 100

#define MAX_EX 6

/*
#ifdef UNIX
#define DATADIR ./data
#else
#define DATADIR .\data
#endif
*/

#include "explode.h"
#include "allegro.h"
#include "rfont.h"
#include <stdio.h>

class ECollide;
class ExplosionClass;

extern double tcos[360];
extern double tsine[360];
extern double rsine[360];
extern double ttan[360];

extern RFont * raptor_font;

extern int * e_color;
extern float sound_vol;
extern float music_vol;

extern DATAFILE * global_data;
extern DATAFILE * global_snd;

const double TPI = 3.141592654;

extern volatile int speed_counter;

int rnd( int q );
int pcount( char ** p, const int m );
int readnum( FILE * fv, int num );
int addcol( int c1, int c2 );

void play_sound( DATAFILE * snd, int m, int vol );
void play_sound( SAMPLE * snd, int vol );
void blend_palette( int * pal, int mp, int sc, int ec );
void explColor();
void MakeExplosion( ExplosionClass ** expl, int M_EX, int x, int y );
unsigned char getByte( unsigned char q, int byte );
unsigned char setByte( unsigned char n, int byte, unsigned char p );
void bitscramble( char & q );
void scramble( char * scram, const int m );
void YIELD();
void draw_mask( BITMAP * dest, BITMAP * source, int _x, int _y );


char * data_file( char * file_name );

#endif

Generated by  Doxygen 1.6.0   Back to index