Galactic Bloodshed
shootblast.h
Go to the documentation of this file.
1 // Copyright 2014 The Galactic Bloodshed Authors. All rights reserved.
2 // Use of this source code is governed by a license that can be
3 // found in the COPYING file.
4 
5 #ifndef SHOOTBLAST_H
6 #define SHOOTBLAST_H
7 
8 #include "gb/config.h"
9 #include "gb/races.h"
10 #include "gb/ships.h"
11 #include "gb/vars.h"
12 
13 int shoot_ship_to_ship(Ship *, Ship *, int, int, int, char *, char *);
14 #ifdef DEFENSE
15 int shoot_planet_to_ship(Race *, Ship *, int, char *, char *);
16 #endif
17 int shoot_ship_to_planet(Ship *, Planet *, int, int, int, SectorMap &, int, int,
18  char *, char *);
19 int hit_odds(double, int *, double, int, int, int, int, int, int, int, int);
20 double gun_range(Race *, Ship *, int);
21 double tele_range(int, double);
22 int current_caliber(Ship *);
23 void do_collateral(Ship *, int, int *, int *, int *, int *);
24 int planet_guns(int);
25 
26 #endif // SHOOTBLAST_H
int current_caliber(Ship *)
Definition: shootblast.cc:546
int shoot_ship_to_ship(Ship *, Ship *, int, int, int, char *, char *)
Definition: shootblast.cc:43
int planet_guns(int)
Definition: shootblast.cc:629
int shoot_ship_to_planet(Ship *, Planet *, int, int, int, SectorMap &, int, int, char *, char *)
Definition: shootblast.cc:188
#define DEFENSE
Definition: config.h:30
int shoot_planet_to_ship(Race *, Ship *, int, char *, char *)
int hit_odds(double, int *, double, int, int, int, int, int, int, int, int)
Definition: shootblast.cc:493
double gun_range(Race *, Ship *, int)
Definition: shootblast.cc:530
double tele_range(int, double)
Definition: shootblast.cc:539
void do_collateral(Ship *, int, int *, int *, int *, int *)
Definition: shootblast.cc:603