Debian Codegraph @

src/mission.h

raw symbols SCIP
1 #ifndef MISSION_HEADER_FILE__
2 #define MISSION_HEADER_FILE__
3
4 #include "submarine.h"
5
6 #define MISSION_STARTED 1
7 #define MISSION_SUCCESS 2
8 #define MISSION_FAILED 3
9
10 // Go through all ships and see if they still have a mission
11 // flag.
12 // If all mission flags have been set and the mission has not
13 // already failed, then mark the mission a success.
14 // This function returns the new mission status.
15 int Mission_Status(Submarine *all_subs, int old_status);
16
17
18 // This function checks to see if a ship has its mission status
19 // set to MISSION_FIND. If it does, then we check to see if the
20 // player can detect the ship. If the player can, we clear the
21 // ship's mission flag. This function returns TRUE normally or
22 // FALSE if an error occurs.
23 int Check_Find(Submarine *all_subs);
24
25 // This function checks to see if any vessels need to
26 // remain alive to complete the mission. The function
27 // checks the alive timer and reduces it. If the mission
28 // timer reaches zero (0), then we change the status
29 // of the vessel to MISSION_NONE from MISSION_ALIVE.
30 // Returns TRUE if everything goes normally or FALSE
31 // if an error occurs.
32 int Check_Alive(Submarine *all_subs);
33
34 #endif
35