4
(c) Richard Thrippleton
5
Licensing terms are in the 'LICENSE' file
6
If that file is not included with this source then permission is not given to use this source in any way whatsoever.
13
class mission //Handles in progress missions
16
static const ISIZE=64; //Size of mission index
17
enum {CARGO=0,ESCORT=1,DESTROY=2,DEFEND=3,RECON=4,CAPTURE=5}; //Mission types
19
mission(alliance* all,int typ); //Constructor generates a mission of given type for given alliance
21
static void init(); //Initialise the missions subsystem
22
static void poll(); //Poll current missions, see how they're progressing
25
static mission* missions[ISIZE]; //Index of current missions
26
static int lev; //Mission difficulty level in current environment
28
int typ; //Mission type
29
long pay; //Mission pay
30
player* cmdr; //Mission commander
31
ship* help; //Ship assisting
32
alliance* all; //Alliance controlling the mission
33
planet* home; //Home planet of mission, place to return for payment
34
ship* sinv; //Involved ship (if any)
35
planet* pinv; //Involved planet (if any)
36
equip* crf; //Cargo if appropriate