FS2_Open
Open source remastering of the Freespace 2 engine
redalert.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef __REDALERT_H__
13 #define __REDALERT_H__
14 
15 #include "globalincs/pstypes.h"
16 
17 struct CFILE;
18 
20 
21 void red_alert_init();
22 void red_alert_close();
23 void red_alert_do_frame(float frametime);
24 int red_alert_mission();
28 
31 void red_alert_clear();
32 
35 
36 // should only ever be defined in redalert.cpp and the pilot file code!!
37 #ifdef REDALERT_INTERNAL
38 
39 #define RED_ALERT_WARN_TIME 4000 // time to warn user that new orders are coming
40 
41 static const int RED_ALERT_DESTROYED_SHIP_CLASS = -1;
42 static const int RED_ALERT_PLAYER_DEL_SHIP_CLASS = -2;
43 static const int RED_ALERT_LOWEST_VALID_SHIP_CLASS = RED_ALERT_PLAYER_DEL_SHIP_CLASS; // for ship index bounds checks
44 
45 typedef struct red_alert_ship_status {
47  float hull;
48  int ship_class;
49  SCP_vector<float> subsys_current_hits;
50  SCP_vector<float> subsys_aggregate_current_hits;
51  SCP_vector<wep_t> primary_weapons;
52  SCP_vector<wep_t> secondary_weapons;
53 } red_alert_ship_status;
54 
57 #endif
58 
59 #endif
int red_alert_in_progress()
Definition: redalert.cpp:1063
void red_alert_clear()
Definition: redalert.cpp:1103
SCP_string Red_alert_precursor_mission
Definition: redalert.cpp:49
void red_alert_invalidate_timestamp()
Definition: redalert.cpp:443
Definition: cfile.h:28
SCP_vector< red_alert_ship_status > Red_alert_wingman_status
Definition: redalert.cpp:48
std::basic_string< char, std::char_traits< char >, std::allocator< char > > SCP_string
Definition: vmallocator.h:21
void red_alert_store_wingman_status()
Definition: redalert.cpp:708
void red_alert_init()
Definition: redalert.cpp:297
void red_alert_start_mission()
Definition: redalert.cpp:1037
void red_alert_bash_wingman_status()
Definition: redalert.cpp:817
int red_alert_mission()
Definition: redalert.cpp:1031
GLuint const GLchar * name
Definition: Glext.h:5608
void red_alert_close()
Definition: redalert.cpp:356
void red_alert_do_frame(float frametime)
Definition: redalert.cpp:381
void red_alert_voice_unpause()
Definition: redalert.cpp:213
void red_alert_maybe_move_to_next_mission()
Definition: redalert.cpp:1070
void red_alert_voice_pause()
Definition: redalert.cpp:201