forked from devpack/mayhem
-
Notifications
You must be signed in to change notification settings - Fork 2
/
collision.h
executable file
·24 lines (20 loc) · 1.01 KB
/
collision.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __COLLISION_H__
#define __COLLISION_H__
#include "vaisseau_data.h"
#include <allegro5/allegro.h>
typedef struct RGB *PALETTEPTR;
bool test_collision(struct player_view *pv, struct level_data *currentlevel);
bool test_collision_ship2ship(struct vaisseau_data *vaisseau1,
struct vaisseau_data *vaisseau2);
bool testcollision_bullet4pix(collision_map &coll_map, int x, int y, int w,
int h);
bool collision_tir_ship(struct vaisseau_data *v, struct vaisseau_data *allv,
int nombre_vaisseau);
bool collision_backtir_ship(struct vaisseau_data *v, struct vaisseau_data *allv,
int nombre_vaisseau);
bool collision_debris_ship(struct vaisseau_data *v, struct vaisseau_data *allv,
int nombre_vaisseau);
bool collision_dca_ship(struct vaisseau_data *v, struct dca_data *alldca,
int nb_dca);
void bounce_vaisseau(struct vaisseau_data *vaisseau);
#endif